Skip to content

Commit 03109a9

Browse files
committed
test(confidence): modify tests to give more confidence
1 parent 54d3438 commit 03109a9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/views/search/__tests__/Search-test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('Search View', () => {
9999
fireEvent.click(header)
100100
}
101101

102-
expect(await screen.findByRole('alert')).toHaveTextContent('abcdef1234567')
102+
expect(screen.getByRole('alert')).toHaveTextContent('abcdef1234567')
103103
})
104104

105105
it('does not show version snackbar after five clicks when version is not provided', async () => {
@@ -115,9 +115,7 @@ describe('Search View', () => {
115115
fireEvent.click(header)
116116
}
117117

118-
await waitFor(() => {
119-
expect(screen.queryByRole('alert')).not.toBeInTheDocument()
120-
})
118+
expect(screen.queryByRole('alert')).not.toBeInTheDocument()
121119
})
122120
})
123121

0 commit comments

Comments
 (0)