mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-26 08:32:26 +08:00
test: unflake 'should throw connection error and allow re-connecting' (#398)
Fixes https://github.com/microsoft/playwright-mcp/actions/runs/14940263450/job/41976152764#step:8:315
This commit is contained in:
parent
445170a76b
commit
84664d4b09
@ -120,7 +120,12 @@ export const test = baseTest.extend<TestFixtures & TestOptions, WorkerFixtures>(
|
||||
});
|
||||
return `http://localhost:${port}`;
|
||||
});
|
||||
browserProcess?.kill();
|
||||
await new Promise<void>(resolve => {
|
||||
if (!browserProcess)
|
||||
return resolve();
|
||||
browserProcess.on('exit', () => resolve());
|
||||
browserProcess.kill();
|
||||
});
|
||||
},
|
||||
|
||||
mcpHeadless: async ({ headless }, use) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user