Fix ask organizer modal

This commit is contained in:
adilallo
2026-05-24 16:44:36 -06:00
parent 30a7dd1c2f
commit d8e0b87bb3
10 changed files with 57 additions and 12 deletions
+9
View File
@@ -70,6 +70,15 @@ describe("AskOrganizer (behavioral tests)", () => {
).toBeInTheDocument();
});
it("shows back to home link below inquiry modal", async () => {
const user = userEvent.setup();
render(<AskOrganizer title="Test" />);
await user.click(screen.getByTestId("ask-organizer-cta"));
expect(
await screen.findByRole("link", { name: /back to home/i }),
).toHaveAttribute("href", "/");
});
it("renders button with custom text", () => {
render(<AskOrganizer title="Test" buttonText="Contact" />);
expect(