Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 0f70464

Browse files
authored
Update demo-todo-app.spec.ts
1 parent 45d8995 commit 0f70464

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/demo-todo-app.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { test, expect, type Page } from '@playwright/test';
33
test.beforeEach(async ({ page }) => {
44
await page.goto('https://demo.playwright.dev/todomvc');
55
// This line MUST be INSIDE the beforeEach block
6-
await expect(page).toHaveScreenshot('initial-todo-page.png'); // OR 'main-initial-page-baseline.png'
7-
6+
await expect(page).toHaveScreenshot('initial-todo-page.png'); // Or 'main-initial-page-baseline.png' - whatever name you prefer for the screenshot
7+
});
88

9-
// There should be NO extra '});' here.
10-
// The next lines should be 'const TODO_ITEMS = [...]'
9+
// Immediately after the closing '});' of the beforeEach, the next line should be 'const TODO_ITEMS = [...]'
1110
const TODO_ITEMS = [
1211
'buy some cheese',
1312
'feed the cat',

0 commit comments

Comments
 (0)