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
@@ -252,4 +252,27 @@ describe("MultiSelect – behaviour specifics", () => {
|
||||
|
||||
expect(handleClose).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("shows a danger hint under the chips when errorMessage is set", () => {
|
||||
render(
|
||||
<MultiSelect
|
||||
options={defaultChipOptions}
|
||||
errorMessage="Pick one to continue."
|
||||
/>,
|
||||
);
|
||||
expect(screen.getByRole("alert")).toHaveTextContent(
|
||||
"Pick one to continue.",
|
||||
);
|
||||
});
|
||||
|
||||
it("shows helper text beside the label", () => {
|
||||
render(
|
||||
<MultiSelect
|
||||
label="Main kind"
|
||||
helperText="Pick one"
|
||||
options={defaultChipOptions}
|
||||
/>,
|
||||
);
|
||||
expect(screen.getByText("Pick one")).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user