Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/local/src/App.integration.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2988,6 +2988,13 @@ describe("local receiver to viewer integration", () => {
expect(detail()).toContain("POST /second");
fireEvent.click(screen.getByLabelText("View event: POST /first"));
await waitFor(() => expect(detail()).toContain("POST /first"));
// nuqs writes the URL at most every 50ms, so the click's history entry
// can land after Back unless we wait for it.
await waitFor(() => {
expect(
new URLSearchParams(window.location.search).get("event"),
).not.toBeNull();
});
await act(async () => {
window.history.back();
});
Expand Down
Loading