Revert "Try localhost"

This reverts commit e0da10c0006d8f984771dbdc38508b69f902835e.
This commit is contained in:
Manuel Bustillo 2025-06-08 11:49:44 +02:00
parent 85f918b397
commit 01717b392c
2 changed files with 4 additions and 4 deletions

View File

@ -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

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://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,
// },
});