test: fix webview2 & msedge tests (#18823)

This commit is contained in:
Max Schmitt 2022-11-15 08:44:26 -10:00 committed by GitHub
parent 98513c3737
commit 4b352acdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ it('should scroll into view display:contents with position', async ({ page, brow
it('should not crash when force-clicking hidden input', async ({ page, browserName, channel, browserMajorVersion }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18183' });
it.skip(browserName === 'chromium' && !!channel && browserMajorVersion < 109);
it.skip(browserName === 'chromium' && browserMajorVersion < 109 || channel.startsWith('msedge') && browserMajorVersion < 110);
await page.setContent(`<input type=hidden>`);
const error = await page.locator('input').click({ force: true, timeout: 2000 }).catch(e => e);