Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink committed Aug 11, 2022
1 parent 5ec0aa0 commit 7a03012
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ it('shows the label', () => {

it('shows the help', async () => {
renderSortableTableHeaderCell("Help")
expect(screen.queryAllByText(/Header/).length).toBe(1)
await userEvent.hover(screen.queryByText(/Header/))
await waitFor(() => {
expect(screen.queryAllByText(/Help/).length).toBe(0)
expect(screen.queryAllByText(/Help/).length).toBe(1)
})
});

0 comments on commit 7a03012

Please sign in to comment.