Test Tools

Internal use only — seed / reset test data on the live site

Admin Login

Provisioning
Seed / Reset Test Subscriber

Resets [email protected] to a fresh pending inbox. Run this before each full end-to-end test.

Seed Custom Subscriber

Seed any email address as a subscriber with a fresh pending inbox — no Stripe checkout required. Once seeded, all portal actions below will use this email.

Active test email:[email protected]
End-to-End Test Plan

Full provision → portal → support → teardown cycle

  1. 1.Seed SubscriberResets inbox to pending — always start here
  2. 2.Clear Portal DataWipes sessions, OTPs, and tickets for a clean slate
  3. 3.Bypass OTP LoginInjects a session token — then open /portal
  4. 4.Run Provision WizardComplete the wizard at /portal → should reach forwarding_active (or use Set Provisioned shortcut below to skip)
  5. 5.Verify Portal DashboardConfirm inbox status, subscriber info, and wizard completion state display correctly
  6. 6.Seed Test TicketCreates a sample ticket so the Support tab has data
  7. 7.Verify Support TabOpen /portal → Support tab — confirm ticket renders with correct status and priority
  8. 8.Update ticket via /adminChange status and add staff notes — confirm customer-side visibility on reload
  9. 9.Trigger TeardownMoves inbox to pending_teardown; optionally suppress email
  10. 10.FinaliseMarks inbox deprovisioned — verify portal reflects deprovisioned state
  11. 11.Seed Subscriber againReset for the next run
De-provisioning
Use Set Provisioned to skip the wizard and jump straight to teardown testing. For a full end-to-end run, follow the plan above.
Set Provisioned (shortcut)

Skips the wizard — resets the test inbox directly to forwarding_active so you can test teardown without re-running setup.

Trigger Teardown

Moves the test inbox to pending_teardown and optionally sends the notification email to [email protected].

Finalise (Deprovision)

Marks the test inbox as deprovisioned. Inbox must be in pending_teardown first.

Support Portal
Steps 2–3 and 6–8 of the end-to-end plan above. Use these buttons independently to re-test portal login or support tickets without re-running the full cycle.
Clear Portal Data

Deletes all portal sessions, OTP tokens, and support tickets for [email protected]. Run this first for a clean test.

Bypass OTP Login

Creates a valid 2-hour portal session for [email protected] and injects the token into sessionStorage. Then open /portal — it will land directly on the dashboard, skipping OTP.

Seed Test Ticket

Creates a sample Open / MEDIUM support ticket for the test subscriber. Use this to verify the portal Support tab renders tickets correctly.

Admin
Seed Admin Users

Creates OG-test1 and OG-test2 admin accounts (idempotent — safe to run multiple times).

Extension Detection Debug

Reads document.documentElement.dataset.ogExtension — the attribute the extension writes at document_start.

Have a question? I can help.