test: check channel is not null (#18908)

This commit is contained in:
Diego Pino 2022-11-19 00:12:55 +08:00 committed by GitHub
parent 1ec0bb277d
commit b6ececf6e5
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' && browserMajorVersion < 109 || channel.startsWith('msedge') && browserMajorVersion < 110);
it.skip(browserName === 'chromium' && browserMajorVersion < 109 || channel && 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);