Issue #4 acceptanceIndexREADMEtree.md

Screen and condition tree

Click a node to open the first scenario that shows it. Needs network access for the Mermaid library (cdn.jsdelivr.net).

flowchart TD
  START(["Visitor or customer
all scenarios"]) GCO["Checkout success, guest
'You need an account to download PDFs…'
A27"] OMAIL["Order email in Mailpit
'You will need to log in to your account…'
A28"] GDL["route=account/guest_download
404 'page you requested cannot be found'
A29"] REG["Register form
core /create-account/ or Simple /simpleregister/
A01 A03 A04 A05 A06 A34 A35"] ACS["Account created page
'Your Account Has Been Created!' + info@owl-crafts.com
A02"] WEL["Mailpit: welcome mail only
A03 A04 A05 A06 A35"] MREG["Mailpit: confirmation mail, register copy
'An account was created at …'
A01 A34"] LOGIN0["Login page
A07 A10 A11"] ACCN["My Account / Order History / Downloads
no notice
A03-A06 A11 A10"] NOTICE["Notice: 'Ordered from us before without signing in?'
button 'Email me a confirmation link'
A07 desktop + 375px"] FLASH["Flash 'Done! We've sent a confirmation link to …'
A08"] SENT["Sent state: 'Send the link again' disabled
'You can request another link in 10 min.'
A08"] COOL["Warning: 'Please wait 10 min…'
A12"] DAILY["'You've requested too many links today…'
A13"] CSRF1["Danger: 'Your session has expired…'
A14"] MREQ["Mailpit: confirmation mail, request copy
'You asked us to add your earlier guest orders…'
A09"] LINK{{"Click link: token moved to session,
redirect to clean account/order_link/confirm
A10 A15-A22 A26"}} INVALID["'This link is invalid or has expired…'
A15 A16 A17"] USED["'This link has already been used…'
A18 A01"] LOGINR["Login page (redirect back after sign-in)
A10 A26"] WRONG["'This link was sent for a different account…'
A19"] EMCH["'The email address on your account has changed…'
A20"] ATK["Attacker page auto-logs victim into account X
A22"] PW["Password step: 'You're signed in as … please enter your account password'
A01 A10 A19 A22 A34"] PWERR["'The password is incorrect. Please try again.'
A23"] LOCK["'Too many incorrect password attempts…'
A24"] CSRF2["'Your session has expired…' on confirm
A25"] OUT["Signed out
A26"] OK["Result: 'Orders added to your account: N'
A01 A10 A19 A22 A34"] NONE["Result: 'There was nothing left to add…'
A21"] HIST["Order History lists the orders, Downloads lists the PDF
A01"] ADMIN["Admin Customer Activity, filtered to the fake customer
A30"] SHEET["Copy sheet EN/RU/UA + live RU and UA screens
A31 A32 A33"] START -->|"buys as guest"| GCO GCO -->|"order confirmed (status 0 to 2)"| OMAIL GCO -.->|"no guest download link exists"| GDL OMAIL -->|"creates an account with the order email"| REG START -->|"registers"| REG REG -->|"Create"| ACS ACS -->|"no orders / only account-owned / look-alike / status-0 only"| WEL WEL --> ACCN ACS -->|"email matches unlinked guest orders"| MREG ACS -->|"My Account, link already sent"| SENT START -->|"has an account, signs in"| LOGIN0 LOGIN0 -->|"no unlinked guest orders"| ACCN LOGIN0 -->|"unlinked guest orders for the account email"| NOTICE NOTICE -->|"Email me a confirmation link"| FLASH FLASH -->|"reload"| SENT FLASH --> MREQ NOTICE -->|"stale tab, link sent under 10 min ago"| COOL SENT -->|"5 links in 24 h"| DAILY NOTICE -->|"forged or stale form token"| CSRF1 MREG -->|"click link"| LINK MREQ -->|"click link"| LINK ATK -->|"victim clicks the genuine link"| LINK LINK -->|"random, malformed or expired token"| INVALID LINK -->|"token already used"| USED LINK -->|"not signed in"| LOGINR LOGINR -->|"signs in as the owner"| PW LINK -->|"signed in as another account"| WRONG WRONG -->|"sign out, sign in as owner, reopen confirm"| PW LINK -->|"account email changed"| EMCH LINK -->|"signed in as the owner"| PW PW -->|"wrong or empty password"| PWERR PWERR -->|"retry"| PW PW -->|"login attempts at the limit"| LOCK PW -->|"form token mismatch"| CSRF2 PW -->|"sign out link"| OUT OUT --> LOGINR PW -->|"right password, orders still unlinked"| OK PW -->|"right password, nothing left to link"| NONE OK --> HIST OK -->|"notice gone"| ACCN MREG -.->|"activity order_link_request"| ADMIN MREQ -.->|"activity order_link_request"| ADMIN OK -.->|"activity order_link"| ADMIN NOTICE -.->|"same screens in RU and UA"| SHEET click GCO "flows/G6.html#A27" click OMAIL "flows/G6.html#A28" click GDL "flows/G6.html#A29" click REG "flows/G1.html#A01" click ACS "flows/G1.html#A02" click WEL "flows/G1.html#A03" click MREG "flows/G1.html#A01" click LOGIN0 "flows/G2.html#A07" click ACCN "flows/G1.html#A03" click NOTICE "flows/G2.html#A07" click FLASH "flows/G2.html#A08" click SENT "flows/G2.html#A08" click COOL "flows/G3.html#A12" click DAILY "flows/G3.html#A13" click CSRF1 "flows/G3.html#A14" click MREQ "flows/G2.html#A09" click LINK "flows/G4.html#A15" click INVALID "flows/G4.html#A15" click USED "flows/G4.html#A18" click LOGINR "flows/G2.html#A10" click WRONG "flows/G4.html#A19" click EMCH "flows/G4.html#A20" click ATK "flows/G5.html#A22" click PW "flows/G1.html#A01" click PWERR "flows/G5.html#A23" click LOCK "flows/G5.html#A24" click CSRF2 "flows/G5.html#A25" click OUT "flows/G5.html#A26" click OK "flows/G1.html#A01" click NONE "flows/G4.html#A21" click HIST "flows/G1.html#A01" click ADMIN "flows/G6.html#A30" click SHEET "flows/G7.html#A31"

Legend

Node to scenarios to key screenshots

NodeScenariosKey screenshots
Visitor or customer (START)
Checkout success, guest (GCO)A27A27
Order email in Mailpit (OMAIL)A28A28
route=account/guest_download (GDL)A29A29
Register form (REG)A01 A03 A04 A05 A06 A34 A35A01 A03 A04
Account created page (ACS)A02A02
Mailpit: welcome mail only (WEL)A03 A04 A05 A06 A35A03 A04 A05
Mailpit: confirmation mail, register copy (MREG)A01 A34A01 A34
Login page (LOGIN0)A07 A10 A11A07 A10 A11
My Account / Order History / Downloads (ACCN)A03 A04 A05 A06 A11 A10A03 A04 A05
Notice: 'Ordered from us before without signing in?' (NOTICE)A07A07
Flash 'Done! We've sent a confirmation link to …' (FLASH)A08A08
Sent state: 'Send the link again' disabled (SENT)A08A08
Warning: 'Please wait 10 min…' (COOL)A12A12
'You've requested too many links today…' (DAILY)A13A13
Danger: 'Your session has expired…' (CSRF1)A14A14
Mailpit: confirmation mail, request copy (MREQ)A09A09
Click link: token moved to session, (LINK)A15 A16 A17 A18 A19 A20 A21 A22 A10 A26A15 A16 A17
'This link is invalid or has expired…' (INVALID)A15 A16 A17A15 A16 A17
'This link has already been used…' (USED)A18 A01A18 A01
Login page (redirect back after sign-in) (LOGINR)A10 A26A10 A26
'This link was sent for a different account…' (WRONG)A19A19
'The email address on your account has changed…' (EMCH)A20A20
Attacker page auto-logs victim into account X (ATK)A22A22
Password step: 'You're signed in as … please enter your account password' (PW)A01 A10 A19 A22 A34A01 A10 A19
'The password is incorrect. Please try again.' (PWERR)A23A23
'Too many incorrect password attempts…' (LOCK)A24A24
'Your session has expired…' on confirm (CSRF2)A25A25
Signed out (OUT)A26A26
Result: 'Orders added to your account: N' (OK)A01 A10 A19 A22 A34A01 A10 A19
Result: 'There was nothing left to add…' (NONE)A21A21
Order History lists the orders, Downloads lists the PDF (HIST)A01A01
Admin Customer Activity, filtered to the fake customer (ADMIN)A30A30
Copy sheet EN/RU/UA + live RU and UA screens (SHEET)A31 A32 A33A31 A32 A33