diff --git a/.github/workflows/playwright-scheduled.yml b/.github/workflows/playwright-scheduled.yml index f128cee..e580d7e 100644 --- a/.github/workflows/playwright-scheduled.yml +++ b/.github/workflows/playwright-scheduled.yml @@ -74,10 +74,16 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: yarn + # Intentionally NOT caching yarn — a stale runner cache was + # leaving @axe-core/playwright out of node_modules even though + # it sat in yarn.lock. Mirrors cypress-manual.yml which also + # opts out of caching. - name: Install dependencies - run: yarn install --frozen-lockfile + # Plain `yarn install` (no --frozen-lockfile) — matches the + # cypress-manual.yml pattern. Slower per run (~30-60s vs cached) + # but guarantees a clean node_modules every time. + run: yarn install - name: Decode prod env file if: env.APP_ENV == 'prod' diff --git a/playwright.config.ts b/playwright.config.ts index ad129bf..7c4d286 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,3 +1,4 @@ +/// import { defineConfig, devices } from '@playwright/test'; const baseURL = process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3005';