Test run report — DEMO-023 FAILED
Freight: password reset through the email
run #345 · 2026-09-24 20:41:04 ·
duration 9s ·
target version 2.1.0 · browser chromium ·
started by: cli-adopted
report generated 2026-09-25 11:40:06 — self-contained file, safe to attach anywhere
What went wrong
AssertionError: the reset link worked a SECOND time: any old reset email is still a key to the account -- a reset link must stop working once it has been used
Step timings
| at | step | ms |
| +0.88s | goto http://127.0.0.1:8000/demo/freight/login/ | 164.7 |
| +1.11s | click #forgot-link | 227.1 |
| +1.22s | fill #forgot-login | 108.2 |
| +1.37s | click #forgot-btn | 150.5 |
| +1.42s | inner_text #forgot-ref | 47.7 |
| +1.51s | goto http://127.0.0.1:8000/demo/freight/mailbox/?to=driver@acme-freight.example | 91.9 |
| +5.99s | wait_for_selector #mail-list a.mail-subject:has-text('ref 1DEC50') | 4476.0 |
| +5.99s | wait for the email | 4568.1 |
| +6.08s | click #mail-list a.mail-subject:has-text('ref 1DEC50') | 93.8 |
| +6.15s | wait_for_selector #mail-body a[href*='/login/reset/'] | 68.8 |
| +6.37s | click #mail-body a[href*='/login/reset/'] | 100.1 |
| +6.43s | fill #new-password | 55.7 |
| +6.5s | fill #confirm-password | 69.3 |
| +6.66s | click #reset-btn | 161.5 |
| +6.77s | wait_for_selector #login-btn | 109.5 |
| +6.77s | choose a new password | 496.6 |
| +6.78s | fill #username | 17.7 |
| +6.8s | fill #password | 16.0 |
| +7.18s | click #login-btn | 375.4 |
| +7.33s | wait_for_selector #signed-in-user | 153.0 |
| +7.33s | sign in with the new password | 562.5 |
| +7.5s | click #sign-out | 174.4 |
| +7.58s | wait_for_selector #login-btn | 73.6 |
| +7.71s | goto http://127.0.0.1:8000/demo/freight/mailbox/4/ | 128.5 |
| +7.89s | click #mail-body a[href*='/login/reset/'] | 186.2 |
| +8.01s | wait_for_selector #reset-invalid, #reset-form | 122.2 |
| +8.01s | follow the same link again | 437.1 |
Full technical error
AssertionError: the reset link worked a SECOND time: any old reset email is still a key to the account -- a reset link must stop working once it has been used
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-023__freight_password_reset_email.py", line 65, in run
assert page.locator("#reset-form").count() == 0, (
AssertionError: the reset link worked a SECOND time: any old reset email is still a key to the account -- a reset link must stop working once it has been used
Video and Playwright trace stay on the hub:
results/DEMO-023/20260924-204106-r345/ — open the run page for the replay.