test: stabilize presentation route rehearsal

This commit is contained in:
lda
2026-07-13 01:29:23 +07:00 Verified
parent 6da3e1beab
commit c82926fc29
@@ -97,7 +97,8 @@ describe("PresentationRoute", () => {
const { PresentationRoute } = await import("./PresentationRoute.js");
render(<PresentationRoute />);
expect(await screen.findByRole("heading", { name: heading })).toBeInTheDocument();
const headings = await screen.findAllByRole("heading", { name: heading });
expect(headings.length).toBeGreaterThan(0);
const footer = screen.getByRole("contentinfo", { name: /presentation footer/i });
const action = within(footer).queryByRole("button", {
name: /run prepared workflow|play replay walkthrough/i,
@@ -105,6 +106,7 @@ describe("PresentationRoute", () => {
const status = within(footer).queryByRole("status");
expect(action !== null || status !== null).toBe(hasDemoChrome);
},
15000,
);
it.each([