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

atstepms
+0.88sgoto http://127.0.0.1:8000/demo/freight/login/164.7
+1.11sclick #forgot-link227.1
+1.22sfill #forgot-login108.2
+1.37sclick #forgot-btn150.5
+1.42sinner_text #forgot-ref47.7
+1.51sgoto http://127.0.0.1:8000/demo/freight/mailbox/?to=driver@acme-freight.example91.9
+5.99swait_for_selector #mail-list a.mail-subject:has-text('ref 1DEC50')4476.0
+5.99swait for the email4568.1
+6.08sclick #mail-list a.mail-subject:has-text('ref 1DEC50')93.8
+6.15swait_for_selector #mail-body a[href*='/login/reset/']68.8
+6.37sclick #mail-body a[href*='/login/reset/']100.1
+6.43sfill #new-password55.7
+6.5sfill #confirm-password69.3
+6.66sclick #reset-btn161.5
+6.77swait_for_selector #login-btn109.5
+6.77schoose a new password496.6
+6.78sfill #username17.7
+6.8sfill #password16.0
+7.18sclick #login-btn375.4
+7.33swait_for_selector #signed-in-user153.0
+7.33ssign in with the new password562.5
+7.5sclick #sign-out174.4
+7.58swait_for_selector #login-btn73.6
+7.71sgoto http://127.0.0.1:8000/demo/freight/mailbox/4/128.5
+7.89sclick #mail-body a[href*='/login/reset/']186.2
+8.01swait_for_selector #reset-invalid, #reset-form122.2
+8.01sfollow the same link again437.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.