Skip to content

Commit

Permalink
test: stories
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed May 31, 2024
1 parent f8be527 commit e669856
Show file tree
Hide file tree
Showing 17 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.
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.
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.
20 changes: 20 additions & 0 deletions src/components/AvatarStack/__tests__/AvatarStack.visual.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,24 @@ test.describe('AvatarStack', () => {

await expectScreenshot();
});

test('default more component', async ({mount, expectScreenshot}) => {
await mount(<AvatarStackStories.MoreButton randomAvatar={false} />);

await expectScreenshot();
});

test('edge case with more button omit', async ({mount, expectScreenshot}) => {
await mount(<AvatarStackStories.MoreButtonOmit randomAvatar={false} />);

await expectScreenshot();
});

test('custom more button', async ({mount, expectScreenshot}) => {
const component = await mount(<AvatarStackStories.CustomMoreButton randomAvatar={false} />);

await component.getByRole('button', {name: 'Rest of the users'}).hover();

await expectScreenshot();
});
});

0 comments on commit e669856

Please sign in to comment.