From 20f20e9fbae1ae50894de0b687d558c9d0243099 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 26 Sep 2023 18:46:21 -0700 Subject: [PATCH] chore: use stock image matcher in library tests (#27319) --- tests/library/playwright.config.ts | 2 -- tests/page/expect-matcher-result.spec.ts | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts index 8ba9e1ac60..00fcfe03ec 100644 --- a/tests/library/playwright.config.ts +++ b/tests/library/playwright.config.ts @@ -84,8 +84,6 @@ const config: Config { +test('toHaveScreenshot should populate matcherResult', async ({ page, server, isAndroid }) => { + test.skip(isAndroid); await page.setViewportSize({ width: 500, height: 500 }); await page.goto(server.EMPTY_PAGE); const e = await expect(page).toHaveScreenshot('screenshot-sanity.png').catch(e => e); @@ -274,7 +275,7 @@ test('toHaveScreenshot should populate matcherResult', async ({ page, server }) expect.soft(stripAnsi(e.toString())).toContain(`Error: Screenshot comparison failed: - 250000 pixels (ratio 1.00 of all image pixels) are different. + 23362 pixels (ratio 0.10 of all image pixels) are different. Expected:`); });