bigbluebutton-Github/bigbluebutton-tests/puppeteer
dependabot[bot] 90afe45cd2
chore(deps): bump the npm_and_yarn group across 5 directories with 3 updates
Bumps the npm_and_yarn group with 2 updates in the /bbb-graphql-client-test directory: [micromatch](https://github.com/micromatch/micromatch) and [webpack](https://github.com/webpack/webpack).
Bumps the npm_and_yarn group with 3 updates in the /bbb-learning-dashboard directory: [micromatch](https://github.com/micromatch/micromatch), [postcss](https://github.com/postcss/postcss) and [webpack](https://github.com/webpack/webpack).
Bumps the npm_and_yarn group with 2 updates in the /bigbluebutton-html5 directory: [micromatch](https://github.com/micromatch/micromatch) and [webpack](https://github.com/webpack/webpack).
Bumps the npm_and_yarn group with 1 update in the /bigbluebutton-tests/puppeteer directory: [micromatch](https://github.com/micromatch/micromatch).
Bumps the npm_and_yarn group with 3 updates in the /docs directory: [micromatch](https://github.com/micromatch/micromatch), [postcss](https://github.com/postcss/postcss) and [webpack](https://github.com/webpack/webpack).


Updates `micromatch` from 4.0.7 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

Updates `webpack` from 5.92.1 to 5.94.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.92.1...v5.94.0)

Updates `micromatch` from 4.0.5 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

Updates `postcss` from 8.4.40 to 8.4.41
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.40...8.4.41)

Updates `webpack` from 5.92.1 to 5.94.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.92.1...v5.94.0)

Updates `micromatch` from 4.0.7 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

Updates `webpack` from 5.93.0 to 5.94.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.92.1...v5.94.0)

Updates `micromatch` from 4.0.4 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

Updates `micromatch` from 4.0.5 to 4.0.8
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

Updates `postcss` from 8.4.38 to 8.4.41
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.40...8.4.41)

Updates `webpack` from 5.89.0 to 5.94.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.92.1...v5.94.0)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: webpack
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: postcss
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: webpack
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: webpack
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: micromatch
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: postcss
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: webpack
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-28 17:18:49 +00:00
..
audio fix some code warnings 2021-09-30 15:45:59 -03:00
breakout test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
chat test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
core test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
customparameters refactor: rename skipCheckIfPreviousDevice to skipEchoTestIfPreviousDevice 2024-07-19 11:29:38 -03:00
downloads Move Puppeteer tests and remove WebdriverIO tests 2021-07-13 14:31:41 +00:00
media add poll results in a different presentation test and provide uploadPresentation function 2021-10-22 16:33:39 -03:00
notifications test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
polling test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
presentation test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
screenshare test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
screenshots Move Puppeteer tests and remove WebdriverIO tests 2021-07-13 14:31:41 +00:00
sharednotes test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
stress test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
tests-not-ready keep all elements in a single file and remove remaining elements.js 2021-09-22 09:46:20 -03:00
trigger test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
user test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
virtualizedlist test suite: add newlines at the end of puppeteer javascript files that didn't have them 2023-04-03 16:23:26 -04:00
webcam unify webcam tests 2021-10-26 14:51:24 -03:00
whiteboard chore: Fix typo (found by typos) (port) #19834 2024-03-18 09:58:53 -04:00
.env-template Comment regarding the format of BBB_SERVER_URL 2021-09-27 23:26:00 -04:00
.gitignore keep media files in code 2021-08-16 22:49:02 -03:00
all.test.js unify webcam tests 2021-10-26 14:51:24 -03:00
import-tests-ci-resources.sh Add missing changes after moving test files to new folder 2021-08-01 18:24:17 -03:00
jest.config.js Add missing changes after moving test files to new folder 2021-08-01 18:24:17 -03:00
jest.setup.js chore: Fix typo (found by typos) (port) #19834 2024-03-18 09:58:53 -04:00
package-lock.json chore(deps): bump the npm_and_yarn group across 5 directories with 3 updates 2024-08-28 17:18:49 +00:00
package.json build(deps): bump the npm_and_yarn group across 6 directories with 2 updates (#20928) 2024-08-14 08:52:25 -04:00
README.md Add missing changes after moving test files to new folder 2021-08-01 18:24:17 -03:00
run.sh unify webcam tests 2021-10-26 14:51:24 -03:00

BigBlueButton Puppeteer Tests

Tests for BigBlueButton using Puppeteer, Chromium and Jest.

Get BBB URL and Secret and configure .env file

To run these tests with an existing BigBlueButton server, make sure you have a server set up, and that you have the server's URL and secret. These will be the same URL and secret you would use to make API calls to the server. If you do not have these, you can find them by running bbb-conf --secret from the terminal in the server.

Copy the .env-template file to a new file, and name it .env. In the .env file, add your BigBlueButton server URL and secret, so the tests will know which server to connect to.

Setup

To run these tests, you will need the following:

  • Ubuntu 16.04 or later
  • Node.js 8.11.4 or later
  • Docker

These instructions assume you have the BigBlueButton repository cloned into a directory named bigbluebutton.

First, you need to have the dependencies installed with meteor npm install, from the bigbluebutton-html5 directory. When Puppeteer installs, it will automatically install the Chromium browser in which the tests will run.

To run individual tests, you can also optionally install Jest globally with sudo npm install jest -g.

$ cd ../bigbluebutton-tests/puppeteer
$ npm install

Running the tests with an existing BigBlueButton server (All in one)

To run all the tests at once, run npm test.

Running a single test with an existing BigBlueButton server (Specific test)

To run a specific test from bash:

$ bash ../bigbluebutton-tests/puppeteer/run.sh -t testcase

Test cases list: webcamlayout/whiteboard/webcam/virtualizedlist/user/sharednotes/screenshare/presentation/notifications/customparameters/chat/breakout/audio.

If you have Jest installed globally, you can run individual tests with jest TEST [TEST...]. The tests are found in the .test.js files, but you may choose to omit file extensions when running the tests.

Debugging, Recording, Metrics and Evidences

Debugging

To debug the tests, you will need to set DEBUG=true; if DEBUG receives true, the logs will show in the console from which we start the tests.

Debugging output will look like below:

  console.log
    19-Jan-2021 13:03:30  Meeting ID:  random-6850458

Recording

To record the tests, you will need to set WITH_RECORD=true; if WITH_RECORD receives true, all tests will be recorded to .mp4 files, to keep track on what's going on and to have a good approach to catch problems or to have a proof that there are no problems.

Recording output will be saved under data/test-date-testName/recording; for example: data/test-19-01-2021-pollResultsChatMessage/recording.

PS: Recordings are just for manual testing.

Getting Metrics

To run the tests and get their metrics, you will need to set BBB_COLLECT_METRICS=true; if BBB_COLLECT_METRICS receives true, the metrics will be generated at the end of the test inside /data/test-date-testName/metrics folder; for example: data/test-19-01-2021-pollResultsChatMessage/metrics.

Getting Evidences

Generating evidences is about to take screenshots of the client during testing. And to realize this, assigning GENERATE_EVIDENCES in .env to true. This will take screenshots and save them in data/test-date-testName/screenshots; for example: data/test-19-01-2021-pollResultsChatMessage/screenshots.

Visual Regression

Our test suite includes visual regression specs that can be execute separately with npm run test-visual-regression (desktop only). It will take screenshots of various views and components of the client, save them inside the tests/puppeteer/__image_snapshots__ folder and put the failed cases into tests/puppeteer/__image_snapshots__/__diff_output__.