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
@@ -31,7 +31,7 @@ describe("CreateFlowTextFieldScreen (community name)", () => {
|
||||
/>,
|
||||
);
|
||||
expect(
|
||||
screen.getByText("This will be the name of your community."),
|
||||
screen.getByText("Use the name your members know. You can change this later."),
|
||||
).toBeInTheDocument();
|
||||
const input = screen.getByRole("textbox", { name: "Community name" });
|
||||
expect(input).toBeInTheDocument();
|
||||
@@ -46,18 +46,29 @@ describe("CreateFlowTextFieldScreen (community description)", () => {
|
||||
<CreateFlowTextFieldScreen
|
||||
messageNamespace="create.community.communityContext"
|
||||
stateField="communityContext"
|
||||
locationField="communityLocation"
|
||||
maxLength={200}
|
||||
multiline
|
||||
/>,
|
||||
);
|
||||
expect(
|
||||
screen.getByText(/Optional\. Write a short paragraph/i),
|
||||
screen.getByText(
|
||||
"For example, we cook and share free meals with neighbors every Sunday.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
const field = screen.getByRole("textbox", {
|
||||
name: "Community description",
|
||||
});
|
||||
expect(field.tagName).toBe("TEXTAREA");
|
||||
expect(field).not.toBeRequired();
|
||||
const location = screen.getByRole("textbox", {
|
||||
name: "Where is your community based?",
|
||||
});
|
||||
expect(location).toHaveAttribute("placeholder", "City or region");
|
||||
expect(location).not.toBeRequired();
|
||||
expect(
|
||||
screen.getByText("Optional. A city or region is enough."),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user