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

Run #291 — DEMO-014

passed
📄 Download report

queued 2026-09-24 18:55:40 · started 18:55:51 · finished 18:56:45 · duration 54s · target v2.0.0 · chromium · trigger: cli-adopted · batch: 8 tests (terminal)

Activity replay 21 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.72s goto http://127.0.0.1:8000/demo/freight/login/ 152 ms
+0.87s fill #username 62 ms
+0.94s fill #password 25 ms
+0.96s click #login-btn 122 ms
+1.08s wait_for_selector #signed-in-user 148 ms
+1.22s goto http://127.0.0.1:8000/demo/freight/ops/optimizer/ 48 ms
+1.27s select_option #region 47 ms
+1.32s fill #stops 51 ms
+1.37s fill #trucks 57 ms
+1.43s click #start-optimizer 182 ms
+1.61s wait_for_selector #job-progress 83 ms
+1.82s ⏱ route optimization 50.45 s
+1.82s wait_for_selector #job-result, #job-failed 50.43 s
+52.25s get_attribute #job 24 ms
+52.27s get_attribute #plan-saving 20 ms
+52.29s inner_text #plan-best 11 ms
+52.30s inner_text #plan-trucks 8 ms
+52.44s click #download-result 80 ms

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

Screenshots

01-optimizer-running.png
01-optimizer-running.png
02-route-plan.png
02-route-plan.png

Artifacts

Run logrun.log
Playwright trace trace.zip open with: playwright show-trace trace.zip
Result JSONresult.json
Saved by the test route-plan.csv
Folderresults/DEMO-014/20260924-185551-r291/

Full log

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

[harness] test=DEMO-014 browser=chromium headed=False timeout=240s
[harness] target: http://127.0.0.1:8000/demo/
[test] [   0.72s] starting DEMO-014
[timing] goto http://127.0.0.1:8000/demo/freight/login/: 152ms
[timing] fill #username: 62ms
[timing] fill #password: 25ms
[timing] click #login-btn: 122ms
[timing] wait_for_selector #signed-in-user: 148ms
[test] [   1.23s] signed in as tester
[timing] goto http://127.0.0.1:8000/demo/freight/ops/optimizer/: 48ms
[timing] select_option #region: 47ms
[timing] fill #stops: 51ms
[timing] fill #trucks: 57ms
[timing] click #start-optimizer: 182ms
[timing] wait_for_selector #job-progress: 83ms
[test] [   1.82s] screenshot: 01-optimizer-running.png
[timing] wait_for_selector #job-result, #job-failed: 50428ms
[timing] get_attribute #job: 24ms
[timing] route optimization: 50452ms
[timing] get_attribute #plan-saving: 20ms
[timing] inner_text #plan-best: 11ms
[test] [  52.30s] optimized plan: 5,733 km (66.7% shorter than naive)
[timing] inner_text #plan-trucks: 8ms
[test] [  52.44s] screenshot: 02-route-plan.png
[timing] click #download-result: 79ms
[test] [  52.54s] downloaded route-plan-cc5dc16e6bdc.csv
[test] [  52.54s] PASSED
[harness] security: 0 high, 1 medium, 1 low
[harness] saved trace.zip
[harness] saved video.webm
[harness] result: passed

Security observations what the browser noticed while this ran — not a penetration test

SeverityFindingWhat to do
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.
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.