diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 7926869..d206675 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -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', @@ -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, }, })