queued 2026-09-24 22:04:21 · started 22:04:21 · finished 22:04:24 · duration 3s · target v2.1.0 · chromium · trigger: group · batch: group: Freight smoke
What went wrong
AssertionError: SPRING10 should take 10% off the $117.62 subtotal ($11.76), but the quote takes $23.52 off
Technical details (full error)
AssertionError: SPRING10 should take 10% off the $117.62 subtotal ($11.76), but the quote takes $23.52 off
Traceback (most recent call last):
File "/opt/pw-testhub/app/core/harness/run_test.py", line 737, in main
module.run(TimedPage(page, ctx), ctx)
File "/opt/pw-testhub/data/tests/DEMO-011__freight_quote_with_promo.py", line 45, in run
assert abs(discount - expected) < 0.011, (
AssertionError: SPRING10 should take 10% off the $117.62 subtotal ($11.76), but the quote takes $23.52 off
Activity replay 4 frames, captured only while the page was actually changing — idle waits are skipped automatically
+0.00s
Step timings follows the replay — click a step to see it there
| at | step | took |
|---|---|---|
| +0.77s | goto http://127.0.0.1:8000/demo/freight/quote/?restart=1 | 189 ms |
| +0.95s | ⏱ route | 636 ms |
| +1.59s | ⏱ cargo | 256 ms |
| +1.85s | ⏱ choose a service | 173 ms |
| +2.02s | ⏱ apply promo SPRING10 | 323 ms |
| +2.23s | wait_for_selector #price-discount | 113 ms |
| +2.34s | get_attribute #price-subtotal | 9 ms |
| +2.35s | get_attribute #price-discount | 7 ms |
| +2.36s | get_attribute #price-fuel | 33 ms |
| +2.39s | get_attribute #price-total | 18 ms |
Times are when each step began, on the replay's clock. Add your own phases with
with ctx.timed("label"):.
Artifacts
| Run log | run.log |
| Playwright trace | trace.zip
open with: playwright show-trace trace.zip |
| Result JSON | result.json |
| Folder | results/DEMO-011/20260924-220421-r352/ |
Full log
Read from the S3 bucket (the last 20 KB; the whole file is the Run log link above).
[harness] test=DEMO-011 browser=chromium headed=False timeout=120s [harness] target: http://127.0.0.1:8000/demo/ [test] [ 0.77s] starting DEMO-011 [timing] goto http://127.0.0.1:8000/demo/freight/quote/?restart=1: 189ms [timing] route: 636ms [timing] cargo: 256ms [timing] choose a service: 173ms [timing] wait_for_selector #price-discount: 113ms [timing] apply promo SPRING10: 323ms [timing] get_attribute #price-subtotal: 9ms [timing] get_attribute #price-discount: 7ms [timing] get_attribute #price-fuel: 33ms [timing] get_attribute #price-total: 18ms [test] [ 2.41s] subtotal $117.62, discount $23.52, total $102.10 [test] [ 2.54s] screenshot: 01-priced.png [test] [ 2.54s] FAILED: SPRING10 should take 10% off the $117.62 subtotal ($11.76), but the quote takes $23.52 off [harness] security: 1 high, 3 medium, 1 low [harness] saved failure.png [harness] saved trace.zip [harness] saved video.webm [harness] result: failed
Security observations what the browser noticed while this ran — not a penetration test
| Severity | Finding | What to do |
|---|---|---|
| high | The page requested resources from other hosts Requests went to: analytics.acme-metrics.invalid (5). On an air-gapped network these cannot succeed -- so the page is either broken or waiting on a timeout -- and each one is a path by which data could leave the enclave. |
Vendor the resource locally, or remove the reference. This is worth chasing even when the page still appears to work. |
| medium | The application is served over plain HTTP http://127.0.0.1:8000/demo/ is not HTTPS, so anything typed into it travels the network in the clear and can be modified in transit. |
On an isolated lab network this may be a deliberate choice -- if so, note it and move on. Anywhere else, terminate TLS in front of the application. |
| medium | Missing Content-Security-Policy Without it, an injected script can run with the page's full privileges. This is the single most effective header against XSS. |
Set the Content-Security-Policy response header on the application or its reverse proxy. |
| medium | Missing X-Frame-Options (or CSP frame-ancestors) Without it, another site can embed this page invisibly and trick a user into clicking things (clickjacking). |
Set the X-Frame-Options (or CSP frame-ancestors) response header on the application or its reverse proxy. |
| low | Response advertises software version (server) server: pw-testhub -- this tells an attacker exactly what to look up known vulnerabilities for. |
Suppress or blank the server header at the proxy. |
| info | Cookie 'csrftoken' is readable by JavaScript (expected) This looks like a CSRF token, which the page's own JavaScript has to read in order to send it back. HttpOnly would break that. Nothing to do -- listed so you know it was checked and not missed. |
No action. Do check that SESSION cookies are HttpOnly. |
All of these appear together on the Security page.

