mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
fix(wire): fix the wire mode (#4008)
This commit is contained in:
parent
7ccdc5176d
commit
6dccd2735a
@ -63,3 +63,6 @@ export function runServer() {
|
|||||||
(playwright as any).electron = new Electron();
|
(playwright as any).electron = new Electron();
|
||||||
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
|
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.argv[2] === 'serve')
|
||||||
|
runServer();
|
||||||
|
@ -92,7 +92,7 @@ fixtures.overrideWorkerFixture('playwright', async ({ browserName, testWorkerInd
|
|||||||
if (wire) {
|
if (wire) {
|
||||||
require('../lib/utils/utils').setUnderTest();
|
require('../lib/utils/utils').setUnderTest();
|
||||||
const connection = new Connection();
|
const connection = new Connection();
|
||||||
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], {
|
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'driver.js'), ['serve'], {
|
||||||
stdio: 'pipe',
|
stdio: 'pipe',
|
||||||
detached: true,
|
detached: true,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user