Turn a saved draft into the finished Rule, and greet with congratulations.

This commit is contained in:
adilallo committed 2026-11-22 18:01:56 -07:00
1 parent a2815ae05f
commit 851133e56d
11 files changed
+150 -23

No files matched your search

+11
View File
@@ -224,6 +224,11 @@ describe("ProfilePageView", () => {
/>,
);
expect(
screen.getByRole("heading", {
name: copy.welcomeTitle.replace("{{name}}", "dani@example.com"),
}),
).toBeInTheDocument();
expect(
screen.getByText(copy.welcomeBodyFirstRule),
).toBeInTheDocument();
@@ -343,5 +348,11 @@ describe("ProfilePageView", () => {
expect(
screen.getByRole("button", { name: copy.continueDraft }),
).toBeInTheDocument();
expect(
screen.getByRole("button", { name: copy.deleteRule }),
).toBeInTheDocument();
expect(
screen.queryByRole("button", { name: copy.inviteMembers }),
).not.toBeInTheDocument();
});
});