Fix prettier formatting issues
This commit is contained in:
+50
-50
@@ -11,36 +11,36 @@ describe("Page", () => {
|
||||
expect(screen.getAllByText("with clarity").length).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Help your community make important decisions in a way that reflects its unique values."
|
||||
).length
|
||||
"Help your community make important decisions in a way that reflects its unique values.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check numbered cards section (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("How CommunityRule works").length
|
||||
screen.getAllByText("How CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Here's a quick overview of the process, from start to finish."
|
||||
).length
|
||||
"Here's a quick overview of the process, from start to finish.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check feature grid section (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("We've got your back, every step of the way").length
|
||||
screen.getAllByText("We've got your back, every step of the way").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Use our toolkit to improve, document, and evolve your organization."
|
||||
).length
|
||||
"Use our toolkit to improve, document, and evolve your organization.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check ask organizer section (using getAllByText since there are multiple instances)
|
||||
expect(screen.getAllByText("Still have questions?").length).toBeGreaterThan(
|
||||
0
|
||||
0,
|
||||
);
|
||||
expect(
|
||||
screen.getAllByText("Get answers from an experienced organizer").length
|
||||
screen.getAllByText("Get answers from an experienced organizer").length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -52,11 +52,11 @@ describe("Page", () => {
|
||||
expect(screen.getAllByText("with clarity").length).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Help your community make important decisions in a way that reflects its unique values."
|
||||
).length
|
||||
"Help your community make important decisions in a way that reflects its unique values.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText("Learn how CommunityRule works").length
|
||||
screen.getAllByText("Learn how CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -65,27 +65,27 @@ describe("Page", () => {
|
||||
|
||||
// Check numbered cards content (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("How CommunityRule works").length
|
||||
screen.getAllByText("How CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Here's a quick overview of the process, from start to finish."
|
||||
).length
|
||||
"Here's a quick overview of the process, from start to finish.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check individual card content (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("Document how your community makes decisions").length
|
||||
screen.getAllByText("Document how your community makes decisions").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Build an operating manual for a successful community"
|
||||
).length
|
||||
"Build an operating manual for a successful community",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Get a link to your manual for your group to review and evolve"
|
||||
).length
|
||||
"Get a link to your manual for your group to review and evolve",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -94,12 +94,12 @@ describe("Page", () => {
|
||||
|
||||
// Check feature grid content (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("We've got your back, every step of the way").length
|
||||
screen.getAllByText("We've got your back, every step of the way").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Use our toolkit to improve, document, and evolve your organization."
|
||||
).length
|
||||
"Use our toolkit to improve, document, and evolve your organization.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -108,10 +108,10 @@ describe("Page", () => {
|
||||
|
||||
// Check ask organizer content (using getAllByText since there are multiple instances)
|
||||
expect(screen.getAllByText("Still have questions?").length).toBeGreaterThan(
|
||||
0
|
||||
0,
|
||||
);
|
||||
expect(
|
||||
screen.getAllByText("Get answers from an experienced organizer").length
|
||||
screen.getAllByText("Get answers from an experienced organizer").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(screen.getAllByText("Ask an organizer").length).toBeGreaterThan(0);
|
||||
});
|
||||
@@ -126,19 +126,19 @@ describe("Page", () => {
|
||||
// LogoWall - should be present (even if just the component structure)
|
||||
// NumberedCards
|
||||
expect(
|
||||
screen.getAllByText("How CommunityRule works").length
|
||||
screen.getAllByText("How CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// RuleStack - should be present
|
||||
// FeatureGrid
|
||||
expect(
|
||||
screen.getAllByText("We've got your back, every step of the way").length
|
||||
screen.getAllByText("We've got your back, every step of the way").length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// QuoteBlock - should be present
|
||||
// AskOrganizer
|
||||
expect(screen.getAllByText("Still have questions?").length).toBeGreaterThan(
|
||||
0
|
||||
0,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -154,7 +154,7 @@ describe("Page", () => {
|
||||
|
||||
// Check CTA button in hero banner
|
||||
expect(
|
||||
screen.getAllByText("Learn how CommunityRule works").length
|
||||
screen.getAllByText("Learn how CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check CTA button in ask organizer section
|
||||
@@ -167,27 +167,27 @@ describe("Page", () => {
|
||||
// Check main description (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Help your community make important decisions in a way that reflects its unique values."
|
||||
).length
|
||||
"Help your community make important decisions in a way that reflects its unique values.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check numbered cards description (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Here's a quick overview of the process, from start to finish."
|
||||
).length
|
||||
"Here's a quick overview of the process, from start to finish.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check feature grid description (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Use our toolkit to improve, document, and evolve your organization."
|
||||
).length
|
||||
"Use our toolkit to improve, document, and evolve your organization.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
|
||||
// Check ask organizer description (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("Get answers from an experienced organizer").length
|
||||
screen.getAllByText("Get answers from an experienced organizer").length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -197,13 +197,13 @@ describe("Page", () => {
|
||||
// Check all section titles (using getAllByText since there are multiple instances)
|
||||
expect(screen.getAllByText("Collaborate").length).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText("How CommunityRule works").length
|
||||
screen.getAllByText("How CommunityRule works").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText("We've got your back, every step of the way").length
|
||||
screen.getAllByText("We've got your back, every step of the way").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(screen.getAllByText("Still have questions?").length).toBeGreaterThan(
|
||||
0
|
||||
0,
|
||||
);
|
||||
});
|
||||
|
||||
@@ -212,17 +212,17 @@ describe("Page", () => {
|
||||
|
||||
// Check all three numbered card items (using getAllByText since there are multiple instances)
|
||||
expect(
|
||||
screen.getAllByText("Document how your community makes decisions").length
|
||||
screen.getAllByText("Document how your community makes decisions").length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Build an operating manual for a successful community"
|
||||
).length
|
||||
"Build an operating manual for a successful community",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Get a link to your manual for your group to review and evolve"
|
||||
).length
|
||||
"Get a link to your manual for your group to review and evolve",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
@@ -233,16 +233,16 @@ describe("Page", () => {
|
||||
expect(screen.getAllByText("with clarity").length).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Here's a quick overview of the process, from start to finish."
|
||||
).length
|
||||
"Here's a quick overview of the process, from start to finish.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText(
|
||||
"Use our toolkit to improve, document, and evolve your organization."
|
||||
).length
|
||||
"Use our toolkit to improve, document, and evolve your organization.",
|
||||
).length,
|
||||
).toBeGreaterThan(0);
|
||||
expect(
|
||||
screen.getAllByText("Get answers from an experienced organizer").length
|
||||
screen.getAllByText("Get answers from an experienced organizer").length,
|
||||
).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user