Skip to content

Commit

Permalink
[Issue #2459] Speed up e2e tests by testing against built frontend (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch authored Oct 11, 2024
1 parent bcc3ca7 commit b4df98c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci-frontend-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
shell: bash

- name: Run E2E Tests
run: npm run test:e2e
run: |
npm run build
cat .env.development >> .env.local
npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: "npm run dev",
command: "npm run start",
url: "http://127.0.0.1:3000",
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit b4df98c

Please sign in to comment.