Skip to content

Commit

Permalink
fix tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ji committed Sep 17, 2023
1 parent 5ef4be3 commit c7efeef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/pageload.spec.ts
Original file line number Diff line number Diff line change
@@ -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[] = [];
Expand Down
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});

0 comments on commit c7efeef

Please sign in to comment.