Skip to content

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

test: skip "should support has:locator" on tracing bots (#11876)

Dmitry Gozmanaf4944388f78
diff --git a/tests/page/locator-query.spec.ts b/tests/page/locator-query.spec.ts
index 504adf1d2a..47777667f2 100644
--- a/tests/page/locator-query.spec.ts
+++ b/tests/page/locator-query.spec.ts
@@ -90,7 +90,9 @@ it('should filter by regex and regexp flags', async ({ page }) => {
await expect(page.locator('div', { hasText: /hElLo "world"/i })).toHaveText('Hello "world"');
});
-it('should support has:locator', async ({ page }) => {
+it('should support has:locator', async ({ page, trace }) => {
+ it.skip(trace === 'on');
+
await page.setContent(`<div><span>hello</span></div><div><span>world</span></div>`);
await expect(page.locator(`div`, {
has: page.locator(`text=world`)