Skip to content

Commit

Permalink
feat: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Arucard89 committed Feb 7, 2024
1 parent a82983d commit 7c3dcb4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/components/Slider/__tests__/Slider.visual.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';

import {expect} from '@playwright/experimental-ct-react';

import {test} from '~playwright/core';

import {Showcase} from './helpersPlaywright';

test.describe('Slider', () => {
test('render story: <Showcase>', async ({mount}) => {
const component = await mount(<Showcase />);

await expect(component).toHaveScreenshot();
});
});
5 changes: 5 additions & 0 deletions src/components/Slider/__tests__/helpersPlaywright.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {composeStories} from '@storybook/react';

import * as SliderStories from '../__stories__/Slider.stories';

export const {Showcase} = composeStories(SliderStories);

0 comments on commit 7c3dcb4

Please sign in to comment.