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

Run #344 — DEMO-022

failed
📄 Download report

queued 2026-09-24 20:41:04 · started 20:41:09 · finished 20:41:16 · duration 7s · target v2.1.0 · chromium · trigger: cli-adopted · batch: 3 tests (terminal)

What went wrong

AssertionError: WCAG 2.1 AA: 4 rule(s) broken (details: a11y-report.html)
  - Elements must meet minimum color contrast ratio thresholds [color-contrast]: 58 on every page
  - ARIA hidden element must not be focusable or contain focusable elements [aria-hidden-focus]: 5 on every page
  - <html> element must have a lang attribute [html-has-lang]: 5 on every page
  - <svg> elements with an img or image role must have alternative text [svg-img-alt]: 1 on home page
Technical details (full error)
AssertionError: WCAG 2.1 AA: 4 rule(s) broken (details: a11y-report.html)
  - Elements must meet minimum color contrast ratio thresholds [color-contrast]: 58 on every page
  - ARIA hidden element must not be focusable or contain focusable elements [aria-hidden-focus]: 5 on every page
  - <html> element must have a lang attribute [html-has-lang]: 5 on every page
  - <svg> elements with an img or image role must have alternative text [svg-img-alt]: 1 on home page
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-022__freight_accessibility.py", line 37, in run
    audit.assert_clean()
  File "/opt/pw-testhub/data/tests/_lib/a11y.py", line 108, in assert_clean
    raise AssertionError(message)
AssertionError: WCAG 2.1 AA: 4 rule(s) broken (details: a11y-report.html)
  - Elements must meet minimum color contrast ratio thresholds [color-contrast]: 58 on every page
  - ARIA hidden element must not be focusable or contain focusable elements [aria-hidden-focus]: 5 on every page
  - <html> element must have a lang attribute [html-has-lang]: 5 on every page
  - <svg> elements with an img or image role must have alternative text [svg-img-alt]: 1 on home page
the page at the moment of failure
the page at the moment it failed

Activity replay 5 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.59s ⏱ scan: home page 941 ms
+0.59s goto http://127.0.0.1:8000/demo/freight/ 170 ms
+0.76s wait_for_load_state networkidle 440 ms
+1.20s evaluate () => typeof window.axe === 'object' 10 ms
+1.21s evaluate /*! axe v4.13.0 * Copyright (c) 2015 - 2026 Deque Systems, Inc. * * Your use 160 ms
+1.37s evaluate async (tags) => { const r = await axe.run(document, {runOnly: {type: 'tag', va 158 ms
+1.53s ⏱ scan: tracking 846 ms
+1.53s goto http://127.0.0.1:8000/demo/freight/track/?id=AF-100001 85 ms
+1.61s wait_for_load_state networkidle 486 ms
+2.10s evaluate () => typeof window.axe === 'object' 9 ms
+2.12s evaluate /*! axe v4.13.0 * Copyright (c) 2015 - 2026 Deque Systems, Inc. * * Your use 135 ms
+2.25s evaluate async (tags) => { const r = await axe.run(document, {runOnly: {type: 'tag', va 129 ms
+2.38s goto http://127.0.0.1:8000/demo/freight/quote/?restart=1 54 ms
+2.38s ⏱ scan: quote, step 1 833 ms
+2.43s wait_for_load_state networkidle 481 ms
+2.91s evaluate () => typeof window.axe === 'object' 20 ms
+2.93s evaluate /*! axe v4.13.0 * Copyright (c) 2015 - 2026 Deque Systems, Inc. * * Your use 160 ms
+3.09s evaluate async (tags) => { const r = await axe.run(document, {runOnly: {type: 'tag', va 117 ms
+3.21s ⏱ scan: staff sign-in 940 ms
+3.21s goto http://127.0.0.1:8000/demo/freight/login/ 119 ms
+3.33s wait_for_load_state networkidle 471 ms
+3.80s evaluate () => typeof window.axe === 'object' 17 ms
+3.82s evaluate /*! axe v4.13.0 * Copyright (c) 2015 - 2026 Deque Systems, Inc. * * Your use 153 ms
+3.97s evaluate async (tags) => { const r = await axe.run(document, {runOnly: {type: 'tag', va 179 ms
+4.15s goto http://127.0.0.1:8000/demo/freight/login/ 71 ms
+4.22s fill #username 123 ms
+4.34s fill #password 106 ms
+4.45s click #login-btn 294 ms
+4.75s wait_for_selector #signed-in-user 182 ms
+4.92s ⏱ scan: staff dashboard 897 ms
+4.93s goto http://127.0.0.1:8000/demo/freight/ops/ 174 ms
+5.10s wait_for_load_state networkidle 489 ms
+5.59s evaluate /*! axe v4.13.0 * Copyright (c) 2015 - 2026 Deque Systems, Inc. * * Your use 99 ms
+5.59s evaluate () => typeof window.axe === 'object' 6 ms
+5.69s evaluate async (tags) => { const r = await axe.run(document, {runOnly: {type: 'tag', va 128 ms

Times are when each step began, on the replay's clock. Add your own phases with with ctx.timed("label"):.

Screenshots

state at failure
state at failure

Artifacts

Run logrun.log
Playwright trace trace.zip open with: playwright show-trace trace.zip
Result JSONresult.json
Saved by the test a11y-report.html
a11y-report.json
Folderresults/DEMO-022/20260924-204109-r344/

Full log

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

[harness] test=DEMO-022 browser=chromium headed=False timeout=120s
[harness] target: http://127.0.0.1:8000/demo/
[test] [   0.59s] starting DEMO-022
[timing] goto http://127.0.0.1:8000/demo/freight/: 170ms
[timing] wait_for_load_state networkidle: 440ms
[timing] evaluate () => typeof window.axe === 'object': 10ms
[timing] evaluate /*! axe v4.13.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use: 160ms
[timing] evaluate async (tags) => {
  const r = await axe.run(document, {runOnly: {type: 'tag', va: 158ms
[test] [   1.53s] accessibility, home page: aria-hidden-focus (serious, 1), color-contrast (serious, 19), html-has-lang (serious, 1), svg-img-alt (serious, 1)
[timing] scan: home page: 941ms
[timing] goto http://127.0.0.1:8000/demo/freight/track/?id=AF-100001: 85ms
[timing] wait_for_load_state networkidle: 486ms
[timing] evaluate () => typeof window.axe === 'object': 9ms
[timing] evaluate /*! axe v4.13.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use: 135ms
[timing] evaluate async (tags) => {
  const r = await axe.run(document, {runOnly: {type: 'tag', va: 129ms
[test] [   2.38s] accessibility, tracking: aria-hidden-focus (serious, 1), color-contrast (serious, 8), html-has-lang (serious, 1)
[timing] scan: tracking: 846ms
[timing] goto http://127.0.0.1:8000/demo/freight/quote/?restart=1: 54ms
[timing] wait_for_load_state networkidle: 481ms
[timing] evaluate () => typeof window.axe === 'object': 20ms
[timing] evaluate /*! axe v4.13.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use: 160ms
[timing] evaluate async (tags) => {
  const r = await axe.run(document, {runOnly: {type: 'tag', va: 117ms
[test] [   3.21s] accessibility, quote, step 1: aria-hidden-focus (serious, 1), color-contrast (serious, 9), html-has-lang (serious, 1)
[timing] scan: quote, step 1: 833ms
[timing] goto http://127.0.0.1:8000/demo/freight/login/: 119ms
[timing] wait_for_load_state networkidle: 471ms
[timing] evaluate () => typeof window.axe === 'object': 17ms
[timing] evaluate /*! axe v4.13.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use: 153ms
[timing] evaluate async (tags) => {
  const r = await axe.run(document, {runOnly: {type: 'tag', va: 179ms
[test] [   4.15s] accessibility, staff sign-in: aria-hidden-focus (serious, 1), color-contrast (serious, 9), html-has-lang (serious, 1)
[timing] scan: staff sign-in: 940ms
[timing] goto http://127.0.0.1:8000/demo/freight/login/: 71ms
[timing] fill #username: 123ms
[timing] fill #password: 106ms
[timing] click #login-btn: 294ms
[timing] wait_for_selector #signed-in-user: 182ms
[test] [   4.93s] signed in as tester
[timing] goto http://127.0.0.1:8000/demo/freight/ops/: 174ms
[timing] wait_for_load_state networkidle: 489ms
[timing] evaluate () => typeof window.axe === 'object': 6ms
[timing] evaluate /*! axe v4.13.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use: 99ms
[timing] evaluate async (tags) => {
  const r = await axe.run(document, {runOnly: {type: 'tag', va: 128ms
[test] [   5.82s] accessibility, staff dashboard: aria-hidden-focus (serious, 1), color-contrast (serious, 13), html-has-lang (serious, 1)
[timing] scan: staff dashboard: 897ms
[test] [   5.83s] report saved: a11y-report.html
[test] [   5.83s] FAILED: WCAG 2.1 AA: 4 rule(s) broken (details: a11y-report.html)
  - Elements must meet minimum color contrast ratio thresholds [color-contrast]: 58 on every page
  - ARIA hidden element must not be focusable or contain focusable elements [aria-hidden-focus]: 5 on every page
  - <html> element must have a lang attribute [html-has-lang]: 5 on every page
  - <svg> elements with an img or image role must have alternative text [svg-img-alt]: 1 on home page
[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

SeverityFindingWhat to do
high The page requested resources from other hosts
Requests went to: analytics.acme-metrics.invalid (7). 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.