← Catalogue

playwright

A Playwright test failure - the `1) suite > test` header names the test; its trace and diff follow.

jse2etoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/playwright

matchers/js/playwright/matcher.yaml

id: playwrightrole: toolclassification: [js, e2e]description: A Playwright test failure - the `1) suite > test` header names the test; its trace and diff follow.pattern: '^\s*\d+\) .+ › 'after: 20

In bundles

alljs

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

playwright_failureOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: playwright_failure
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run npm ci --no-audit --no-fund
35npm ci --no-audit --no-fund
36npx playwright test --reporter=list
37shell: /usr/bin/bash -e {0}
38##[endgroup]
39added 412 packages in 9s
40
41Running 18 tests using 4 workers
42
43 ✓ 1 [chromium] › tests/auth.spec.ts:8:1 › signs in with valid credentials (1.2s)
44 ✓ 2 [chromium] › tests/cart.spec.ts:11:1 › adds an item to the cart (0.9s)
45 ✘ 3 [chromium] › tests/checkout.spec.ts:24:1 › applies a promo code (5.4s)
46
47 1) [chromium] › tests/checkout.spec.ts:24:1 › applies a promo code ═══════════
48
49 Error: expect(locator).toHaveText(expected)
50
51 Locator: locator('[data-test=order-total]')
52 Expected string: "$27.00"
53 Received string: "$30.00"
54 Timeout: 5000ms
55
56 at tests/checkout.spec.ts:31:42
57
58 1 failed
59 [chromium] › tests/checkout.spec.ts:24:1 › applies a promo code
60 17 passed (23.1s)
61##[error]Process completed with exit code 1.
62##[group]Post Run actions/checkout@v4
63##[endgroup]
64/usr/bin/git version
65git version 2.54.0
66##[group]Post Run actions/upload-artifact@v4
67##[endgroup]
68Artifact upload complete.
69Post job cleanup.
70Cleaning up orphan processes