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

This commit is contained in:
Dmitry Gozman 2022-02-04 15:34:33 -08:00 committed by GitHub
parent afc4b505aa
commit af4944388f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"'); 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 page.setContent(`<div><span>hello</span></div><div><span>world</span></div>`);
await expect(page.locator(`div`, { await expect(page.locator(`div`, {
has: page.locator(`text=world`) has: page.locator(`text=world`)