Revert "Try localhost"
This reverts commit e0da10c0006d8f984771dbdc38508b69f902835e.
This commit is contained in:
parent
85f918b397
commit
01717b392c
4
.github/workflows/playwright.yml
vendored
4
.github/workflows/playwright.yml
vendored
@ -25,8 +25,8 @@ jobs:
|
||||
- name: Install Playwright Browsers
|
||||
run: pnpm exec playwright install --with-deps
|
||||
- name: Run the service that will be tested
|
||||
run: HOSTNAME=localhost node .next/standalone/server.js &
|
||||
run: HOSTNAME=127.0.0.1 node .next/standalone/server.js &
|
||||
- name: Wait for the service to be ready
|
||||
run: npx wait-on http://localhost:3000/default/dashboard/guests --timeout 30000
|
||||
run: npx wait-on http://127.0.0.1:3000/default/dashboard/guests --timeout 30000
|
||||
- name: Run Playwright tests
|
||||
run: DEBUG=pw:api pnpm exec playwright test
|
||||
|
@ -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://localhost:3000',
|
||||
baseURL: 'http://127.0.0.1:3000',
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'on-first-retry',
|
||||
@ -67,7 +67,7 @@ export default defineConfig({
|
||||
/* Run your local dev server before starting the tests */
|
||||
// webServer: {
|
||||
// command: 'npm run start',
|
||||
// url: 'http://localhost:3000',
|
||||
// url: 'http://127.0.0.1:3000',
|
||||
// reuseExistingServer: !process.env.CI,
|
||||
// },
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user