Skip to content

Commit 0f2fc65

Browse files
bloveclaude
andcommitted
test(website): repoint the two hero e2e guards at the new tagline
The H1 no longer names Angular, so the guard that the hero says which framework this is moves to the eyebrow above it. The three-line H1 also leaves the demo stage short of the 25% visibility threshold that mounts the frame at the default viewport, so the desktop mount test scrolls it into view first, as the mobile sibling already does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 424e94c commit 0f2fc65

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/website/e2e/home-hero.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ test.describe('homepage hero', () => {
2424
await page.goto('/');
2525
const demo = page.locator('[data-hero-demo]');
2626
await expect(demo.locator('img')).toHaveAttribute('src', '/screenshots/hero-walkthrough-poster.webp');
27+
// The frame mounts on a 25%-visibility threshold, and the three-line H1
28+
// leaves the stage short of that at the default viewport. Scroll it in, as
29+
// the mobile sibling below already does, so this asserts the mount and not
30+
// the fold position.
31+
await demo.scrollIntoViewIfNeeded();
2732
await expect(demo.locator('iframe')).toHaveAttribute('src', 'https://demo.threadplane.ai/hero');
2833
});
2934

apps/website/e2e/website.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ test('landing page renders hero headline', async ({ page }) => {
2222
await page.goto('/');
2323
await expect(page.locator('#hero-heading')).toBeVisible();
2424
await expect(page.locator('#hero-heading')).toHaveText('The open-source thread-plane for agents.');
25-
const headline = await page.locator('#hero-heading').textContent();
26-
expect(headline?.toLowerCase()).toContain('angular');
25+
// The tagline stopped naming Angular on 2026-09-06, so the guard that the
26+
// hero says which framework this is moved to the eyebrow directly above it.
27+
await expect(page.locator('.hero-eyebrow')).toContainText('Angular');
2728
});
2829

2930
test('landing page renders the dark proof band', async ({ page }) => {

0 commit comments

Comments
 (0)