Skip to content

Commit 94fc5ac

Browse files
committed
chore: update Playwright configuration to change base URL and enhance web server settings for improved testing environment
1 parent ad6e595 commit 94fc5ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/cms/playwright.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineConfig({
2222
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2323
use: {
2424
/* Base URL to use in actions like `await page.goto('/')`. */
25-
// baseURL: 'http://localhost:3000',
25+
baseURL: 'http://localhost:3001',
2626

2727
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2828
trace: 'on-first-retry',
@@ -35,7 +35,8 @@ export default defineConfig({
3535
],
3636
webServer: {
3737
command: 'pnpm dev',
38-
reuseExistingServer: true,
39-
url: 'http://localhost:3000',
38+
url: 'http://localhost:3001',
39+
reuseExistingServer: !process.env.CI,
40+
timeout: 120 * 1000,
4041
},
4142
});

0 commit comments

Comments
 (0)