Skip to content

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

chore: skip click test based on the browser version (#6127)

Yury Semikhatskyf7e7ea93e28f
diff --git a/tests/selectors-misc.spec.ts b/tests/selectors-misc.spec.ts
index 14bf560909..1089a04bb9 100644
--- a/tests/selectors-misc.spec.ts
+++ b/tests/selectors-misc.spec.ts
@@ -27,8 +27,8 @@ it('should work for open shadow roots', async ({page, server}) => {
expect(await page.$$(`data-testid:light=foo`)).toEqual([]);
});
-it('should click on links in shadow dom', async ({page, server, browserName, browserChannel}) => {
- it.fixme(browserName === 'chromium' && !!browserChannel, 'Enable when crrev.com/864024 get to the stable channel');
+it('should click on links in shadow dom', async ({page, server, browserName, browserVersion}) => {
+ it.fixme(browserName === 'chromium' && Number(browserVersion.split('.')[0]) < 91, 'Remove when crrev.com/864024 gets to the stable channel');
it.fixme(!!process.env.PW_ANDROID_TESTS);
it.fixme(!!process.env.PW_ELECTRON_TESTS);