tests - fix web integration tests to fail creating a page (#170613)

This commit is contained in:
Benjamin Pasero
2023-01-05 11:54:56 +01:00
committed by GitHub
parent e5b0dac77d
commit 689624e401

View File

@@ -35,11 +35,6 @@ type BrowserType = 'chromium' | 'firefox' | 'webkit';
async function runTestsInBrowser(browserType: BrowserType, endpoint: url.UrlWithStringQuery, server: cp.ChildProcess): Promise<void> {
const browser = await playwright[browserType].launch({ headless: !Boolean(optimist.argv.debug) });
const context = await browser.newContext();
try {
await context.grantPermissions([`clipboard-read`, `clipboard-write`]); // some tests need clipboard access
} catch (error) {
// ignore, seems to fail on Windows
}
const page = await context.newPage();
await page.setViewportSize({ width, height });