Skip to content

Playwright is testing code examples 🚀 #619

Playwright is testing code examples 🚀

Playwright is testing code examples 🚀 #619

Triggered via schedule January 9, 2025 07:06
Status Failure
Total duration 6m 26s
Artifacts

code-examples.yml

on: schedule
run-code_examples-tests
6m 16s
run-code_examples-tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 notice
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
1) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, snippets-middleware Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
1) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, snippets-middleware Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
1) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, snippets-middleware Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
2) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-add-to-cart Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
2) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-add-to-cart Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
2) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-add-to-cart Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
3) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-cart ─── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
3) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-cart ─── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
[chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify: apps/e2e-tests/tests/checkCodeExamples.spec.ts#L44
4) [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-checkout Error: expect(received).toContain(expected) // indexOf Expected substring: "Frontends" Received string: "We're sorry, but something went wrong (500)" 42 | `https://stackblitz.com/github/${exampleName}`, 43 | ); > 44 | expect(await page.title()).toContain("Frontends"); | ^ 45 | await page 46 | .locator('iframe[title="Preview page"]') 47 | .waitFor({ state: "visible" }); at /Users/runner/work/frontends/frontends/apps/e2e-tests/tests/checkCodeExamples.spec.ts:44:32
run-code_examples-tests
Process completed with exit code 1.
🎭 Playwright Run Summary
2 failed [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, snippets-middleware [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-add-to-cart 2 flaky [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-cart ──── [chromium] › tests/checkCodeExamples.spec.ts:25:7 › Verify, { tag: "stackblitz" }, use-checkout 11 passed (5.3m)