Merge pull request #15639 from bigbluebutton/snyk-upgrade-46275f7a0dfd4f946e42f058080c6739

[Snyk] Upgrade @playwright/test from 1.22.2 to 1.25.0
This commit is contained in:
Anton Georgiev 2022-09-08 11:27:37 -04:00 committed by GitHub
commit 3e1f73a5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 11 deletions

View File

@ -49,3 +49,46 @@ You can also use this also through the test tree, adding the test suite / group
```bash
$ npm run test:filter "notifications chat"
```
#### Recording Meteor messages
A modified version of `websockify` can be used to record the Meteor messages exchanged between client and server, by inserted a WebSocket proxy between the client and server, configured to record the sessions.
First, on the server, obtain the modified `websockify`:
```bash
git clone https://github.com/BrentBaccala/websockify.git
```
Install additional dependencies:
```bash
sudo apt install python3-numpy
```
Then add the following stanza to `/usr/share/bigbluebutton/nginx/bbb-html5.nginx`:
```
location ~* /html5client/.*/websocket {
proxy_pass http://127.0.0.1:4200;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
```
From the `websockify` directory, run `websockify` configured to proxy WebSocket connections from port 4200 to port 4100, recording the sessions to files named `bbb.1`, `bbb.2`, etc.:
```bash
./run -v --record=bbb --ws-target=ws://localhost:4100{path} 4200
```
Now reload nginx:
```bash
sudo systemctl reload nginx
```
Meteor messages for Big Blue Button sessions will now be recorded for later review.
It doesn't seem necessary to relay cookies, but that could be done by giving a `--ws-relay-header=Cookie` argument to `websockify`.

View File

@ -1,11 +1,11 @@
{
"name": "playwright",
"name": "npm-proj-1662355536800-0.49467469802579256kg5mNL",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"dependencies": {
"@playwright/test": "^1.19.2",
"@playwright/test": "^1.25.0",
"axios": "^0.26.1",
"dotenv": "^16.0.0",
"playwright": "^1.19.2",
@ -13,12 +13,12 @@
}
},
"node_modules/@playwright/test": {
"version": "1.22.2",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.22.2.tgz",
"integrity": "sha512-cCl96BEBGPtptFz7C2FOSN3PrTnJ3rPpENe+gYCMx4GNNDlN4tmo2D89y13feGKTMMAIVrXfSQ/UmaQKLy1XLA==",
"version": "1.25.0",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.25.0.tgz",
"integrity": "sha512-j4EZhTTQI3dBeWblE21EV//swwmBtOpIrLdOIJIRv4uqsLdHgBg1z+JtTg+AeC5o2bAXIE26kDNW5A0TimG8Bg==",
"dependencies": {
"@types/node": "*",
"playwright-core": "1.22.2"
"playwright-core": "1.25.0"
},
"bin": {
"playwright": "cli.js"
@ -27,6 +27,17 @@
"node": ">=14"
}
},
"node_modules/@playwright/test/node_modules/playwright-core": {
"version": "1.25.0",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.25.0.tgz",
"integrity": "sha512-kZ3Jwaf3wlu0GgU0nB8UMQ+mXFTqBIFz9h1svTlNduNKjnbPXFxw7mJanLVjqxHJRn62uBfmgBj93YHidk2N5Q==",
"bin": {
"playwright": "cli.js"
},
"engines": {
"node": ">=14"
}
},
"node_modules/@types/node": {
"version": "17.0.40",
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.40.tgz",
@ -124,12 +135,19 @@
},
"dependencies": {
"@playwright/test": {
"version": "1.22.2",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.22.2.tgz",
"integrity": "sha512-cCl96BEBGPtptFz7C2FOSN3PrTnJ3rPpENe+gYCMx4GNNDlN4tmo2D89y13feGKTMMAIVrXfSQ/UmaQKLy1XLA==",
"version": "1.25.0",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.25.0.tgz",
"integrity": "sha512-j4EZhTTQI3dBeWblE21EV//swwmBtOpIrLdOIJIRv4uqsLdHgBg1z+JtTg+AeC5o2bAXIE26kDNW5A0TimG8Bg==",
"requires": {
"@types/node": "*",
"playwright-core": "1.22.2"
"playwright-core": "1.25.0"
},
"dependencies": {
"playwright-core": {
"version": "1.25.0",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.25.0.tgz",
"integrity": "sha512-kZ3Jwaf3wlu0GgU0nB8UMQ+mXFTqBIFz9h1svTlNduNKjnbPXFxw7mJanLVjqxHJRn62uBfmgBj93YHidk2N5Q=="
}
}
},
"@types/node": {

View File

@ -8,7 +8,7 @@
"test-firefox-ci": "export CI='true' && npx playwright test --project=firefox --grep @ci"
},
"dependencies": {
"@playwright/test": "^1.19.2",
"@playwright/test": "^1.25.0",
"playwright": "^1.19.2",
"axios": "^0.26.1",
"dotenv": "^16.0.0",