test: add a failing test for #11202 (#11206)

This commit is contained in:
Pavel Feldman 2022-01-05 15:53:53 -08:00 committed by GitHub
parent ccc61e31ea
commit 913c9ab59f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,3 +305,14 @@ it('data-testid on the handle should be relative', async ({ page }) => {
expect(await div.$eval(`data-testid=find-me`, e => e.id)).toBe('target2');
expect(await page.$eval(`div >> data-testid=find-me`, e => e.id)).toBe('target2');
});
it('should consider display:contents elements visible', async ({ page }) => {
it.fixme(true, 'Nested <p> returns empty client rect');
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/11202' });
await page.setContent(`
<div>
<p style="display:contents">DISPLAY CONTENTS</p>
</div>`);
await page.waitForSelector('"DISPLAY CONTENTS"');
});