Skip to content

docs: improve and restructure the error handling guides #372

docs: improve and restructure the error handling guides

docs: improve and restructure the error handling guides #372

Triggered via pull request August 2, 2026 20:15
Status Failure
Total duration 3m 26s
Artifacts 1

playwright.yml

on: pull_request
Playwright Tests
3m 23s
Playwright Tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 notice
Playwright Tests
Process completed with exit code 1.
[chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully: tests/e2e/homepage.spec.ts#L192
1) [chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveText(expected) failed Locator: getByRole('heading', { level: 1 }) Expected: "El framework web rápido, minimalista y sin imposiciones para Node.js" Received: " Marco web para Node.js rápido, sin opinión y minimalista " Timeout: 5000ms Call log: - Expect "toHaveText" with timeout 5000ms - waiting for getByRole('heading', { level: 1 }) 13 × locator resolved to <h1 class="text h1 text--color-primary text--no-v-margin"> Marco web para Node.js rápido, sin opinión y mi…</h1> - unexpected value " Marco web para Node.js rápido, sin opinión y minimalista " 190 | // 5. Verify tagline is correctly translated 191 | const tagline = page.getByRole('heading', { level: 1 }); > 192 | await expect(tagline).toHaveText(lang.tagline); | ^ 193 | 194 | // 6. Verify theme toggle aria-label is correctly translated 195 | const themeToggle = page.locator('#theme-toggle-button'); at /home/runner/work/expressjs.com/expressjs.com/tests/e2e/homepage.spec.ts:192:29
[chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully: tests/e2e/homepage.spec.ts#L192
1) [chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveText(expected) failed Locator: getByRole('heading', { level: 1 }) Expected: "El framework web rápido, minimalista y sin imposiciones para Node.js" Received: " Marco web para Node.js rápido, sin opinión y minimalista " Timeout: 5000ms Call log: - Expect "toHaveText" with timeout 5000ms - waiting for getByRole('heading', { level: 1 }) 12 × locator resolved to <h1 class="text h1 text--color-primary text--no-v-margin"> Marco web para Node.js rápido, sin opinión y mi…</h1> - unexpected value " Marco web para Node.js rápido, sin opinión y minimalista " 190 | // 5. Verify tagline is correctly translated 191 | const tagline = page.getByRole('heading', { level: 1 }); > 192 | await expect(tagline).toHaveText(lang.tagline); | ^ 193 | 194 | // 6. Verify theme toggle aria-label is correctly translated 195 | const themeToggle = page.locator('#theme-toggle-button'); at /home/runner/work/expressjs.com/expressjs.com/tests/e2e/homepage.spec.ts:192:29
[chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully: tests/e2e/homepage.spec.ts#L192
1) [chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully Error: expect(locator).toHaveText(expected) failed Locator: getByRole('heading', { level: 1 }) Expected: "El framework web rápido, minimalista y sin imposiciones para Node.js" Received: " Marco web para Node.js rápido, sin opinión y minimalista " Timeout: 5000ms Call log: - Expect "toHaveText" with timeout 5000ms - waiting for getByRole('heading', { level: 1 }) 12 × locator resolved to <h1 class="text h1 text--color-primary text--no-v-margin"> Marco web para Node.js rápido, sin opinión y mi…</h1> - unexpected value " Marco web para Node.js rápido, sin opinión y minimalista " 190 | // 5. Verify tagline is correctly translated 191 | const tagline = page.getByRole('heading', { level: 1 }); > 192 | await expect(tagline).toHaveText(lang.tagline); | ^ 193 | 194 | // 6. Verify theme toggle aria-label is correctly translated 195 | const themeToggle = page.locator('#theme-toggle-button'); at /home/runner/work/expressjs.com/expressjs.com/tests/e2e/homepage.spec.ts:192:29
🎭 Playwright Run Summary
1 failed [chromium] › tests/e2e/homepage.spec.ts:174:5 › Homepage Content › should switch to Español successfully 47 passed (2.1m)

Artifacts

Produced during runtime
Name Size Digest
playwright-report
4.9 MB
sha256:61eed300e0ffe9c49de235269566bce1b6b03cfde430bf4f21c0a6522721a343