test: screenshot of css box-shadow (#27438)

Reference #21620
This commit is contained in:
Yury Semikhatsky 2023-10-04 17:26:01 -07:00 committed by GitHub
parent b2a07c2675
commit 0eb7a09967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 0 deletions

View file

@ -884,3 +884,9 @@ it('page screenshot should capture css transform', async function({ page, browse
await expect(page).toHaveScreenshot();
});
it('should capture css box-shadow', async ({ page }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21620' });
await page.setContent(`<div style="box-shadow: red 10px 10px 10px; width: 50px; height: 50px;"></div>`);
await expect(page).toHaveScreenshot();
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB