From d50a2bb0c6c41a30362b041cb7333b2bd51888a4 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 3 Jun 2024 16:28:07 +0200 Subject: [PATCH] test: fix service tests (#31130) --- tests/library/playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts index b5e3ef44f1..9ab64c22be 100644 --- a/tests/library/playwright.config.ts +++ b/tests/library/playwright.config.ts @@ -56,7 +56,7 @@ const os: 'linux' | 'windows' = (process.env.PLAYWRIGHT_SERVICE_OS as 'linux' | const runId = process.env.PLAYWRIGHT_SERVICE_RUN_ID || new Date().toISOString(); // name the test run let connectOptions: any; -let webServer: any; +let webServer: Config['webServer']; if (mode === 'service') { connectOptions = { wsEndpoint: 'ws://localhost:3333/' }; @@ -64,6 +64,7 @@ if (mode === 'service') { command: 'npx playwright run-server --port=3333', url: 'http://localhost:3333', reuseExistingServer: !process.env.CI, + env: { PWTEST_UNDER_TEST: '1' } }; } if (mode === 'service2') {