TEST MODE — FAKE DATAUI statesScenarios

Scenarios.

Deterministic Phase 2 journeys. Starting one replaces the current fake session state.

privacy-eea-suppressed

EEA analytics suppression

Test: Dismiss the landing-page notice, reload, then inspect Privacy Controls.

Expect: The notice stays dismissed, and no identifier or linked analytics data exists.

Starting user
Anonymous visitor
Country
Germany
Licence
None
Duration
2 minutes
Start scenario

privacy-opt-out

Export, opt out, and delete raw analytics

Test: Export the three linked events, turn off analytics, then export again.

Expect: Rows are exported, then deleted before the identifier; the second export is empty.

Starting user
Anonymous visitor
Country
United States
Licence
None
Duration
4 minutes
Start scenario

privacy-deletion-failure

Analytics deletion failure

Test: Try to turn off analytics, read the error, then reload the page.

Expect: The failure is explicit and the identifier and linked row remain unchanged.

Starting user
Anonymous visitor
Country
United States
Licence
None
Duration
2 minutes
Start scenario

privacy-dnt

Do Not Track suppression

Test: Visit the landing page and Privacy Controls, then inspect the event viewer.

Expect: No notice, identifier, or analytics event is created while DNT is active.

Starting user
Anonymous visitor
Country
United States
Licence
None
Duration
2 minutes
Start scenario

auth-sign-up-us

Eligible account creation

Test: Create the account, open the fake inbox, verify the email, then sign in.

Expect: One account and verification email are created; verification enables sign-in.

Starting user
new.us@sonik.test
Country
United States
Licence
None
Duration
5 minutes
Start scenario

auth-sign-up-non-us

Non-US account refusal

Test: Complete the sign-up form, then inspect the fake inbox and event viewer.

Expect: The request is refused without creating an account or verification email.

Starting user
new.us@sonik.test
Country
Canada
Licence
None
Duration
2 minutes
Start scenario

auth-password-reset

Password reset link states

Test: Request a reset, use its inbox link once, then expire and open a fresh link.

Expect: GET does not consume links; submitted, reused, and expired states remain distinct.

Starting user
empty@sonik.test
Country
United States
Licence
None
Duration
6 minutes
Start scenario