diff --git a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-chromium-linux.png b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-chromium-linux.png index 2781366..80c3e80 100644 Binary files a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-chromium-linux.png and b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-chromium-linux.png differ diff --git a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-webkit-linux.png b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-webkit-linux.png index a1b2dba..4f4f707 100644 Binary files a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-webkit-linux.png and b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-dark-webkit-linux.png differ diff --git a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-chromium-linux.png b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-chromium-linux.png index 40f6c6d..f678b90 100644 Binary files a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-chromium-linux.png and b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-chromium-linux.png differ diff --git a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-webkit-linux.png b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-webkit-linux.png index 8ee700f..eec92fc 100644 Binary files a/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-webkit-linux.png and b/src/components/MobileHeader/__snapshots__/MobileHeader.visual.test.tsx-snapshots/MobileHeader-render-story-Showcase-light-webkit-linux.png differ diff --git a/src/components/MobileHeader/__stories__/MobileHeaderShowcase.scss b/src/components/MobileHeader/__stories__/MobileHeaderShowcase.scss index 475d0d7..c08fccb 100644 --- a/src/components/MobileHeader/__stories__/MobileHeaderShowcase.scss +++ b/src/components/MobileHeader/__stories__/MobileHeaderShowcase.scss @@ -52,4 +52,13 @@ body { justify-content: center; min-height: 250px; } + + &__side-item { + padding: 10px; + background: none; + border: none; + outline: none; + cursor: pointer; + margin: 0; + } } diff --git a/src/components/MobileHeader/__stories__/MobileHeaderShowcase.tsx b/src/components/MobileHeader/__stories__/MobileHeaderShowcase.tsx index c9d69a3..1008489 100644 --- a/src/components/MobileHeader/__stories__/MobileHeaderShowcase.tsx +++ b/src/components/MobileHeader/__stories__/MobileHeaderShowcase.tsx @@ -97,16 +97,17 @@ export function MobileHeaderShowcase() { ]; const sideItem = ( -
{ ref?.current?.dispatchEvent( getMobileHeaderCustomEvent('MOBILE_PANEL_TOGGLE', {panelName: 'settings'}), ); }} + aria-label="settings" > -
+ ); return ( diff --git a/src/components/MobileHeader/__tests__/MobileHeader.visual.test.tsx b/src/components/MobileHeader/__tests__/MobileHeader.visual.test.tsx index 2417033..acbb688 100644 --- a/src/components/MobileHeader/__tests__/MobileHeader.visual.test.tsx +++ b/src/components/MobileHeader/__tests__/MobileHeader.visual.test.tsx @@ -5,8 +5,9 @@ import {test} from '~playwright/core'; import {MobileHeaderStories} from './helpersPlaywright'; test.describe('MobileHeader', () => { - test('render story: ', async ({mount, expectScreenshot}) => { + test('render story: ', async ({mount, expectScreenshot, defaultDelay}) => { await mount(, undefined, {width: 390, height: 844}); + await defaultDelay(); await expectScreenshot(); });