Walk Create Community through the Figma screens and restore a chosen logo after reload, so a guest can leave without saving until they reach the email step.
This commit is contained in:
1 parent
ca1f58a50c
commit
2348a9e94f
61 files changed
+1110
-421
No files matched your search
@@ -57,4 +57,18 @@ describe("Alert dismiss control", () => {
|
||||
screen.queryByRole("button", { name: "Close" }),
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders an action control when actionLabel and onAction are set", async () => {
|
||||
const user = userEvent.setup();
|
||||
const onAction = vi.fn();
|
||||
render(
|
||||
<Alert
|
||||
title="Check your email"
|
||||
actionLabel="Send it again"
|
||||
onAction={onAction}
|
||||
/>,
|
||||
);
|
||||
await user.click(screen.getByRole("button", { name: "Send it again" }));
|
||||
expect(onAction).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user