From e58af6fecd0444a3a7697fc4efff70a0ae6c236b Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Thu, 12 Oct 2023 16:33:11 +0200 Subject: [PATCH] fix: config --- test-component/playwright.config.ts | 6 ++++++ test-component/playwright/index.scss | 22 ---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/test-component/playwright.config.ts b/test-component/playwright.config.ts index 839629f550..e355366f0f 100644 --- a/test-component/playwright.config.ts +++ b/test-component/playwright.config.ts @@ -66,6 +66,12 @@ const config: PlaywrightTestConfig = { use: {...devices['Desktop Safari']}, }, ], + expect: { + toHaveScreenshot: { + // An acceptable amount of pixels that could be different, unset by default. + maxDiffPixels: 10, + }, + }, }; export default defineConfig(config); diff --git a/test-component/playwright/index.scss b/test-component/playwright/index.scss index 94164e5059..7a17f9ab7f 100644 --- a/test-component/playwright/index.scss +++ b/test-component/playwright/index.scss @@ -1,23 +1 @@ @import '../../styles/styles.scss'; - -h1, -h2, -h3, -h4, -h5, -h6 { - margin: 0; - font-weight: var(--g-text-header-font-weight); -} - -h1 { - font-size: 17px; -} - -h2 { - font-size: 15px; -} - -h3 { - font-size: 13px; -}