Skip to content

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

test: check channel is not null (#18908)

Diego Pinob6ececf6e51c
diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.ts
index d111e6a5e0..cfef31023c 100644
--- a/tests/page/page-click-scroll.spec.ts
+++ b/tests/page/page-click-scroll.spec.ts
@@ -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);