bigbluebutton-Github/bigbluebutton-tests/playwright
2022-05-13 21:03:34 +00:00
..
audio set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
breakout Merge remote-tracking branch 'upstream/v2.5.x-release' into 25260-may10 2022-05-10 10:53:00 -03:00
chat set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
connectionStatus fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -03:00
core Merge remote-tracking branch 'upstream/v2.4.x-release' into merge-2425-apr27 2022-04-27 15:32:20 -03:00
customparameters Fixing 2.4 Playwright tests 2022-04-21 07:19:08 -04:00
notifications Merge remote-tracking branch 'upstream/v2.4.x-release' into merge-2425-apr27 2022-04-27 15:32:20 -03:00
polling fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -03:00
presentation fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -03:00
screenshare set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
settings Minor updates to the failing test specs 2022-04-27 08:46:15 -04:00
sharednotes set dynamic steps by current settings 2022-03-29 10:53:07 -03:00
stress Merge remote-tracking branch 'upstream/v2.4.x-release' into 24-25-may-6 2022-05-06 14:30:41 -03:00
user Merge remote-tracking branch 'upstream/v2.4.x-release' into 24-25-may-6 2022-05-06 14:30:41 -03:00
virtualizedlist Minor updates to the failing test specs 2022-04-27 08:46:15 -04:00
webcam fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -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 fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -03:00
package.json fix warnings, uninstall unused lib and move media folder into the core 2022-04-07 15:34:25 -03:00
playwright.config.js Add github workflow to run automated tests 2022-04-25 10:21:46 -03:00
README.md Change Node version in README 2022-05-11 10:52:51 -04: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

You may also need to run the following command:

$ npx playwright install-deps

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

We recommend to use Node version 16 or higher to avoid errors in JavaScript. 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"