Skip to content

Commit

Permalink
e2e(Slider): add reduce motion to focus tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eugpoloz committed Sep 30, 2023
1 parent 584c649 commit a0ca4b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vkui/src/components/Slider/Slider.e2e.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test.describe('Slider with Tooltip', () => {
max={30}
/>,
);
await page.emulateMedia({ reducedMotion: 'reduce' });
await page.keyboard.press('Tab');
await expectScreenshotClippedToContent();
});
Expand All @@ -50,6 +51,8 @@ test.describe('keyboard events', () => {
{...componentPlaygroundProps}
/>,
);
await page.emulateMedia({ reducedMotion: 'reduce' });

const locator = page.getByRole('slider');
const [startSlider, endSlider] = await locator.all();

Expand Down

0 comments on commit a0ca4b5

Please sign in to comment.