Skip to content
Snippets Groups Projects
Commit 0d40dd68 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

replace with getByRole

parent c5ed524a
No related branches found
No related tags found
1 merge request!1135Draft: test(lint): add testing library lint plugin
......@@ -47,6 +47,6 @@ describe('ActionOnGoing component', () => {
await act(async () => {
await userEvent.click(screen.getByText('action.details'))
})
expect(screen.findByRole('dialog')).toBeTruthy()
expect(screen.getByRole('dialog')).toBeInTheDocument()
})
})
......@@ -44,7 +44,7 @@ describe('ChallengeCardUnlocked component', () => {
screen.getByText('challenge.card_unlocked.button_launch')
)
})
expect(screen.queryAllByRole('dialog').length).toBeTruthy()
expect(screen.getByRole('dialog')).toBeInTheDocument()
})
it('should not display ChallengeNoFluidModal and update userChallenge when launching challenge with configured fluid', async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment