28de5fa1d7
test: Updates playwright tests
1.0 KiB
1.0 KiB
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