Update template cards

This commit is contained in:
adilallo
2026-05-22 13:36:23 -06:00
parent 753220f97b
commit 3dbb6b61d2
9 changed files with 141 additions and 129 deletions
+9 -9
View File
@@ -75,16 +75,16 @@ describe("Page Flow Integration", () => {
).toBeInTheDocument();
await waitFor(() => {
expect(screen.getByRole("heading", { name: "Circles" })).toBeInTheDocument();
expect(screen.getByRole("heading", { name: "Consensus" })).toBeInTheDocument();
});
expect(
screen.getByRole("heading", { name: "Elected Board" }),
screen.getByRole("heading", { name: "Do-ocracy" }),
).toBeInTheDocument();
expect(
screen.getByRole("heading", { name: "Consensus" }),
screen.getByRole("heading", { name: "Devolution" }),
).toBeInTheDocument();
expect(
screen.getByRole("heading", { name: "Petition" }),
screen.getByRole("heading", { name: "Quadratic Governance" }),
).toBeInTheDocument();
await waitFor(() => {
@@ -153,12 +153,12 @@ describe("Page Flow Integration", () => {
renderPage();
await waitFor(() => {
expect(screen.getByText("Circles")).toBeInTheDocument();
expect(screen.getByText("Consensus")).toBeInTheDocument();
});
expect(screen.queryByText("Solidarity Network")).not.toBeInTheDocument();
expect(screen.getByText("Elected Board")).toBeInTheDocument();
expect(screen.getByText("Consensus")).toBeInTheDocument();
expect(screen.getByText("Petition")).toBeInTheDocument();
expect(screen.getByText("Do-ocracy")).toBeInTheDocument();
expect(screen.getByText("Devolution")).toBeInTheDocument();
expect(screen.getByText("Quadratic Governance")).toBeInTheDocument();
const seeAll = screen.getByRole("link", { name: "See all templates" });
expect(seeAll).toHaveAttribute("href", "/templates");
@@ -228,7 +228,7 @@ describe("Page Flow Integration", () => {
});
await waitFor(() => {
expect(screen.getByText("Circles")).toBeInTheDocument();
expect(screen.getByText("Consensus")).toBeInTheDocument();
});
await waitFor(() => {
+5 -5
View File
@@ -56,11 +56,11 @@ describe("User Journey Integration", () => {
renderPage();
await waitFor(() => {
expect(screen.getByText("Circles")).toBeInTheDocument();
expect(screen.getByText("Consensus")).toBeInTheDocument();
});
expect(screen.getByText("Elected Board")).toBeInTheDocument();
expect(screen.getByText("Consensus")).toBeInTheDocument();
expect(screen.getByText("Petition")).toBeInTheDocument();
expect(screen.getByText("Do-ocracy")).toBeInTheDocument();
expect(screen.getByText("Devolution")).toBeInTheDocument();
expect(screen.getByText("Quadratic Governance")).toBeInTheDocument();
const seeHowLinks = screen.getAllByRole("link", {
name: "See how it works",
@@ -195,7 +195,7 @@ describe("User Journey Integration", () => {
});
await waitFor(() => {
expect(screen.getAllByText(/Circles/i).length).toBeGreaterThan(0);
expect(screen.getAllByText(/Consensus/i).length).toBeGreaterThan(0);
});
await waitFor(() => {