Skip to content

Commit

Permalink
chore: fix flaky Activity rail tests (#11341)
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 authored Jan 6, 2025
1 parent 4529b08 commit 4a8efb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/app/Scenes/Activity/ActivityItem.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ describe("ActivityItem", () => {
fireEvent.press(await screen.findByText("Notification Headline"))

await waitFor(() =>
expect(navigate).toHaveBeenCalledWith(
'/notification/<mock-value-for-field-"internalID">',
undefined
)
expect(navigate).toHaveBeenCalledWith('/notification/<mock-value-for-field-"internalID">')
)
})

Expand Down
2 changes: 1 addition & 1 deletion src/app/Scenes/HomeView/Components/ActivityRail.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("ActivityRail", () => {

fireEvent.press(screen.getByText(/mock-value-for-field-"headline"/))

expect(navigate).toHaveBeenCalledWith("/notification/id-1", undefined)
expect(navigate).toHaveBeenCalledWith("/notification/id-1")

expect(mockTrackEvent).toHaveBeenCalledWith({
action: "tappedActivityGroup",
Expand Down

0 comments on commit 4a8efb2

Please sign in to comment.