Skip to content

Commit

Permalink
Configure CI to use "npm run preview" istead of "dev"
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Dec 16, 2024
1 parent 0cf8903 commit b5d4bd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default defineConfig({
actionTimeout: 5 * 1000,
/* Base URL to use in actions like `await page.goto('/')`.
needs to be in sync with "webserver" config below*/
// baseURL: process.env.CI ? 'http://localhost:4173' : 'http://localhost:5173',
baseURL: 'http://localhost:5173',
baseURL: process.env.CI ? 'http://localhost:4173' : 'http://localhost:5173',
// baseURL: 'http://localhost:5173',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down Expand Up @@ -106,10 +106,10 @@ export default defineConfig({
* Use the preview server on CI for more realistic testing.
* Playwright will re-use the local server if there is already a dev-server running.
*/
// command: process.env.CI ? 'npm run preview' : 'npm run dev',
command: 'npm run dev',
// port: process.env.CI ? 4173 : 5173,
port: 5173,
command: process.env.CI ? 'npm run preview' : 'npm run dev',
// command: 'npm run dev',
port: process.env.CI ? 4173 : 5173,
// port: 5173,
reuseExistingServer: !process.env.CI,
},
})

0 comments on commit b5d4bd0

Please sign in to comment.