🧪 Test Hub
testing: Demo target v3.0.0 · built-in demo site
← →

Run #422 — DEMO-T11

failed
📄 Download report

queued 2026-09-25 00:23:08 · started 00:23:28 · finished 00:23:32 · duration 4s · target v2.1.0 · chromium · trigger: cli-adopted · batch: 7 tests (terminal)

What went wrong

1 of 1 test(s) failed: a domestic quote prices the promo code correctly -- SPRING10 should take 10% off $122.5 (expected 12.25, received 24.5)
Technical details (full error)
1 of 1 test(s) failed: a domestic quote prices the promo code correctly -- SPRING10 should take 10% off $122.5 (expected 12.25, received 24.5)

Activity replay 16 frames, captured only while the page was actually changing — idle waits are skipped automatically

activity frame
+0.00s

Step timings follows the replay — click a step to see it there

atsteptook
+0.16s ⏱ a domestic quote prices the promo code correctly 1.17 s
+0.20s goto freight/quote/?restart=1 115 ms
+0.31s ⏱ route 264 ms
+0.32s fill internal:label="From (city)"i 55 ms
+0.38s fill internal:label="To (city)"i 38 ms
+0.42s click internal:role=button[name="Next: cargo"i] 160 ms
+0.58s ⏱ cargo 160 ms
+0.58s fill internal:label="Total weight (kg)"i 62 ms
+0.64s click internal:role=button[name="Next"s] 94 ms
+0.74s ⏱ service 184 ms
+0.74s check internal:role=radio[name="Express"i] 56 ms
+0.80s click internal:role=button[name="Next: review"i] 124 ms
+0.92s ⏱ promo code 160 ms
+0.93s fill internal:label="Promo code"i 32 ms
+0.96s click internal:role=button[name="Apply"i] 84 ms
+1.05s toBeVisible #price-discount 38 ms
+1.09s getAttribute #price-subtotal 14 ms
+1.10s getAttribute #price-discount 6 ms

Times are when each step began, on the replay's clock. Add your own phases with await test.step('label', async () => { … }).

Screenshots

No screenshots (use ctx.screenshot("name") in the test).

Artifacts

Run logrun.log
Playwright trace trace.zip open with: playwright show-trace trace.zip
Result JSONresult.json
Folderresults/DEMO-T11/20260925-002328-r422/

Full log

Read from the S3 bucket (the last 20 KB; the whole file is the Run log link above).

[ts-harness] @playwright/test project=chromium file=DEMO-T11__freight_quote_typescript.spec.ts

Running 1 test using 1 worker

  ✘  1 [chromium] › DEMO-T11__freight_quote_typescript.spec.ts:8:5 › a domestic quote prices the promo code correctly (1.2s)


  1) [chromium] › DEMO-T11__freight_quote_typescript.spec.ts:8:5 › a domestic quote prices the promo code correctly 

    Error: SPRING10 should take 10% off $122.5

    expect(received).toBeCloseTo(expected, precision)

    Expected: 12.25
    Received: 24.5

    Expected precision:    2
    Expected difference: < 0.005
    Received difference:   12.25

      34 |   const subtotal = await amount('#price-subtotal');
      35 |   const discount = await amount('#price-discount');
    > 36 |   expect(discount, `SPRING10 should take 10% off $${subtotal}`).toBeCloseTo(subtotal * 0.10, 2);
         |                                                                 ^
      37 |   await expect(page.locator('#summary-service')).toHaveText('Express');
      38 | });
      39 |
        at /opt/pw-testhub/data/tests/DEMO-T11__freight_quote_typescript.spec.ts:36:65

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../results/DEMO-T11/20260925-002328-r422/test-results/DEMO-T11__freight_quote_ty-262d1-es-the-promo-code-correctly-chromium/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../results/DEMO-T11/20260925-002328-r422/test-results/DEMO-T11__freight_quote_ty-262d1-es-the-promo-code-correctly-chromium/error-context.md

    attachment #3: trace (application/zip) ─────────────────────────────────────────────────────────
    ../results/DEMO-T11/20260925-002328-r422/test-results/DEMO-T11__freight_quote_ty-262d1-es-the-promo-code-correctly-chromium/trace.zip
    Usage:

        npx playwright show-trace ../results/DEMO-T11/20260925-002328-r422/test-results/DEMO-T11__freight_quote_ty-262d1-es-the-promo-code-correctly-chromium/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

  1 failed
    [chromium] › DEMO-T11__freight_quote_typescript.spec.ts:8:5 › a domestic quote prices the promo code correctly 
[ts-harness] activity reel: 16 change-frames extracted from the trace screencast