Skip to content

Commit 63f26b4

Browse files
committed
test(e2e): assert against new hero h1 instead of removed h2 heading
The home page now leads with an <h1> 'No download. No install. Just type.' instead of an <h2> 'Explore Semantic Anchors'. Update the homepage smoke test to look for the hero headline (EN or DE) on the new <h1>.
1 parent 46a3021 commit 63f26b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/tests/e2e/website.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test.describe('Homepage - Card Grid', () => {
1414

1515
test('should load homepage successfully', async ({ page }) => {
1616
await expect(page).toHaveTitle(/Semantic Anchors/)
17-
await expect(page.locator('h2').first()).toContainText('Semantic Anchors')
17+
await expect(page.locator('main h1').first()).toContainText(/No download|Nichts installieren/)
1818
})
1919

2020
test('should display header with navigation', async ({ page }) => {

0 commit comments

Comments
 (0)