Skip to content

Commit

Permalink
fix storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
eshark9312 committed Sep 18, 2023
1 parent 3f53a42 commit e21366c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const TestsFilters: Story = {
await userEvent.type(searchElement, '{enter}')
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(1)
})
expect(screen.queryByText('alice'))
expect(screen.queryByText('charlie'))
await userEvent.clear(searchElement)
await userEvent.type(searchElement, 'j4R')
await waitFor(async () => {
Expand All @@ -215,8 +215,11 @@ export const TestsFilters: Story = {
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(3)
await userEvent.click(screen.getByText('Clear all filters'))
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(11)
await userEvent.type(searchElement, 'j4R{enter}')
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(9)
await userEvent.type(searchElement, 'j4R')
await waitFor(async () => {
await userEvent.type(searchElement, '{enter}')
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(9)
})
expect(screen.queryByText('Clear all filters'))
await userEvent.click(screen.getByText('Clear all filters'))
expect(screen.queryAllByRole('button', { name: 'Nominate' })).toHaveLength(11)
Expand Down

0 comments on commit e21366c

Please sign in to comment.