Skip to content
Merged
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
10 changes: 10 additions & 0 deletions src/pages/InsightsPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ describe("InsightsPage", () => {
renderPage();

const select = await screen.findByRole("combobox", { name: /load sample bundle/i });
await waitFor(() => expect(select).toBeEnabled());
await waitFor(() =>
expect(
within(select).getByRole("option", { name: /linked payment \+ status/i }),
).toBeInTheDocument(),
);
await user.selectOptions(select, "linked");

const threads = await screen.findByLabelText(/lifecycle threads/i);
Expand Down Expand Up @@ -146,6 +152,10 @@ describe("InsightsPage", () => {
const select = (await screen.findByRole("combobox", {
name: /load sample bundle/i,
})) as HTMLSelectElement;
await waitFor(() => expect(select).toBeEnabled());
await waitFor(() =>
expect(within(select).getByRole("option", { name: /broken bundle/i })).toBeInTheDocument(),
);
await user.selectOptions(select, "broken");

await waitFor(() => {
Expand Down
Loading