Skip to content

Commit aeeccf6

Browse files
committed
tests: use find
1 parent cdb4231 commit aeeccf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renderer/src/features/clients/components/__tests__/manage-clients-button.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ describe('ManageClientsButton – BDD flows', () => {
8989
})
9090
).toBeVisible()
9191
})
92-
await user.click(screen.getByRole('switch', { name: 'vscode' }))
93-
await user.click(screen.getByRole('switch', { name: /cursor/i }))
92+
await user.click(await screen.findByRole('switch', { name: 'vscode' }))
93+
await user.click(await screen.findByRole('switch', { name: /cursor/i }))
9494
await user.click(screen.getByRole('button', { name: /save/i }))
9595

9696
await waitFor(() =>

0 commit comments

Comments
 (0)