diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f415e86..9ae59b3 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=127.0.0.1 node .next/standalone/server.js & + run: HOSTNAME=localhost node .next/standalone/server.js & - name: Wait for the service to be ready - run: npx wait-on http://127.0.0.1:3000 --timeout 30000 + run: npx wait-on http://localhost:3000 --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 82aa0d4..0748741 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://127.0.0.1:3000', + baseURL: 'http://localhost: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://127.0.0.1:3000', + // url: 'http://localhost:3000', // reuseExistingServer: !process.env.CI, // }, });