mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: skip devtools test with USES_HOOKS (#2895)
This commit is contained in:
parent
cb8b1bca97
commit
7039409397
@ -17,7 +17,7 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const utils = require('../utils');
|
const utils = require('../utils');
|
||||||
const {makeUserDataDir, removeUserDataDir} = utils;
|
const {makeUserDataDir, removeUserDataDir} = utils;
|
||||||
const {FFOX, CHROMIUM, WEBKIT, WIN, CHANNEL} = utils.testOptions(browserType);
|
const {FFOX, CHROMIUM, WEBKIT, WIN, USES_HOOKS} = utils.testOptions(browserType);
|
||||||
|
|
||||||
describe('launcher', function() {
|
describe('launcher', function() {
|
||||||
it('should throw with remote-debugging-pipe argument', async({browserType, defaultBrowserOptions}) => {
|
it('should throw with remote-debugging-pipe argument', async({browserType, defaultBrowserOptions}) => {
|
||||||
@ -32,7 +32,7 @@ describe('launcher', function() {
|
|||||||
const browser = await browserType.launchServer(options);
|
const browser = await browserType.launchServer(options);
|
||||||
await browser.close();
|
await browser.close();
|
||||||
});
|
});
|
||||||
it('should open devtools when "devtools: true" option is given', async({browserType, defaultBrowserOptions}) => {
|
it.skip(USES_HOOKS)('should open devtools when "devtools: true" option is given', async({browserType, defaultBrowserOptions}) => {
|
||||||
let devtoolsCallback;
|
let devtoolsCallback;
|
||||||
const devtoolsPromise = new Promise(f => devtoolsCallback = f);
|
const devtoolsPromise = new Promise(f => devtoolsCallback = f);
|
||||||
const __testHookForDevTools = devtools => devtools.__testHookOnBinding = parsed => {
|
const __testHookForDevTools = devtools => devtools.__testHookOnBinding = parsed => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user