mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix service tests (#31130)
This commit is contained in:
parent
baecdfd938
commit
d50a2bb0c6
@ -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') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user