Show invited people the Rule, let them copy its cards for their community, and replace an expired invitation link.
This commit is contained in:
1 parent
727a92a9ac
commit
3c984e00c5
37 files changed
+1962
-19
No files matched your search
@@ -130,6 +130,24 @@ describe("CompletedScreen", () => {
|
||||
).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("shows copy-ready toast when copied query is set", () => {
|
||||
sessionStorage.setItem(
|
||||
CREATE_FLOW_LAST_PUBLISHED_KEY,
|
||||
JSON.stringify({
|
||||
...storedRuleFixture,
|
||||
copiedFromTitle: "Juniper Street Food Share",
|
||||
}),
|
||||
);
|
||||
mockSearchParams({ copied: "1" });
|
||||
render(<CompletedScreen />);
|
||||
expect(screen.getByText("Your copy is ready")).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByText(
|
||||
"It started from Juniper Street Food Share’s Rule. Read it through and change what does not fit before you invite your members.",
|
||||
),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("shows post-publish toast in status region when celebrate query is set", () => {
|
||||
mockSearchParams({
|
||||
[CREATE_FLOW_COMPLETED_CELEBRATE_QUERY]:
|
||||
|
||||
Reference in new issue
Block a user