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:
adilallo committed 2026-11-05 16:14:04 -07:00
1 parent ca1f58a50c
commit 2348a9e94f
61 files changed
+1110 -421

No files matched your search

+16
View File
@@ -109,4 +109,20 @@ describe("Upload (behavioral tests)", () => {
"text-[color:var(--color-content-default-tertiary)]",
);
});
it("shows a round preview, Replace, and filename when previewSrc is set", () => {
render(
<Upload
previewSrc="blob:logo"
previewAlt="Selected community logo preview"
fileName="logo.png"
buttonLabel="Replace"
/>,
);
expect(
screen.getByRole("img", { name: "Selected community logo preview" }),
).toHaveAttribute("src", "blob:logo");
expect(screen.getByRole("button", { name: "Replace" })).toBeInTheDocument();
expect(screen.getByText("logo.png")).toBeInTheDocument();
});
});