fix(playwright.config): update web server command and URL for local development

- Modified the web server command to use 'npm run start' in CI environments and 'npm run dev' locally.
- Changed the URL from 'http://127.0.0.1:3000' to 'http://localhost:3000' for consistency.
- Added a port specification for clarity.
This commit is contained in:
taroj1205 2025-05-16 12:51:48 +12:00
parent 980883b5b1
commit 9c9883b660
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7

View file

@ -65,8 +65,9 @@ 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: process.env.CI ? 'npm run start' : 'npm run dev',
url: 'http://localhost:3000',
port: 3000,
reuseExistingServer: !process.env.CI,
},
});