Skip to content

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

test: add a test for arbitrary options (#2977)

Dmitry Gozman513899a3b9a3
diff --git a/test/launcher.spec.js b/test/launcher.spec.js
index be52970f12..47cd56230f 100644
--- a/test/launcher.spec.js
+++ b/test/launcher.spec.js
@@ -18,7 +18,7 @@
const path = require('path');
const fs = require('fs');
const utils = require('./utils');
-const {FFOX, CHROMIUM, WEBKIT, WIN, USES_HOOKS} = utils.testOptions(browserType);
+const {FFOX, CHROMIUM, WEBKIT, WIN, USES_HOOKS, CHANNEL} = utils.testOptions(browserType);
describe('Playwright', function() {
describe('browserType.launch', function() {
@@ -75,6 +75,10 @@ describe('Playwright', function() {
const error = await browserType.launch(options).catch(e => e);
expect(error.message).toContain('<launching>');
});
+ it.slow().skip(CHANNEL)('should accept objects as options', async({browserType, defaultBrowserOptions}) => {
+ const browser = await browserType.launch({ ...defaultBrowserOptions, process });
+ await browser.close();
+ });
});
describe('browserType.launchServer', function() {