From 9f05e69069981cfe0668f0b5806e99b5835f3653 Mon Sep 17 00:00:00 2001 From: TzuWei Date: Mon, 18 Mar 2024 19:18:08 +0800 Subject: [PATCH] fix failing test, see microsoft/playwright/issues/16834 --- package.json | 2 +- playwright.config.ts | 2 +- pnpm-lock.yaml | 33 +++++++++++++++++++++------------ 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 45178db..c4da15c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "@iconify-json/uil": "^1.1.0", - "@playwright/test": "^1.34.3", + "@playwright/test": "^1.42.1", "@types/dompurify": "^2.3.3", "@types/katex": "^0.11.1", "@types/markdown-it": "^12.2.3", diff --git a/playwright.config.ts b/playwright.config.ts index ed0c800..78d4a07 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -72,7 +72,7 @@ export default defineConfig({ webServer: { command: "NODE_ENV=test pnpm preview --port 3000", - url: "http://127.0.0.1:3000", + url: "http://localhost:3000", reuseExistingServer: !process.env.CI, }, }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b96d9a..8d97759 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,8 +92,8 @@ devDependencies: specifier: ^1.1.0 version: 1.1.3 '@playwright/test': - specifier: ^1.34.3 - version: 1.34.3 + specifier: ^1.42.1 + version: 1.42.1 '@types/dompurify': specifier: ^2.3.3 version: 2.4.0 @@ -572,14 +572,12 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@playwright/test@1.34.3: - resolution: {integrity: sha512-zPLef6w9P6T/iT6XDYG3mvGOqOyb6eHaV9XtkunYs0+OzxBtrPAAaHotc0X+PJ00WPPnLfFBTl7mf45Mn8DBmw==} - engines: {node: '>=14'} + /@playwright/test@1.42.1: + resolution: {integrity: sha512-Gq9rmS54mjBL/7/MvBaNOBwbfnh7beHvS6oS4srqXFcQHpQCV1+c8JXWE8VLPyRDhgS3H8x8A7hztqI9VnwrAQ==} + engines: {node: '>=16'} + hasBin: true dependencies: - '@types/node': 18.11.18 - playwright-core: 1.34.3 - optionalDependencies: - fsevents: 2.3.2 + playwright: 1.42.1 dev: true /@rollup/pluginutils@5.0.2: @@ -2506,9 +2504,20 @@ packages: vue-demi: 0.13.11(vue@3.2.45) dev: false - /playwright-core@1.34.3: - resolution: {integrity: sha512-2pWd6G7OHKemc5x1r1rp8aQcpvDh7goMBZlJv6Co5vCNLVcQJdhxRL09SGaY6HcyHH9aT4tiynZabMofVasBYw==} - engines: {node: '>=14'} + /playwright-core@1.42.1: + resolution: {integrity: sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==} + engines: {node: '>=16'} + hasBin: true + dev: true + + /playwright@1.42.1: + resolution: {integrity: sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==} + engines: {node: '>=16'} + hasBin: true + dependencies: + playwright-core: 1.42.1 + optionalDependencies: + fsevents: 2.3.2 dev: true /postcss-import@14.1.0(postcss@8.4.21):