bigbluebutton-Github/bigbluebutton-tests/playwright
2022-02-07 16:22:48 -03:00
..
audio add lock viewers tests 2022-01-28 16:52:22 -03:00
breakout add lock viewers tests 2022-01-28 16:52:22 -03:00
chat add close private chat test 2022-02-04 16:26:35 -03:00
connectionStatus improves some selectors and function calls 2022-02-02 21:05:26 -03:00
core add toggle user list test 2022-02-07 16:22:48 -03:00
customparameters add lock viewers tests 2022-01-28 16:52:22 -03:00
media add media files 2021-11-23 00:28:02 -03:00
notifications add close private chat test 2022-02-04 16:26:35 -03:00
polling add close private chat test 2022-02-04 16:26:35 -03:00
presentation fix all test selectors 2022-01-20 10:03:18 -03:00
screenshare create subdivisions and reorder tests 2022-01-19 16:50:59 -03:00
settings improves some selectors and function calls 2022-02-02 21:05:26 -03:00
sharednotes add lock viewers tests 2022-01-28 16:52:22 -03:00
stress add take and make presenter tests 2022-02-07 15:45:42 -03:00
user add toggle user list test 2022-02-07 16:22:48 -03:00
virtualizedlist fix requested changes 2021-12-03 14:01:36 -03:00
webcam improves some selectors and function calls 2022-02-02 21:05:26 -03:00
whiteboard fix all test selectors 2022-01-20 10:03:18 -03:00
.env.template add core files 2021-11-18 16:20:11 -03:00
.gitignore Add .gitignore and commit package-lock.json 2021-11-02 19:06:12 -04:00
package-lock.json npm audit fix: test folder 2022-01-20 11:04:14 -03:00
package.json add additional test scripts and update readme 2022-01-20 10:07:48 -03:00
playwright.config.js Fixes for the locales test 2021-12-22 14:06:42 -05: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"