2019-12-18 13:28:23 -07:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
2019-12-18 17:11:45 -08:00
|
|
|
module.exports.describe = function({testRunner, expect, headless, playwright, FFOX, CHROME, WEBKIT}) {
|
2019-12-18 13:28:23 -07:00
|
|
|
const {describe, xdescribe, fdescribe} = testRunner;
|
|
|
|
const {it, fit, xit} = testRunner;
|
|
|
|
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
|
|
|
|
|
|
|
describe('Browser.process', function() {
|
|
|
|
it('should not return child_process for remote browser', async function({browser}) {
|
|
|
|
const browserWSEndpoint = browser.chromium.wsEndpoint();
|
|
|
|
const remoteBrowser = await playwright.connect({browserWSEndpoint});
|
|
|
|
expect(remoteBrowser.process()).toBe(null);
|
|
|
|
remoteBrowser.disconnect();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|