Issue #4 acceptanceIndexTreeResultsG1G2G3G4G5G6G7G8

G4 Link states

Index | Tree | Markdown version: G4.md

Every state of the confirmation link page: random, malformed and expired tokens (invalid), used token, signed in as a different account (with recovery), changed account email, and nothing left to add. Expired, used, wrong-customer, email-changed and nothing-left are reached by inserting or editing DB rows.

A15 Random 64-hex token

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S4

logged-out visitor opens a random 64-hex token: data-state=invalid, text "This link is invalid or has expired...", clean URL order_link/confirm without token; the "My Account" link in the text leads to the login page (token generated in the script, no DB rows)

01. invalid link
01. invalid link
02. my account link leads to login
02. my account link leads to login
Video: A15-random-token

A16 Malformed token `abc`

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S4

logged-out visitor opens token "abc" (not 64 hex): same invalid text and clean URL as A15

01. invalid link malformed token
01. invalid link malformed token
Video: A16-malformed-token

A17 Expired token

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S4

expired state reached by DB manipulation (link row inserted with date_expires 60 s in the past): invalid text, clean URL; the guest order stays unlinked (customer_id 0), link not marked used

01. expired link invalid
01. expired link invalid
Video: A17-expired-token

A18 Used token

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S4 (+S1 reopen)

used state reached by DB manipulation (link row inserted with date_used set): data-state=used, text "This link has already been used...", clean URL; nothing linked. The genuine used-after-confirm case is in G1/A01

01. already used link
01. already used link
Video: A18-used-token

A19 Signed in as a different account, then recovery

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S5

signed in as B opens A's link (link row inserted via DB): wrong_customer text; then logout, login as A, open the confirm route (token kept in session), password, success "Orders added to your account: 1"

01. wrong customer logged in as b
01. wrong customer logged in as b
02. password step for a
02. password step for a
03. success one order
03. success one order
Video: A19-wrong-customer

A20 Account email changed after the link was sent

Language: EN | Mode: login | Status: PASS | Repo spec: GOL S6

email change reached by DB manipulation (UPDATE oc_customer email after the link row was inserted); logged in with the new address: email_changed text; order stays unlinked, link unused

01. email changed notice
01. email changed notice
Video: A20-email-changed

A21 Nothing left to add

Language: EN | Mode: login | Status: PASS | Repo spec: none

reached by DB manipulation (fake order's customer_id set to the customer after the link row was inserted): password step, then data-state=none "Your email address is confirmed. There was nothing left to add..."

01. password step
01. password step
02. nothing left to add
02. nothing left to add
Video: A21-nothing-left