diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index ea72ded..e8bab06 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -16,6 +16,8 @@ jobs: - name: Install dependencies run: npm ci - name: Build site + env: + VITE_OFFLINE_VERSION: true run: npm run build - name: Install Playwright Browsers run: npx playwright install --with-deps diff --git a/e2e/tests/pageload.spec.ts b/e2e/tests/pageload.spec.ts index fb05e72..3bf1d13 100644 --- a/e2e/tests/pageload.spec.ts +++ b/e2e/tests/pageload.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; -const url = 'http://localhost:5173'; +const url = 'http://localhost:8000'; test('page load', async ({ page }) => { const errors: string[] = []; diff --git a/playwright.config.ts b/playwright.config.ts index 7b6817a..c88b6c1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -73,8 +73,8 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: 'npm run dev', - url: 'http://127.0.0.1:5173', + command: 'npm run host-dev', + url: 'http://127.0.0.1:8000', reuseExistingServer: !process.env.CI, }, });