Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: skip devtools test with USES_HOOKS (#2895)

Dmitry Gozman70394093973a
diff --git a/test/chromium/launcher.spec.js b/test/chromium/launcher.spec.js
index a3e0664705..8d51b92cd7 100644
--- a/test/chromium/launcher.spec.js
+++ b/test/chromium/launcher.spec.js
@@ -17,7 +17,7 @@
const path = require('path');
const utils = require('../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() {
it('should throw with remote-debugging-pipe argument', async({browserType, defaultBrowserOptions}) => {
@@ -32,7 +32,7 @@ describe('launcher', function() {
const browser = await browserType.launchServer(options);
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;
const devtoolsPromise = new Promise(f => devtoolsCallback = f);
const __testHookForDevTools = devtools => devtools.__testHookOnBinding = parsed => {