Fix ask organizer modal
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -169,6 +169,14 @@ describe("Create", () => {
|
||||
expect(screen.getByText("Custom Footer")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("uses responsive width at baseline (matches Login modal)", () => {
|
||||
renderWithProviders(
|
||||
<Create {...defaultProps}>Create dialog content</Create>,
|
||||
);
|
||||
const dialog = screen.getByRole("dialog");
|
||||
expect(dialog).toHaveClass("w-full", "max-w-[560px]");
|
||||
});
|
||||
|
||||
it("has proper ARIA attributes", () => {
|
||||
renderWithProviders(
|
||||
<Create {...defaultProps} ariaLabel="Test create dialog" />,
|
||||
|
||||
Reference in New Issue
Block a user