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; -}