Skip to content

Commit f99dc18

Browse files
committed
await click
1 parent 0fa4a2e commit f99dc18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-router/tests/optional-path-params.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,19 +646,19 @@ describe('React Router - Optional Path Parameters', () => {
646646

647647
// Test navigation scenarios
648648
const navigateAll = await screen.findByTestId('navigate-all')
649-
fireEvent.click(navigateAll)
649+
await fireEvent.click(navigateAll)
650650
await waitFor(() => {
651651
expect(router.state.location.pathname).toBe('/posts')
652652
})
653653

654654
const navigateTech = await screen.findByTestId('navigate-tech')
655-
fireEvent.click(navigateTech)
655+
await fireEvent.click(navigateTech)
656656
await waitFor(() => {
657657
expect(router.state.location.pathname).toBe('/posts/tech')
658658
})
659659

660660
const navigateSpecific = await screen.findByTestId('navigate-specific')
661-
fireEvent.click(navigateSpecific)
661+
await fireEvent.click(navigateSpecific)
662662
await waitFor(() => {
663663
expect(router.state.location.pathname).toBe('/posts/tech/hello-world')
664664
})

0 commit comments

Comments
 (0)