Skip to content

Commit 34481b1

Browse files
committed
chore: adjust config for e2e tests
1 parent 0ee1258 commit 34481b1

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

testing/e2e/playwright.docker.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { AUTH_STORAGE_DIR } from './src/helpers/constants';
99

1010
import type { BrowserTarget, ProjectMetadata } from './src/helpers/types';
1111

12-
console.log(process.env.APP_PORT);
13-
1412
const appPort = parseNumber(process.env.APP_PORT);
1513
const gatewayPort = parseNumber(process.env.GATEWAY_PORT);
1614

@@ -73,18 +71,18 @@ export default defineConfig({
7371
webServer: [
7472
{
7573
command: 'true', // Dummy command since services are assumed running in Docker
76-
url: `http://localhost:${appPort}/api/v1/setup`,
77-
timeout: 10_000
74+
timeout: 10_000,
75+
url: `http://localhost:${appPort}/api/v1/setup`
7876
},
7977
{
8078
command: 'true', // Dummy command since services are assumed running in Docker
81-
url: `http://localhost:${gatewayPort}/api/healthcheck`,
82-
timeout: 10_000
79+
timeout: 10_000,
80+
url: `http://localhost:${gatewayPort}/api/healthcheck`
8381
},
8482
{
8583
command: 'true', // Dummy command since services are assumed running in Docker
86-
url: `http://localhost:${appPort}`,
87-
timeout: 10_000
84+
timeout: 10_000,
85+
url: `http://localhost:${appPort}`
8886
}
8987
],
9088
workers: process.env.CI ? 1 : undefined

testing/e2e/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"compilerOptions": {
44
"lib": ["DOM"]
55
},
6-
"include": ["src/**/*", "playwright.config.ts"]
6+
"include": ["src/**/*", "playwright.config.ts", "playwright.docker.config.ts"]
77
}

0 commit comments

Comments
 (0)