Skip to content

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

test: unflake launcher test (#2224)

Dmitry Gozman884860b803d1
diff --git a/test/launcher.spec.js b/test/launcher.spec.js
index 093e0296fa..c18521c51e 100644
--- a/test/launcher.spec.js
+++ b/test/launcher.spec.js
@@ -58,7 +58,7 @@ describe('Playwright', function() {
});
it('should handle exception', async({browserType, defaultBrowserOptions}) => {
const e = new Error('Dummy');
- const options = { ...defaultBrowserOptions, __testHookBeforeCreateBrowser: () => { throw e; } };
+ const options = { ...defaultBrowserOptions, __testHookBeforeCreateBrowser: () => { throw e; }, timeout: 9000 };
const error = await browserType.launch(options).catch(e => e);
expect(error).toBe(e);
});