Match the marketing homepage and About page to the latest Figma: black hero CTA, spaces in word-split headings, redesigned feature grid, and cited About statistics.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,10 +52,10 @@ test.describe("Critical User Journeys", () => {
|
||||
|
||||
// 7. User checks out features
|
||||
const features = [
|
||||
"Decision-making support",
|
||||
"Values alignment exercises",
|
||||
"Membership guidance",
|
||||
"Conflict resolution tools",
|
||||
"Choose how you decide",
|
||||
"Name your values",
|
||||
"Define membership",
|
||||
"Plan for conflict",
|
||||
];
|
||||
|
||||
for (const feature of features) {
|
||||
@@ -96,7 +96,7 @@ test.describe("Critical User Journeys", () => {
|
||||
await expect(howItWorksHeading).toBeVisible();
|
||||
|
||||
await expect(
|
||||
page.locator("h1").filter({ hasText: "We've got your back" }),
|
||||
page.locator("h1").filter({ hasText: "Tools for the parts that get hard" }),
|
||||
).toBeVisible();
|
||||
|
||||
// Check key components are rendered
|
||||
@@ -108,33 +108,32 @@ test.describe("Critical User Journeys", () => {
|
||||
test("feature grid section functionality", async ({ page }) => {
|
||||
// Check section header
|
||||
await expect(
|
||||
page.locator('h1:has-text("We\'ve got your back")'),
|
||||
page.locator('h1:has-text("Tools for the parts that get hard")'),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.locator(
|
||||
"text=Use our toolkit to improve, document, and evolve your organization",
|
||||
"text=Every group runs into the same knots. CommunityRule gives you a way through",
|
||||
),
|
||||
).toBeVisible();
|
||||
|
||||
// Check all four feature cards - FeatureGrid uses section with grid layout
|
||||
const featureSection = page.locator(
|
||||
'section[aria-label="Feature tools and services"], section:has-text("We\'ve got your back")',
|
||||
'section[aria-label="Feature tools and services"], section:has-text("Tools for the parts that get hard")',
|
||||
);
|
||||
await expect(featureSection.locator("text=Decision-making")).toBeVisible();
|
||||
await expect(featureSection.locator("text=Values alignment")).toBeVisible();
|
||||
await expect(featureSection.locator("text=Membership")).toBeVisible();
|
||||
await expect(featureSection.locator("text=Choose how you decide")).toBeVisible();
|
||||
await expect(featureSection.locator("text=Name your values")).toBeVisible();
|
||||
await expect(featureSection.locator("text=Define membership")).toBeVisible();
|
||||
await expect(
|
||||
featureSection.locator("text=Conflict resolution"),
|
||||
featureSection.locator("text=Plan for conflict"),
|
||||
).toBeVisible();
|
||||
|
||||
// Feature tiles are presentational — only the lockup "Learn more" is a link
|
||||
// Feature tiles are presentational — only the lockup "Explore the toolkit" is a link
|
||||
await expect(
|
||||
featureSection.locator('a[href="#decision-making"]'),
|
||||
).toHaveCount(0);
|
||||
await expect(featureSection.getByRole("link", { name: "Learn more" })).toHaveAttribute(
|
||||
"href",
|
||||
"/learn",
|
||||
);
|
||||
await expect(
|
||||
featureSection.getByRole("link", { name: "Explore the toolkit" }),
|
||||
).toHaveAttribute("href", "/learn");
|
||||
});
|
||||
|
||||
test("header navigation functionality", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user