Skip to content

Commit

Permalink
test(Row): improve visual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itwillwork committed Aug 27, 2024
1 parent 092b880 commit 7b46e58
Show file tree
Hide file tree
Showing 10 changed files with 24 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.
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.
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.
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.
19 changes: 19 additions & 0 deletions src/components/layout/Row/__tests__/Row.visual.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';

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

import {RowStories} from './stories';

test.describe('Flex', {tag: '@Flex'}, () => {
test('render story <Default>', async ({mount, expectScreenshot}) => {
await mount(<RowStories.Default />);

await expectScreenshot();
});

test('render story <ZeroSpacings>', async ({mount, expectScreenshot}) => {
await mount(<RowStories.ZeroSpacings />);

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

import * as CSFStories from '../__stories__/Row.stories';

export const RowStories = composeStories(CSFStories);

0 comments on commit 7b46e58

Please sign in to comment.