From 69fb5fd7da82238ed3b15c940898174e082b0763 Mon Sep 17 00:00:00 2001 From: Hkaar Date: Wed, 30 Oct 2024 15:15:11 +0800 Subject: [PATCH] Fixed e2e tests --- .github/workflows/ci.yaml | 5 ++++- playwright.config.ts | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 78f36aa..4e7d56e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -72,7 +72,10 @@ jobs: - name: Install dependencies run: npm ci - + + - name: Build app + run: npm run build + - name: Install Playwright Browsers run: npx playwright install --with-deps diff --git a/playwright.config.ts b/playwright.config.ts index 914e4ad..e26749a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -71,9 +71,9 @@ export default defineConfig({ ], /* Run your local dev server before starting the tests */ - // webServer: { - // command: 'npm run start', - // url: 'http://127.0.0.1:3000', - // reuseExistingServer: !process.env.CI, - // }, + webServer: { + command: 'npm run start', + url: 'http://127.0.0.1:3000', + reuseExistingServer: !process.env.CI, + }, });