reduce e2e timeout, use 127.0.0.1 instead of localhost

This commit is contained in:
einhornimmond 2025-04-29 14:36:56 +02:00
parent 579560c3e8
commit 643a1b2970
2 changed files with 6 additions and 6 deletions

View File

@ -33,18 +33,18 @@ export default defineConfig({
e2e: {
specPattern: '**/*.feature',
excludeSpecPattern: '*.js',
baseUrl: 'http://localhost:3000',
baseUrl: 'http://127.0.0.1:3000',
chromeWebSecurity: false,
defaultCommandTimeout: 200000,
pageLoadTimeout: 240000,
defaultCommandTimeout: 2000,
pageLoadTimeout: 2400,
supportFile: 'cypress/support/index.ts',
viewportHeight: 720,
viewportWidth: 1280,
video: false,
retries: 0,
env: {
backendURL: 'http://localhost:4000',
mailserverURL: 'http://localhost:1080',
backendURL: 'http://127.0.0.1:4000',
mailserverURL: 'http://127.0.0.1:1080',
loginQuery: `mutation ($email: String!, $password: String!, $publisherId: Int) {
login(email: $email, password: $password, publisherId: $publisherId) {
id

View File

@ -13,7 +13,7 @@ const config: PlaywrightTestConfig = {
video: 'never',
viewport: { width: 1280, height: 720 },
use: {
baseURL: process.env.URL || 'http://localhost:3000',
baseURL: process.env.URL || 'http://127.0.0.1:3000',
browserName: 'webkit',
},