Try localhost
Some checks failed
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m40s
Add copyright notice / copyright_notice (pull_request) Successful in 1m40s
Playwright Tests / test (pull_request) Failing after 13m49s
Build Nginx-based docker image / build-static-assets (push) Successful in 14m7s

This commit is contained in:
Manuel Bustillo 2025-06-08 11:10:00 +02:00
parent 8b0cab93c9
commit e0da10c000
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=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

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