mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix wire tests (#3609)
This commit is contained in:
parent
b9d6324d14
commit
3b2f14fcee
@ -33,6 +33,6 @@ transport.onclose = async () => {
|
|||||||
transport.onmessage = message => dispatcherConnection.dispatch(JSON.parse(message));
|
transport.onmessage = message => dispatcherConnection.dispatch(JSON.parse(message));
|
||||||
dispatcherConnection.onmessage = message => transport.send(JSON.stringify(message));
|
dispatcherConnection.onmessage = message => transport.send(JSON.stringify(message));
|
||||||
|
|
||||||
const playwright = new Playwright(__dirname, require('../../browsers.json')['browsers']);
|
const playwright = new Playwright(__dirname, require('../browsers.json')['browsers']);
|
||||||
(playwright as any).electron = new Electron();
|
(playwright as any).electron = new Electron();
|
||||||
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
|
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
|
||||||
|
|||||||
@ -117,7 +117,7 @@ registerWorkerFixture('playwright', async({browserName}, test) => {
|
|||||||
const {coverage, uninstall} = installCoverageHooks(browserName);
|
const {coverage, uninstall} = installCoverageHooks(browserName);
|
||||||
if (options.WIRE) {
|
if (options.WIRE) {
|
||||||
const connection = new Connection();
|
const connection = new Connection();
|
||||||
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server'), [], {
|
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], {
|
||||||
stdio: 'pipe',
|
stdio: 'pipe',
|
||||||
detached: true,
|
detached: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user