test: fix service tests (#31130)

This commit is contained in:
Max Schmitt 2024-06-03 16:28:07 +02:00 committed by GitHub
parent baecdfd938
commit d50a2bb0c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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') {