Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: screenshot of css box-shadow (#27438)
Yury Semikhatsky0eb7a099671d
diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.tsindex c43ed57728..da0d3edf96 100644--- a/tests/page/page-screenshot.spec.ts+++ b/tests/page/page-screenshot.spec.ts@@ -884,3 +884,9 @@ it('page screenshot should capture css transform', async function({ page, browseawait 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();+});diff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-chromium.png b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-chromium.pngnew file mode 100644index 0000000000..089549eb3cBinary files /dev/null and b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-chromium.png differdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-firefox.png b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-firefox.pngnew file mode 100644index 0000000000..aca4c72688Binary files /dev/null and b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-firefox.png differdiff --git a/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-webkit.png b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-webkit.pngnew file mode 100644index 0000000000..6a64bc0ee2Binary files /dev/null and b/tests/page/page-screenshot.spec.ts-snapshots/should-capture-css-box-shadow-1-webkit.png differ