From 01717b392c6a53c0165ed86843a3176422fa522d Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 8 Jun 2025 11:49:44 +0200 Subject: [PATCH] Revert "Try localhost" This reverts commit e0da10c0006d8f984771dbdc38508b69f902835e. --- .github/workflows/playwright.yml | 4 ++-- playwright.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 03151bb..91e5e10 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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 diff --git a/playwright.config.ts b/playwright.config.ts index 0748741..82aa0d4 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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, // }, });