diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 526d75352a3..e9cdf953206 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -236,7 +236,9 @@ jobs: run: yarn testunit - name: Install Playwright - run: npx playwright install --with-deps + run: | + cd ./apps/meteor + npx playwright install --with-deps - name: E2E Test API env: @@ -262,7 +264,7 @@ jobs: - name: E2E Test UI env: - TEST_MODE: 'true' + TEST_MODE: "true" MONGO_URL: mongodb://localhost:27017/rocketchat MONGO_OPLOG_URL: mongodb://localhost:27017/local run: | @@ -402,11 +404,13 @@ jobs: for i in $(seq 1 2); do (docker exec mongo mongo rocketchat --eval 'db.dropDatabase()') && npm run testci -- --enterprise --test=testui && s=0 && break || s=$? && ([ ! -w tests/cypress/screenshots ] || mv tests/cypress/screenshots tests/cypress/screenshots-$i) && ([ ! -w tests/cypress/videos ] || mv tests/cypress/videos tests/cypress/videos-$i) && sleep 1; done; (exit $s) - name: Install Playwright - run: npx playwright install --with-deps + run: | + cd ./apps/meteor/ + npx playwright install --with-deps - name: E2E Test UI env: - TEST_MODE: 'true' + TEST_MODE: "true" MONGO_URL: mongodb://localhost:27017/rocketchat MONGO_OPLOG_URL: mongodb://localhost:27017/local ENTERPRISE_LICENSE: ${{ secrets.ENTERPRISE_LICENSE }} diff --git a/apps/meteor/package.json b/apps/meteor/package.json index 25ee4909c71..0a9ccf377c4 100644 --- a/apps/meteor/package.json +++ b/apps/meteor/package.json @@ -67,7 +67,7 @@ "@babel/preset-env": "^7.14.7", "@babel/preset-react": "^7.14.5", "@babel/register": "^7.14.5", - "@playwright/test": "1.20.2", + "@playwright/test": "^1.21.0", "@rocket.chat/eslint-config": "^0.4.0", "@rocket.chat/livechat": "^1.12.2", "@settlin/spacebars-loader": "^1.0.9", diff --git a/yarn.lock b/yarn.lock index 0523a78e5bb..934e48a0c8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2769,9 +2769,9 @@ __metadata: languageName: node linkType: hard -"@playwright/test@npm:1.20.2": - version: 1.20.2 - resolution: "@playwright/test@npm:1.20.2" +"@playwright/test@npm:^1.21.0": + version: 1.21.0 + resolution: "@playwright/test@npm:1.21.0" dependencies: "@babel/code-frame": 7.16.7 "@babel/core": 7.16.12 @@ -2802,14 +2802,14 @@ __metadata: ms: 2.1.3 open: 8.4.0 pirates: 4.0.4 - playwright-core: 1.20.2 + playwright-core: 1.21.0 rimraf: 3.0.2 source-map-support: 0.4.18 stack-utils: 2.0.5 yazl: 2.5.1 bin: playwright: cli.js - checksum: 0261ab1b4228baabc3ccd0dc894f3cf32f11b8ea8336523e179accbed84d8abb3ef0ec7bb2d5520a3d4d53994a1676b6eda8897438ac27c2c49eedac8a50961a + checksum: 76287961599fb53760960e19fc02392f61fdb137e7fa755661d2f560e4c2940c688206401ee42f2bf711eb68e71b1e03b85bb2e3181046487e3ef37f9ce33f69 languageName: node linkType: hard @@ -3318,7 +3318,7 @@ __metadata: "@nivo/heatmap": 0.73.0 "@nivo/line": 0.62.0 "@nivo/pie": 0.73.0 - "@playwright/test": 1.20.2 + "@playwright/test": ^1.21.0 "@rocket.chat/apps-engine": ^1.31.0 "@rocket.chat/css-in-js": ~0.31.9 "@rocket.chat/emitter": ~0.31.9 @@ -19920,9 +19920,9 @@ __metadata: languageName: node linkType: hard -"playwright-core@npm:1.20.2": - version: 1.20.2 - resolution: "playwright-core@npm:1.20.2" +"playwright-core@npm:1.21.0": + version: 1.21.0 + resolution: "playwright-core@npm:1.21.0" dependencies: colors: 1.4.0 commander: 8.3.0 @@ -19944,7 +19944,7 @@ __metadata: yazl: 2.5.1 bin: playwright: cli.js - checksum: 156c2c8729f1e1a454f348a4e362bb6fff7b7fb7a5e5886828afeb9b29c2fae5dff5c3060a9d4a41f5c191aef0532a73513cfb4f2d2c357f1fe240640b28ca14 + checksum: 9221b65a4a10d9df93f59ff9ac788382f6e8b25e7a68bd2f46ad9178b6d94055704f6ad9aa5885a1648dec0ff01f6611d1eced519a0a834615c6924944058fdf languageName: node linkType: hard