chore(e2e): execute e2e against built app

This commit is contained in:
Corentin Thomasset 2023-06-29 18:21:01 +02:00
parent 6b8682fd23
commit a6d1e2805b
No known key found for this signature in database
GPG key ID: DBD997E935996158
4 changed files with 29 additions and 7 deletions

View file

@ -25,7 +25,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://127.0.0.1:3000',
baseURL: 'http://127.0.0.1:5050',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
@ -75,8 +75,8 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run dev',
url: 'http://127.0.0.1:3000',
command: 'npm run preview',
url: 'http://127.0.0.1:5050',
reuseExistingServer: !process.env.CI,
},
});