Open a finished Rule from its Profile card, and drop it from the browser on Log out.
This commit is contained in:
1 parent
db1599123b
commit
942c7cc9de
17 files changed
+280
-14
No files matched your search
@@ -242,6 +242,9 @@ describe("ProfilePageView", () => {
|
||||
expect(
|
||||
screen.getByRole("button", { name: copy.deleteRule }),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole("link", { name: "Garden coop" }),
|
||||
).toHaveAttribute("href", "/create/completed?ruleId=rule-1");
|
||||
});
|
||||
|
||||
test("lists invited Rules under Rules you belong to, not Your Rules", () => {
|
||||
@@ -274,8 +277,8 @@ describe("ProfilePageView", () => {
|
||||
screen.getByRole("heading", { name: copy.rulesYouBelongToHeading }),
|
||||
).toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole("link", { name: /Hawthorn Row Seed Library/ }),
|
||||
).toHaveAttribute("href", "/invite/rule-invited");
|
||||
screen.getByRole("link", { name: "Hawthorn Row Seed Library" }),
|
||||
).toHaveAttribute("href", "/rules/rule-invited");
|
||||
expect(
|
||||
screen.queryByRole("button", { name: copy.viewPublic }),
|
||||
).not.toBeInTheDocument();
|
||||
|
||||
Reference in new issue
Block a user