bigbluebutton-Github/bigbluebutton-tests/playwright
2022-03-29 10:53:07 -03:00
..
audio set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
breakout set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
chat set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
connectionStatus remove commented lines 2022-03-07 16:10:00 -03:00
core set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
customparameters set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
media add media files 2021-11-23 00:28:02 -03:00
notifications set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
polling set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
presentation set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
screenshare set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
settings fix and updates all automated tests to v2.5 2022-02-28 16:46:13 -03:00
sharednotes set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
stress Merge remote-tracking branch 'upstream/v2.5.x-release' into fix-selectors-2.5 2022-03-07 15:59:06 -03:00
user set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
virtualizedlist fix requested changes 2021-12-03 14:01:36 -03:00
webcam set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
whiteboard fix all test selectors 2022-01-20 10:03:18 -03:00
.env.template add debug features 2022-02-28 18:21:50 -03:00
.gitignore add debug features 2022-02-28 18:21:50 -03:00
package-lock.json test: npm audit fix 2022-03-23 16:38:21 -03:00
package.json test: npm audit fix 2022-03-23 16:38:21 -03:00
playwright.config.js fix firefox browser args and skip firefox mobile tests 2022-03-07 15:56:08 -03:00
README.md add additional test scripts and update readme 2022-01-20 10:07:48 -03:00

BigBlueButton Playwright Tests

Tests for BigBlueButton using Playwright.

Setup (with an existing BigBlueButton server)

You need to install the dependencies:

$ cd ../bigbluebutton-tests/playwright
$ npm install
$ npx playwright install

To run these tests with an existing BigBlueButton server, you need to find the server's URL and secret (can be done with bbb-conf --secret command). You need to put them into the .env file inside bigbluebutton-tests/playwright folder (variables BBB_URL and BBB_SECRET). Note: the value for BBB_URL follows the format of https://<hostname>/bigbluebutton/api.

Run tests

Tests can be executed using npx and npm test. You can run all tests in each of 3 supported environments (chromium, firefox, webkit) with one of the following commands:

$ npx playwright test
or
$ npm test

You can also run a single test suite and limit the execution to only one browser:

$ npx playwright test chat --browser=firefox
or
$ npm test chat -- --browser=firefox

Additional commands

To see the tests running visually, you must run them in headed mode:

$ npm run test:headed chat

If you want to run a specific test or a specific group of tests, you can do so with the following command:

$ npm run test:filter "Send public message"

(note that this filter needs to be passed in "double quotes")

You can also use this also through the test tree, adding the test suite / group of tests before the test filter:

$ npm run test:filter "notifications chat"