From c7624b62ad4206d7cddb9f9f934935c8a27c1a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 22 May 2024 17:43:23 +0200 Subject: [PATCH] Update `@replayio/playwright` (#10535) * Update `@replayio/playwright` * update again --- .github/workflows/test.yml | 8 ++--- packages/e2e-tests/package.json | 2 +- packages/e2e-tests/playwright.config.ts | 6 ++-- yarn.lock | 46 +++++++++++++++---------- 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 930e8fe33e0..a8e6f5a14eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,8 +97,8 @@ jobs: env: YARN_CHECKSUM_BEHAVIOR: "update" PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 - - name: Install Replay Playwright - run: npx @replayio/playwright install + - name: Install Replay Chromium + run: npx replayio install env: RECORD_REPLAY_CHROMIUM_DOWNLOAD_FILE: ${{ github.event.inputs.linuxBuildFile }} - name: Run Playwright @@ -161,8 +161,8 @@ jobs: env: YARN_CHECKSUM_BEHAVIOR: "update" PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 - - name: Install Replay Playwright - run: npx @replayio/playwright install + - name: Install Replay Chromium + run: npx replayio install - name: Run Playwright run: npx playwright test --shard ${{ matrix.shard }}/1 authenticated/ test-suite-dashboard/ --project replay-chromium working-directory: ./packages/e2e-tests diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index bc5c1002cab..8342ac749f4 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -21,7 +21,7 @@ "license": "ISC", "devDependencies": { "@playwright/test": "^1.37.0", - "@replayio/playwright": "3.0.0-alpha.9", + "@replayio/playwright": "3.0.0-alpha.14", "cli-spinners": "^2.7.0", "cypress": "^12.5.1", "ts-node": "^10.7.0", diff --git a/packages/e2e-tests/playwright.config.ts b/packages/e2e-tests/playwright.config.ts index 2b10a236be3..cc6492b6b5a 100644 --- a/packages/e2e-tests/playwright.config.ts +++ b/packages/e2e-tests/playwright.config.ts @@ -1,5 +1,5 @@ import { PlaywrightTestConfig, ReporterDescription, devices } from "@playwright/test"; -import { devices as replayDevices } from "@replayio/playwright"; +import { devices as replayDevices, replayReporter } from "@replayio/playwright"; const { CI, SLOW_MO } = process.env; @@ -17,7 +17,7 @@ const projects = [ { name: "replay-chromium", use: { - ...(replayDevices["Replay Chromium"] as any), + ...replayDevices["Replay Chromium"], }, }, { @@ -29,7 +29,7 @@ const projects = [ const reporter: ReporterDescription[] = [["line"]]; if (CI) { - reporter.unshift(["@replayio/playwright/reporter"]); + reporter.unshift(replayReporter()); } const config: PlaywrightTestConfig = { diff --git a/yarn.lock b/yarn.lock index 9cc2878ff3d..14093cde1df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3567,20 +3567,19 @@ __metadata: languageName: node linkType: hard -"@replayio/playwright@npm:3.0.0-alpha.9": - version: 3.0.0-alpha.9 - resolution: "@replayio/playwright@npm:3.0.0-alpha.9" +"@replayio/playwright@npm:3.0.0-alpha.14": + version: 3.0.0-alpha.14 + resolution: "@replayio/playwright@npm:3.0.0-alpha.14" dependencies: - "@replayio/replay": ^0.22.3 - "@replayio/test-utils": ^2.0.1 + "@replayio/replay": ^0.22.5 + "@replayio/test-utils": ^2.1.1 debug: ^4.3.4 + stack-utils: ^2.0.6 uuid: ^8.3.2 ws: ^8.13.0 peerDependencies: - "@playwright/test": 1.x - bin: - replayio-playwright: ./bin.js - checksum: 5495c6a877156e8cdd070861ede4bac3d4b4af97a62b2bdd7487a3847547038f10a367990f463bd28379a9b87d1489a86853abc50cb25b5787e8423a0494c644 + "@playwright/test": ^1.34.0 + checksum: 4bb7f265e9350a57a242efa711c43a674196db9ba547319e48297cab7aa729159ddbe7a387bf1aa9bb9d6a5f8049c88ea69c3706fc8d6cb5bd25d8c003c2b1c6 languageName: node linkType: hard @@ -3601,9 +3600,9 @@ __metadata: languageName: node linkType: hard -"@replayio/replay@npm:^0.22.1, @replayio/replay@npm:^0.22.3, @replayio/replay@npm:^0.22.4": - version: 0.22.4 - resolution: "@replayio/replay@npm:0.22.4" +"@replayio/replay@npm:^0.22.4, @replayio/replay@npm:^0.22.5": + version: 0.22.5 + resolution: "@replayio/replay@npm:0.22.5" dependencies: "@replayio/sourcemap-upload": ^2.0.3 "@types/semver": ^7.5.6 @@ -3621,7 +3620,7 @@ __metadata: ws: ^7.5.0 bin: replay: ./bin.js - checksum: 5a01e3a0bd1bfa8f9db0ad940ffcbec099f3268284488ea5887cdb6c74e4b9b5a3e51877f100b4ec46123517171ae2bfae8e2ead670ea1a7717174c8ba16abfc + checksum: b706906c3878a09bdb5a694fa8139b13666e4a81a8546594d5f61fc9f0344659b98546463a07f773977c9171b5f29e0a4fd0974705419540719ffb229833a461 languageName: node linkType: hard @@ -3639,16 +3638,16 @@ __metadata: languageName: node linkType: hard -"@replayio/test-utils@npm:^2.0.1": - version: 2.0.1 - resolution: "@replayio/test-utils@npm:2.0.1" +"@replayio/test-utils@npm:^2.1.1": + version: 2.1.1 + resolution: "@replayio/test-utils@npm:2.1.1" dependencies: - "@replayio/replay": ^0.22.1 + "@replayio/replay": ^0.22.5 debug: ^4.3.4 node-fetch: ^2.6.7 sha-1: ^1.0.0 uuid: ^8.3.2 - checksum: 0b8d73370332f19091351bac8ca2aac28e28557a3e3291adfa6c99a3b02fd8e905ea1eef6abccf313212666d13a491908ebd3eabb5d605bd37ed697da5b20293 + checksum: f0247cc75876f6e00086422315ba702612d494a0ba63d821be073ecf38cb7867ce6c7bd2e9eca5855596f90cdfa679ed4876aafd32218c2347fa9d90a3cf3ad6 languageName: node linkType: hard @@ -9461,7 +9460,7 @@ __metadata: resolution: "functional-tests@workspace:packages/e2e-tests" dependencies: "@playwright/test": ^1.37.0 - "@replayio/playwright": 3.0.0-alpha.9 + "@replayio/playwright": 3.0.0-alpha.14 chalk: ^4 cli-spinners: ^2.7.0 cypress: ^12.5.1 @@ -16138,6 +16137,15 @@ __metadata: languageName: node linkType: hard +"stack-utils@npm:^2.0.6": + version: 2.0.6 + resolution: "stack-utils@npm:2.0.6" + dependencies: + escape-string-regexp: ^2.0.0 + checksum: 052bf4d25bbf5f78e06c1d5e67de2e088b06871fa04107ca8d3f0e9d9263326e2942c8bedee3545795fc77d787d443a538345eef74db2f8e35db3558c6f91ff7 + languageName: node + linkType: hard + "stackframe@npm:^1.3.4": version: 1.3.4 resolution: "stackframe@npm:1.3.4"