File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
template/config/playwright Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default defineConfig({
34
34
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
35
35
actionTimeout : 0 ,
36
36
/* Base URL to use in actions like `await page.goto('/')`. */
37
- baseURL : 'http://localhost:5173' ,
37
+ baseURL : process . env . CI ? 'http://localhost:4173' : 'http://localhost:5173' ,
38
38
39
39
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
40
40
trace : 'on-first-retry' ,
@@ -103,8 +103,8 @@ export default defineConfig({
103
103
* Use the preview server on CI for more realistic testing.
104
104
* Playwright will re-use the local server if there is already a dev-server running.
105
105
*/
106
- command : process . env . CI ? 'vite preview --port 5173 ' : 'vite dev' ,
107
- port : 5173 ,
106
+ command : process . env . CI ? 'npm run preview ' : 'npm run dev' ,
107
+ port : process . env . CI ? 4173 : 5173 ,
108
108
reuseExistingServer : ! process . env . CI
109
109
}
110
110
} )
You can’t perform that action at this time.
0 commit comments