From 07cd504e6a3d7b87f3a6b4f2b803ae644419bc6e Mon Sep 17 00:00:00 2001 From: Brian Love Date: Sat, 16 May 2026 06:37:48 -0700 Subject: [PATCH] fix(website-e2e): assert differentiator section by stable id, not stale heading copy Landing page copy changed (heading no longer reads 'Built for Angular, not retrofitted.') but the section's id stayed (id=differentiator-heading in apps/website/src/components/landing/Differentiator.tsx). Test was failing on main. Stable-id selectors are also what the other landing-page checks in this file use (#hero-heading, #stream-heading, #render-heading, #ship-heading). --- apps/website/e2e/website.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/website/e2e/website.spec.ts b/apps/website/e2e/website.spec.ts index 92d90a3a4..6ccb862f9 100644 --- a/apps/website/e2e/website.spec.ts +++ b/apps/website/e2e/website.spec.ts @@ -9,7 +9,9 @@ test('landing page renders hero headline', async ({ page }) => { test('landing page renders differentiator section', async ({ page }) => { await page.goto('/'); - await expect(page.getByText('Built for Angular, not retrofitted.').first()).toBeVisible(); + // Assert on the stable id, not the heading copy — landing-page text rewrites + // happen far more often than the section structure changes. + await expect(page.locator('#differentiator-heading')).toBeVisible(); }); test('landing page renders feature blocks (Stream/Render/Ship)', async ({ page }) => {