From ca3019344f843df181b5d953fa8b631c955d3a0e Mon Sep 17 00:00:00 2001 From: alex-arc Date: Mon, 25 May 2026 11:37:02 +0200 Subject: [PATCH] fix: playwright test --- .github/workflows/test.yml | 12 ++++++++++-- package.json | 8 ++++---- pnpm-lock.yaml | 26 +++++++++++++------------- 3 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2dfc024e3..2d1ea867bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,10 @@ jobs: steps: - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version-file: '.nvmrc' + - name: Setup pnpm uses: pnpm/action-setup@v6 @@ -54,6 +58,10 @@ jobs: steps: - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version-file: '.nvmrc' + - name: Setup pnpm uses: pnpm/action-setup@v6 @@ -81,11 +89,11 @@ jobs: key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} restore-keys: | ${{ runner.os }}-playwright- - - run: npx playwright install --with-deps + - run: pnpm playwright install --with-deps if: steps.playwright-cache.outputs.cache-hit != 'true' - name: Install Playwright Browsers - run: npx playwright install --with-deps + run: pnpm playwright install --with-deps - name: Run Playwright tests run: pnpm e2e diff --git a/package.json b/package.json index c202d2c2d7..393614af7e 100644 --- a/package.json +++ b/package.json @@ -32,16 +32,16 @@ "dist-win": "turbo run dist-win --filter=ontime-electron", "dist-mac": "turbo run dist-mac --filter=ontime-electron", "dist-linux": "turbo run dist-linux --filter=ontime-electron", - "e2e": "turbo run build --filter=ontime-ui && pnpm clear-temp && cross-env DEBUG=pw:webserver npx playwright test -c playwright.config.ts", - "e2e:ui": "cross-env NODE_ENV=development cross-env DEBUG=pw:webserver npx playwright test --ui -c playwright.config.ts", - "e2e:i": "npx playwright codegen", + "e2e": "turbo run build --filter=ontime-ui && pnpm clear-temp && cross-env DEBUG=pw:webserver pnpm playwright test -c playwright.config.ts", + "e2e:ui": "cross-env NODE_ENV=development cross-env DEBUG=pw:webserver pnpm playwright test --ui -c playwright.config.ts", + "e2e:i": "pnpm playwright codegen", "clear-temp": "rimraf e2e/tests/fixtures/tmp", "test": "turbo run test:pipeline", "format": "oxfmt", "format:check": "oxfmt --check" }, "devDependencies": { - "@playwright/test": "^1.58.2", + "@playwright/test": "1.60.0", "@types/node": "catalog:", "cross-env": "^7.0.3", "oxfmt": "^0.42.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67fecece60..8e3ec0331c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: .: devDependencies: '@playwright/test': - specifier: ^1.58.2 - version: 1.58.2 + specifier: 1.60.0 + version: 1.60.0 '@types/node': specifier: 'catalog:' version: 22.19.11 @@ -1904,8 +1904,8 @@ packages: resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==} engines: {node: '>= 10.0.0'} - '@playwright/test@1.58.2': - resolution: {integrity: sha512-akea+6bHYBBfA9uQqSYmlJXn61cTa+jbO87xVLCWbTqbWadRVmhxlXATaOjOgcBaWU4ePo0wB41KMFv3o35IXA==} + '@playwright/test@1.60.0': + resolution: {integrity: sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==} engines: {node: '>=18'} hasBin: true @@ -4124,13 +4124,13 @@ packages: resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} engines: {node: '>=12'} - playwright-core@1.58.2: - resolution: {integrity: sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg==} + playwright-core@1.60.0: + resolution: {integrity: sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==} engines: {node: '>=18'} hasBin: true - playwright@1.58.2: - resolution: {integrity: sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A==} + playwright@1.60.0: + resolution: {integrity: sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==} engines: {node: '>=18'} hasBin: true @@ -6487,9 +6487,9 @@ snapshots: '@parcel/watcher-win32-x64': 2.5.1 optional: true - '@playwright/test@1.58.2': + '@playwright/test@1.60.0': dependencies: - playwright: 1.58.2 + playwright: 1.60.0 '@quansync/fs@1.0.0': dependencies: @@ -8780,11 +8780,11 @@ snapshots: picomatch@4.0.4: {} - playwright-core@1.58.2: {} + playwright-core@1.60.0: {} - playwright@1.58.2: + playwright@1.60.0: dependencies: - playwright-core: 1.58.2 + playwright-core: 1.60.0 optionalDependencies: fsevents: 2.3.2