Skip to content

Commit

Permalink
test: wait for tooltip to appear
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed May 31, 2024
1 parent e669856 commit 07bebeb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ test.describe('AvatarStack', () => {
await expectScreenshot();
});

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

await component.getByRole('button', {name: 'Rest of the users'}).hover();
await page.getByText('Somehow display list of all other items').waitFor();

await expectScreenshot();
});
Expand Down

0 comments on commit 07bebeb

Please sign in to comment.