# Issue #4 acceptance: scenario index

Back to [README](README.md) | [Screen tree](tree.md) | HTML version: [index.html](index.html) | all 35 scenarios PASS (A02 has a core and a Simple variant, so 36 rows).

Columns: ID links to the flow page (story, numbered screenshots, videos). Media links: numbers are screenshots in order, "video" is a .webm, others are supporting files.

## G1 Registration

Registers new accounts through the core /create-account/ form (simple_replace_register=0). A01 is the full happy path: register with an email that has guest orders, receive the confirmation mail (register copy), enter the account password and see the orders in Order History and Downloads, then reuse the link. A02 is the account-created page naming the shop mailbox (#55). A03 to A06 are the negatives (no orders, orders owned by an account, look-alike emails, status-0 order): welcome mail only, no notice.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A01](flows/G1.md#a01) | Register with a guest email, confirm, orders appear | EN | core | Account-created page (A02). One mail with subject "Owl Crafts TM Embrioidery – confirm your email to add your earlier orders": "Hello E2E,", "An account was created at … We found earlier orders that were placed with this address without ... | PASS | [01](media/G1/A01-01-register-form-filled.png) [02](media/G1/A01-02-account-created-page.png) [03](media/G1/A01-03-confirmation-mail-register-copy.png) [04](media/G1/A01-04-notice-sent-state-after-registration.png) [05](media/G1/A01-05-password-step.png) [06](media/G1/A01-06-password-entered.png) [07](media/G1/A01-07-result-two-orders-added.png) [08](media/G1/A01-08-order-history-lists-both-orders.png) [09](media/G1/A01-09-downloads-lists-pdf.png) [10](media/G1/A01-10-already-used.png) [video](media/G1/A01-register-and-link.webm) |
| [A02](flows/G1.md#a02) | Account-created page names the shop mailbox (#55) | EN | core + simple | Heading "Your Account Has Been Created!"; "…please e-mail the owner info@owl-crafts.com." (catalog/language/english/account/success.php; RU/UA files mention no address) | PASS | [02](media/G1/A01-02-account-created-page.png) |
| [A03](flows/G1.md#a03) | Register, no orders at all: no confirmation | EN | core | Welcome mail only ("… - Thank you for registering", mail/customer.php); no "confirm your email" mail; no notice on My Account | PASS | [01](media/G1/A03-01-account-created.png) [02](media/G1/A03-02-welcome-mail-only.png) [03](media/G1/A03-03-inbox-has-only-welcome.png) [04](media/G1/A03-04-no-notice.png) [video](media/G1/A03-no-orders.webm) |
| [A04](flows/G1.md#a04) | Register, only orders owned by an account | EN | core | Same as A03; the orders stay with their owner | PASS | [01](media/G1/A04-01-account-created.png) [02](media/G1/A04-02-welcome-mail-only.png) [03](media/G1/A04-03-inbox-has-only-welcome.png) [04](media/G1/A04-04-no-notice.png) [video](media/G1/A04-account-owned-orders.webm) |
| [A05](flows/G1.md#a05) | Register, only look-alike emails | EN | core | Same as A03 (binary-safe match) | PASS | [01](media/G1/A05-01-account-created.png) [02](media/G1/A05-02-welcome-mail-only.png) [03](media/G1/A05-03-inbox-has-only-welcome.png) [04](media/G1/A05-04-no-notice.png) [video](media/G1/A05-look-alike-email.webm) |
| [A06](flows/G1.md#a06) | Register, only a missing (status 0) order | EN | core | Same as A03 | PASS | [01](media/G1/A06-01-account-created.png) [02](media/G1/A06-02-welcome-mail-only.png) [03](media/G1/A06-03-inbox-has-only-welcome.png) [04](media/G1/A06-04-no-notice.png) [video](media/G1/A06-status-0-order.webm) |

## G2 Notice and request

An existing, signed-in customer with unlinked guest orders. The notice appears on My Account, Order History and Downloads (desktop and 375 px), the request button sends the mail (#54 request copy), the link works from a fresh browser after sign-in, and no notice appears when there is nothing to link.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A07](flows/G2.md#a07) | Notice on My Account, Order History, Downloads (desktop + **375 px**) | EN | login | Well [data-testid=order-link-notice]: "Ordered from us before without signing in?", "If you placed orders as a guest using G, we can add them to your account so they appear here and your files are ready to download. To keep your orders ... | PASS | [01](media/G2/A07-01-my-account-notice.png) [02](media/G2/A07-02-my-account-notice-close-up.png) [03](media/G2/A07-03-order-history-notice.png) [04](media/G2/A07-04-order-history-notice-close-up.png) [05](media/G2/A07-05-downloads-notice.png) [06](media/G2/A07-06-downloads-notice-close-up.png) [07](media/G2/A07-07-mobile-my-account-notice.png) [08](media/G2/A07-08-mobile-order-history-notice.png) [09](media/G2/A07-09-mobile-downloads-notice.png) [video](media/G2/A07-notice-three-pages.webm) [video](media/G2/A07-notice-three-pages-mobile.webm) |
| [A08](flows/G2.md#a08) | Request a link: flash, then "sent" state with cooldown | EN | login | Flash (data-type=success): "Done! We've sent a confirmation link to G." Body: "We've emailed a confirmation link to G. Open it within 7 days to add your earlier orders. Can't find it? Check your spam folder." Disabled button "Send the link ... | PASS | [01](media/G2/A08-01-notice-before-request.png) [02](media/G2/A08-02-success-flash.png) [03](media/G2/A08-03-sent-state.png) [04](media/G2/A08-04-flash-gone-sent-state-stays.png) [05](media/G2/A08-05-mobile-sent-state.png) [video](media/G2/A08-request-sent.webm) [video](media/G2/A08-request-sent-mobile.webm) |
| [A09](flows/G2.md#a09) | Request email differs from register email (#54) | EN | login | "You asked us to add your earlier guest orders to your account at Owl Crafts TM Embrioidery." and "If you didn't ask for this, please ignore this email." No "An account was created" | PASS | [01](media/G2/A09-01-request-mail-copy.png) [video](media/G2/A09-request-email-copy.webm) |
| [A10](flows/G2.md#a10) | Link opened while logged out (another browser) | EN | login | Redirected to /login/ (no token= in the URL). After sign-in: password step, then "Orders added to your account: 1". The notice is gone on My Account | PASS | [01](media/G2/A10-01-logged-out-in-first-browser.png) [02](media/G2/A10-02-login-required.png) [03](media/G2/A10-03-password-step.png) [04](media/G2/A10-04-one-order-added.png) [05](media/G2/A10-05-notice-gone.png) [video](media/G2/A10-link-logged-out.webm) [video](media/G2/A10-link-logged-out-fresh-browser.webm) |
| [A11](flows/G2.md#a11) | No notice when there is nothing to link | EN | login | No notice on any of the 3 pages | PASS | [01](media/G2/A11-01-my-account-no-notice.png) [02](media/G2/A11-02-order-history-no-notice.png) [03](media/G2/A11-03-downloads-no-notice.png) [video](media/G2/A11-no-notice.webm) |

## G3 Rate limits and request CSRF

Abuse limits on the request form: the 10-minute cooldown seen from a stale second tab, the 5-links-per-24-hours daily limit (reached by DB manipulation), and a forged or stale form token on the request.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A12](flows/G3.md#a12) | Cooldown: second request within 10 min (stale tab) | EN | login | Tab 1 flash (warning): "We've just sent you a link. Please wait 10 min before requesting another one." Mailpit still shows 1 confirmation mail | PASS | [01](media/G3/A12-01-tab-1-notice-before-any-request.png) [02](media/G3/A12-02-tab-2-success-flash.png) [03](media/G3/A12-03-tab-1-wait-warning.png) [video](media/G3/A12-cooldown-stale-tab-tab1.webm) [video](media/G3/A12-cooldown-stale-tab-tab2.webm) |
| [A13](flows/G3.md#a13) | Daily limit: 5 links per 24 h | EN | login | Notice: disabled "Send the link again" + "You've requested too many links today. Please try again tomorrow or contact us."; stale click gives the same text as a warning flash; no new mail | PASS | [01](media/G3/A13-01-tab-2-stale-notice-send-enabled.png) [02](media/G3/A13-02-tab-1-daily-limit-reached.png) [03](media/G3/A13-03-tab-2-stale-click-daily-warning.png) [video](media/G3/A13-daily-limit-tab1.webm) [video](media/G3/A13-daily-limit-tab2.webm) |
| [A14](flows/G3.md#a14) | Forged / stale request form | EN | login | Flash (danger): "Your session has expired. Please try again." No mail, no link row | PASS | [01](media/G3/A14-01-notice-before-forged-click.png) [02](media/G3/A14-02-forged-token-session-expired.png) [03](media/G3/A14-03-retry-with-fresh-token-succeeds.png) [video](media/G3/A14-forged-request.webm) |

## G4 Link states

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.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A15](flows/G4.md#a15) | Random 64-hex token | EN | login | data-state=invalid: "This link is invalid or has expired. Sign in and request a new one on the My Account page." Clean URL …order_link/confirm | PASS | [01](media/G4/A15-01-invalid-link.png) [02](media/G4/A15-02-my-account-link-leads-to-login.png) [video](media/G4/A15-random-token.webm) |
| [A16](flows/G4.md#a16) | Malformed token `abc` | EN | login | Same invalid text | PASS | [01](media/G4/A16-01-invalid-link-malformed-token.png) [video](media/G4/A16-malformed-token.webm) |
| [A17](flows/G4.md#a17) | Expired token | EN | login | Same invalid text; the order stays a guest order | PASS | [01](media/G4/A17-01-expired-link-invalid.png) [video](media/G4/A17-expired-token.webm) |
| [A18](flows/G4.md#a18) | Used token | EN | login | used: "This link has already been used. Your earlier orders should already be in your order history. If something is missing, please contact us." | PASS | [01](media/G4/A18-01-already-used-link.png) [video](media/G4/A18-used-token.webm) |
| [A19](flows/G4.md#a19) | Signed in as a different account, then recovery | EN | login | wrong_customer: "This link was sent for a different account. Please sign out, then sign in with the account the email was sent to." Then A's password step, then success 1 (the token survived in the session) | PASS | [01](media/G4/A19-01-wrong-customer-logged-in-as-b.png) [02](media/G4/A19-02-password-step-for-a.png) [03](media/G4/A19-03-success-one-order.png) [video](media/G4/A19-wrong-customer.webm) |
| [A20](flows/G4.md#a20) | Account email changed after the link was sent | EN | login | email_changed: "The email address on your account has changed since this link was sent. Please request a new link on the My Account page." Nothing linked | PASS | [01](media/G4/A20-01-email-changed-notice.png) [video](media/G4/A20-email-changed.webm) |
| [A21](flows/G4.md#a21) | Nothing left to add | EN | login | none: "Your email address is confirmed. There was nothing left to add: all orders placed with this address are already in your order history." | PASS | [01](media/G4/A21-01-password-step.png) [02](media/G4/A21-02-nothing-left-to-add.png) [video](media/G4/A21-nothing-left.webm) |

## G5 Password step and login CSRF

Security of the password step: a login-CSRF attack that silently signs the victim into an attacker account is defeated by the password step, plus wrong password, login lockout shared with the login form, a forged confirm form, and the "not you, sign out" line.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A22](flows/G5.md#a22) | Login-CSRF attack is defeated | EN | login | Only the password step for X ("You're signed in as E2E (V)…"). Nothing is linked until X's password is entered | PASS | [01](media/G5/A22-01-victim-signed-in-to-own-account.png) [02](media/G5/A22-02-attacker-page-auto-posts-login.png) [03](media/G5/A22-03-victim-is-now-signed-in-as-attacker-account.png) [04](media/G5/A22-04-password-step-names-attacker-account-nothing-linked.png) [video](media/G5/A22-login-csrf-defeated-victim.webm) |
| [A23](flows/G5.md#a23) | Wrong password | EN | login | [data-testid=order-link-error]: "The password is incorrect. Please try again." Still confirm; the token isn't consumed | PASS | [01](media/G5/A23-01-wrong-password-error.png) [video](media/G5/A22-login-csrf-defeated-victim.webm) |
| [A24](flows/G5.md#a24) | Lockout shared with the login form | EN | login | "Too many incorrect password attempts. Please try again in 1 hour." Then setLoginAttempts(V, 2); the right password gives success 1 | PASS | [01](media/G5/A24-01-lockout-message-right-password-refused.png) [02](media/G5/A24-02-below-limit-right-password-links-one-order.png) [video](media/G5/A22-login-csrf-defeated-victim.webm) |
| [A25](flows/G5.md#a25) | Forged confirm form | EN | login | Error "Your session has expired. Please try again."; the token isn't consumed | PASS | [01](media/G5/A25-01-password-step.png) [02](media/G5/A25-02-csrf-replaced-password-typed.png) [03](media/G5/A25-03-session-expired-error-nothing-linked.png) [04](media/G5/A25-04-genuine-form-succeeds.png) [video](media/G5/A25-forged-confirm.webm) |
| [A26](flows/G5.md#a26) | "If this isn't your account, sign out" | EN | login | Logout page; reopening CONFIRM_ROUTE leads to login (the token is still in the session) | PASS | [01](media/G5/A26-01-not-you-line.png) [02](media/G5/A26-02-password-step-full-page.png) [03](media/G5/A26-03-logged-out.png) [04](media/G5/A26-04-reopening-confirm-leads-to-login.png) [video](media/G5/A26-not-you-sign-out.webm) |

## G6 #53 copy, business rule, admin

#53 and the business rule that downloads need an account: the guest checkout-success text, the order email note, the absence of any guest download route, and the admin Customer Activity report rows for the new activity types.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A27](flows/G6.md#a27) | Checkout success page for a guest (#53) | EN | login | Guest: "As you placed this order without logging in, it will appear there once you log in and confirm your email address (DOWNLOADS will show you how)." and "You need an account to download PDFs. Create one with the email address you used ... | PASS | [01](media/G6/A27-01-guest-success-page.png) [02](media/G6/A27-02-guest-success-text.png) [03](media/G6/A27-03-logged-in-text-unchanged.png) [04](media/G6/A27-04-logged-in-text-close-up.png) [video](media/G6/A27-checkout-success-guest.webm) [video](media/G6/A27-checkout-success-guest-logged-in.webm) |
| [A28](flows/G6.md#a28) | Order email for a guest order with a PDF (#53) | EN | login | "Once your payment has been confirmed you can click on the link below to access your downloadable products. You will need to log in to your account to see them; if you don't have an account yet, please create one with the email address you ... | PASS | [01](media/G6/A28-01-order-confirmation-mail-download-note.png) [02](media/G6/A28-02-order-confirmation-mail-full.png) [video](media/G6/A28-order-email-download-note.webm) |
| [A29](flows/G6.md#a29) | No guest download link exists (§0 rule) | EN | login | HTTP 404, "The page you requested cannot be found!" (verified by curl while planning) | PASS | [01](media/G6/A29-01-guest-download-route-404.png) [video](media/G6/A29-no-guest-download.webm) |
| [A30](flows/G6.md#a30) | Admin Customer Activity report (EN) | EN | admin | Rows: "E2E Issue4-… was sent a link to confirm their email and add guest orders." and "E2E Issue4-… confirmed their email and added 1 guest order(s) to their account." with working customer_id links (hover only, see §4) | PASS | [01](media/G6/A30-01-activity-report-rows.png) [02](media/G6/A30-02-activity-report-full-page.png) [03](media/G6/A30-03-customer-link-hover.png) [video](media/G6/A30-admin-activity-admin.webm) |

## G7 Languages

Languages. A31 is a copy sheet of every shipped string in English, Russian and Ukrainian. A32 and A33 render the real Russian and Ukrainian files live through temporary local-only language rows, covering the notice, request, mail, password step and result.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A31](flows/G7.md#a31) | Three-language copy sheet | EN RU UA | none | 33 order_link_* keys × EN/RU/UA (parity verified: same 33 keys in all 3); mail/order.php text_new_download; checkout/success.php text_guest; account/success.php text_message (EN only); admin text_order_link_request / text_order_link ... | PASS | [01](media/G7/A31-01-full-copy-sheet.png) [02](media/G7/A31-02-section-mail.png) [03](media/G7/A31-03-section-notice.png) [04](media/G7/A31-04-section-confirm.png) [05](media/G7/A31-05-section-states.png) [06](media/G7/A31-06-section-order-mail.png) [07](media/G7/A31-07-section-checkout.png) [08](media/G7/A31-08-section-account-success.png) [09](media/G7/A31-09-section-admin.png) [video](media/G7/A31-copy-sheet.webm) [html](media/G7/A31-copy-sheet.html) [json](media/G7/A31-strings.json) |
| [A32](flows/G7.md#a32) | Live Russian screens | RU | login (+ core for the register mail) | RU strings from catalog/language/russian/account/order_link.php and checkout/success.php | PASS | [01](media/G7/A32-01-notice.png) [02](media/G7/A32-02-notice-close-up.png) [03](media/G7/A32-03-success-flash.png) [04](media/G7/A32-04-sent-state.png) [05](media/G7/A32-05-request-mail.png) [06](media/G7/A32-06-password-step.png) [07](media/G7/A32-07-wrong-password-error.png) [08](media/G7/A32-08-result-success.png) [09](media/G7/A32-09-invalid-link.png) [10](media/G7/A32-10-guest-checkout-success.png) [video](media/G7/A32-live-russian-mail.webm) [video](media/G7/A32-live-russian.webm) [video](media/G7/A32-live-russian-fresh.webm) |
| [A33](flows/G7.md#a33) | Live Ukrainian screens | UA | login (+ core) | UA strings from catalog/language/ua-uk/… | PASS | [01](media/G7/A33-01-notice.png) [02](media/G7/A33-02-notice-close-up.png) [03](media/G7/A33-03-success-flash.png) [04](media/G7/A33-04-sent-state.png) [05](media/G7/A33-05-request-mail.png) [06](media/G7/A33-06-password-step.png) [07](media/G7/A33-07-wrong-password-error.png) [08](media/G7/A33-08-result-success.png) [09](media/G7/A33-09-invalid-link.png) [10](media/G7/A33-10-guest-checkout-success.png) [video](media/G7/A33-live-ukrainian-mail.webm) [video](media/G7/A33-live-ukrainian.webm) [video](media/G7/A33-live-ukrainian-fresh.webm) |

## G8 Simple-local (isolated)

Simple checkout registration (/simpleregister/), captured in an isolated loopback-only "Simple-local" mode that serves the local stack under the licensed owl-crafts.com name. A34 registers with a guest-order email and links the order; A35 registers with a fresh email and gets only the welcome mail.

| ID | Title | Lang | Mode | Expected result | Status | Media |
|---|---|---|---|---|---|---|
| [A34](flows/G8.md#a34) | Simple register with a guest email | EN | simple | /simpleregister/ form (production UI); account-created page with info@owl-crafts.com (A02); one confirmation mail; success "Orders added to your account: 1" | PASS | [01](media/G8/A34-01-simple-register-form.png) [02](media/G8/A34-02-simple-register-form-filled.png) [03](media/G8/A34-03-account-created.png) [04](media/G8/A34-04-confirmation-mail.png) [05](media/G8/A34-05-password-step.png) [06](media/G8/A34-06-one-order-added.png) [07](media/G8/A34-07-order-history-lists-the-order.png) [video](media/G8/A34-simple-register-and-link-mailpit.webm) [video](media/G8/A34-simple-register-and-link.webm) |
| [A02-simple](flows/G8.md#a02-simple) | Account-created page names the shop mailbox (#55) (Simple variant) | EN | simple | Heading "Your Account Has Been Created!"; "…please e-mail the owner info@owl-crafts.com." (catalog/language/english/account/success.php; RU/UA files mention no address) | PASS | [03](media/G8/A34-03-account-created.png) |
| [A35](flows/G8.md#a35) | Simple register without guest orders | EN | simple | Welcome mail only, no confirmation | PASS | [01](media/G8/A35-01-simple-register-form.png) [02](media/G8/A35-02-simple-register-form-filled.png) [03](media/G8/A35-03-account-created.png) [04](media/G8/A35-04-welcome-mail.png) [05](media/G8/A35-05-welcome-only.png) [video](media/G8/A35-simple-register-no-orders.webm) [video](media/G8/A35-simple-register-no-orders-mailpit.webm) |

## Automated suite (repo specs)

Run once at the end of the capture: 17 passed, 2 skipped, 1 failed. Raw output: [results/automated-suite.txt](results/automated-suite.txt), explanation of every non-pass: [results/README.md](results/README.md).
