diff --git a/src/blocks/Map/__tests__/Map.visual.test.tsx b/src/blocks/Map/__tests__/Map.visual.test.tsx index 1b2bf8281..f7cae8353 100644 --- a/src/blocks/Map/__tests__/Map.visual.test.tsx +++ b/src/blocks/Map/__tests__/Map.visual.test.tsx @@ -4,28 +4,30 @@ import {test} from '../../../../playwright/core/index'; import {Default, Direction, MapsTypes, Size} from './helpers'; +const DEFAULT_MAP_DELAY = 10 * 1000; + test.describe('Map', () => { - test('render stories ', async ({mount, expectScreenshot, page}) => { + test('render stories ', async ({mount, expectScreenshot, delay, page}) => { await mount(); - + await delay(DEFAULT_MAP_DELAY); await expectScreenshot({skipTheme: 'dark', mask: [page.locator('.pc-map')]}); }); - test('render stories ', async ({mount, expectScreenshot, page}) => { + test('render stories ', async ({mount, expectScreenshot, delay, page}) => { await mount(); - + await delay(DEFAULT_MAP_DELAY); await expectScreenshot({skipTheme: 'dark', mask: [page.locator('.pc-map')]}); }); - test('render stories ', async ({mount, expectScreenshot, page}) => { + test('render stories ', async ({mount, expectScreenshot, delay, page}) => { await mount(); - + await delay(DEFAULT_MAP_DELAY); await expectScreenshot({skipTheme: 'dark', mask: [page.locator('.pc-map')]}); }); - test('render stories ', async ({mount, expectScreenshot, page}) => { + test('render stories ', async ({mount, expectScreenshot, delay, page}) => { await mount(); - + await delay(DEFAULT_MAP_DELAY); await expectScreenshot({skipTheme: 'dark', mask: [page.locator('.pc-map')]}); }); });