From 3df438fb4b65f36e432a284a38d83a92e8f34eab Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 30 Jan 2026 14:55:41 +0000 Subject: [PATCH 1/3] test: only build nuxt once for browser tests --- playwright.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playwright.config.ts b/playwright.config.ts index 39527d2b..1654e674 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,6 +3,8 @@ import { fileURLToPath } from 'node:url' import { defineConfig, devices } from '@playwright/test' import type { ConfigOptions } from '@nuxt/test-utils/playwright' +const baseURL = 'http://localhost:5678' + export default defineConfig({ testDir: './tests', fullyParallel: true, @@ -11,10 +13,18 @@ export default defineConfig({ workers: process.env.CI ? 1 : undefined, reporter: 'html', timeout: 120_000, + webServer: { + command: 'NODE_ENV=test pnpm build && pnpm preview --port 5678', + url: baseURL, + reuseExistingServer: false, + timeout: 60_000, + }, use: { + baseURL, trace: 'on-first-retry', nuxt: { rootDir: fileURLToPath(new URL('.', import.meta.url)), + host: baseURL, }, }, projects: [ From caff324fa289f922406ad1af663c91fc13a2851d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 30 Jan 2026 14:56:29 +0000 Subject: [PATCH 2/3] chore: reduce worker count --- playwright.config.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 1654e674..1a46b923 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -10,14 +10,13 @@ export default defineConfig({ fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, - workers: process.env.CI ? 1 : undefined, reporter: 'html', timeout: 120_000, webServer: { command: 'NODE_ENV=test pnpm build && pnpm preview --port 5678', url: baseURL, reuseExistingServer: false, - timeout: 60_000, + timeout: 120_000, }, use: { baseURL, From 7327a631625f9dbc24cc46584b9454a9b2a28445 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 30 Jan 2026 15:13:24 +0000 Subject: [PATCH 3/3] chore: bump playwright ci version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69feaefc..f083ed49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: browser: runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.57.0-noble + image: mcr.microsoft.com/playwright:v1.58.0-noble steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1