Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nasaownsky committed Apr 28, 2022
1 parent 3d4bd9b commit f6c3805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotlight-client/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ describe("navigation", () => {
const homeLink = inNav.getByRole("link", { name: "Spotlight" });
const tenantLink = inNav.getByRole("link", { name: "North Dakota" });
const sentencingLink = await screen.findByRole("link", {
name: "Racial Disparities Data",
name: "Explore Prison Data",
});

fireEvent.click(sentencingLink);
// NOTE: *ByRole queries can be too expensive to run async with this much DOM,
// so we are using *ByTestId queries here instead
await waitFor(async () =>
expect(await screen.findByTestId("PageTitle")).toHaveTextContent(
"Racial Disparities"
"Prison"
)
);

Expand Down

0 comments on commit f6c3805

Please sign in to comment.