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
|
const runId = process.env.PLAYWRIGHT_SERVICE_RUN_ID || new Date().toISOString(); // name the test run
|
||||||
|
|
||||||
let connectOptions: any;
|
let connectOptions: any;
|
||||||
let webServer: any;
|
let webServer: Config['webServer'];
|
||||||
|
|
||||||
if (mode === 'service') {
|
if (mode === 'service') {
|
||||||
connectOptions = { wsEndpoint: 'ws://localhost:3333/' };
|
connectOptions = { wsEndpoint: 'ws://localhost:3333/' };
|
||||||
|
|
@ -64,6 +64,7 @@ if (mode === 'service') {
|
||||||
command: 'npx playwright run-server --port=3333',
|
command: 'npx playwright run-server --port=3333',
|
||||||
url: 'http://localhost:3333',
|
url: 'http://localhost:3333',
|
||||||
reuseExistingServer: !process.env.CI,
|
reuseExistingServer: !process.env.CI,
|
||||||
|
env: { PWTEST_UNDER_TEST: '1' }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (mode === 'service2') {
|
if (mode === 'service2') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue