Skip to content

Commit

Permalink
test: single avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed May 30, 2024
1 parent da6d7ed commit 0c65ef7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';

import {composeStories} from '@storybook/react';

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

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

const AvatarStackStories = composeStories(CSFStories);

test.describe('AvatarStack', () => {
test('single avatar', async ({mount, expectScreenshot}) => {
await mount(<AvatarStackStories.SingleItem randomAvatar={false} />);

await expectScreenshot();
});
});

0 comments on commit 0c65ef7

Please sign in to comment.