Pax acceptance run

Target https://paxpsychology.dev Started 2026-10-25 03:26:10 UTC Duration 17m 38s Emails 130 sent

Runs

DateRunBranchCommitPassFailManualNot automated
2026-10-25 03:43:48 UTCThis run e2e-20261025-hb0hjcredesign-ui-kits98bfaf5167640
2026-10-25 01:50:05 UTCe2e-20261025-o3rybsredesign-ui-kitsa46bb2e155450
2026-10-25 01:06:17 UTCe2e-20261025-x0ebwnredesign-ui-kitscf297cf154550
2026-10-25 00:00:44 UTCe2e-20261025-errfmjredesign-ui-kits6920733150750
2026-10-24 14:42:34 UTCe2e-20261024-b8sqxaredesign-ui-kitsbf0c2e4102550
2026-10-24 13:38:25 UTCe2e-20261024-m0gvhuredesign-ui-kits71c6538100350
2026-10-24 09:33:57 UTCe2e-20261024-81nqk1redesign-ui-kitsb1377a986160
2026-10-24 09:11:22 UTCe2e-20261024-zce0pvredesign-ui-kits890972281461
2026-10-22 11:14:37 UTCe2e-20261022-dgop81redesign-ui-kitsecfd0aa76160
2026-10-22 10:13:34 UTCe2e-20261022-pre0h3feat/report-emails-inlinef6c030c77060
2026-10-22 07:40:51 UTCe2e-20261022-flhi2lfix/match-slot-conflict0855b5177060
2026-10-15 02:38:24 UTCe2e-20261015-wi75vdredesign-ui-kits3e75a9c78060
2026-10-08 03:06:10 UTCe2e-20261008-arn6xtredesign-ui-kits3a4e1cf78060
2026-10-08 02:55:47 UTCe2e-20261008-s12gqgredesign-ui-kits3a4e1cf77060
2026-10-07 15:29:01 UTCe2e-20261007-h8j8hdredesign-ui-kitsbd6a18a77060
2026-10-07 14:23:24 UTCe2e-20261007-1b6ie7redesign-ui-kitsbd6a18a75060
2026-09-17 09:26:26 UTCe2e-20260917-m18l80redesign-ui-kits814cae575060
2026-09-17 08:57:21 UTCe2e-20260917-cp8ebxredesign-ui-kits8e6bc2372260
2026-09-17 07:31:15 UTCe2e-20260917-qlxii3redesign-ui-kitsf646fa4621360
2026-09-17 05:27:37 UTCe2e-20260917-uc8ydhredesign-ui-kits9972c61611350
2026-09-17 03:08:43 UTCe2e-20260917-7py3wpredesign-ui-kits3e5d6f231078
2026-09-17 03:04:59 UTCe2e-20260917-sv2nzcredesign-ui-kits3e5d6f231080

Client

68 cases57 passed 4 failed 2 manual 2 retired 3 skipped by design

1A. Marketing & Public Pages

5 passed 1 retired
PassedTC-C-01Homepage loads correctly5.1s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/
  2. Scroll through the full page

Expected

  • Header (dark on the homepage): "Pax Psychology" plus nav "Stories" (→ /journal?category=Stories), "Psychologists", "Journal"; right-hand "Sign in" and "Find my match". There are no "How it works" or "Who we help" links
  • Header on scroll (desktop): tall at the very top, then as soon as you scroll it shrinks to a slim bar and turns white with dark text and a dark "Find my match" button, without the page jumping; back at the top it is dark and tall again. Sections fade up into view as you scroll (no motion with the OS "reduce motion" setting). On a phone it stays one slim bar
  • Hero: dark, text only (no photo). H1 "Shit happens. It's good to talk about it.", paragraph "Our goal is to match people with the right psychologist.", a white "Find my match" button (→ /onboarding) and a "Scroll" link down to How this works. No Medicare claim anywhere on the page
  • Sections in order:
  • "How this works": a vertical title beside a photo and one step at a time ("01." "Tell us about you", "02." "Choose your match", "03." "Talk it out"), with dots and arrows; the photo changes with each step
  • A coral band "When it's personal, you need the right person." with a "Take our 3 minute quiz" link and a "Find my match" button
  • "Breathe. There's no judgement here" beside a sideways-scrolling row of psychologist cards in green, coral and blue, each with "Book with {first name}" (→ that psychologist's profile)
  • "Journal" (vertical title) with three article cards, each with a coloured category label, and a "Read more" button (→ /journal)
  • "How we can help": "Mental Health" (yellow), "Performance" (blue) and "Wellbeing" (green) cards, each linking to its section of /our-story
  • FAQs on a blue band, white rows that open in place (lazy – may pop in a beat later)
  • "The right time is now. Take action." beside a coral panel with a photo, "Subscribe today" and a sign-up form (first name, email, "Sign up")
  • There is no client testimonial (the old Priya pull-quote is gone)
  • Cookie notice "We keep cookies to a minimum" on first visit: Pax uses a few cookies of its own to keep you signed in and to see which ads and links bring people in, "No advertising trackers.", a "privacy policy" link and a single "Got it" button
  • Footer (dark): column headings "About" (Our Story, Your Stories, Privacy policy, Terms of Use), "Support" (Find my match, Journal), "Contact" (info@paxpsychology.com.au, Get in touch, Practitioner portal) and "Subscribe" (first name, email, "Sign up"). No crisis callout, no "For business" and no "Join Pax Psychology" link
  • Footer small print "Copyright © 2026 Pax Psychology. All Rights Reserved." and an Acknowledgement of Country ("Pax Psychology acknowledges Traditional Owners of Country throughout Australia…")

Notes Check mobile at 375px: the nav collapses to a kebab menu (aria-label "Open menu"/"Close menu") whose panel adds a "Contact" link that the desktop nav does not have.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/
  2. 2. Scroll through the full page
  3. Notes. At 375px the nav collapses to a kebab menu whose panel adds Contact
Screenshot for TC-C-01
PassedTC-C-02Navigate to Our Story page2.3s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/our-story

Expected

  • Browser tab title "Our story | Pax Psychology"
  • Heading row: "Your stories" in outline (a link to /journal?category=Stories) beside the H1 "Our story"
  • Founders section: a vertical "The founders" title beside the founders photo, and the story ("Pax Psychology started when two friends…")
  • "Peace of mind over perfection." followed by a paragraph starting "These days it can be easy for us to strive for ‘perfection’…"
  • Three half-and-half blocks: "Wellbeing" (#wellbeing, green photo panel), "Performance" (#performance, blue, photo on the left), "Mental Health" (#mental-health, yellow), each with a full paragraph (for example "Wellbeing Psychology aims to improve one’s holistic management…")
  • A light blue band "We'll help find a psychologist for you." with a "Find my match" button → /onboarding

Automated run

  1. 1. Navigate to https://paxpsychology.dev/our-story
Screenshot for TC-C-02
PassedTC-C-03Navigate to For Business page2.5s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/for-business
  2. Click "Enter" with the code field empty
  3. Type any code and click "Enter"

Expected

  • H1 "Look after the people who look after the work." with nothing above it
  • Unique-code panel "Already have a unique code?" with a single input (placeholder "Enter your unique code") and an "Enter" button
  • Empty submit shows the red error "The code you entered is invalid. Please check and try again."
  • A non-empty code navigates to /psychologists?unique-code=<code>
  • Four service cards: "Employee assistance programs", "Workplace wellbeing", "Performance psychology", "Custom solutions"
  • CTA with buttons "Get in touch" (→ /contact) and "Browse psychologists"

Notes Known quirk – the code is not validated here; any non-empty string is accepted and passed through to the directory.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/for-business
  2. 2. Click “Enter” with the code field empty
  3. 3. Type any code and click “Enter”
Screenshot for TC-C-03
PassedTC-C-04Navigate to Contact page6.2s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/contact
  2. Click "Send message" with the form empty, and check the validation messages
  3. Fill in the form: Name Test User, Email address e2e+contact@paxpsychology.dev, Phone 0412 345 678, What's this about? "I'm a psychologist and want to join Pax", Message This is a staging test submission.
  4. Click "Send message"

Expected

  • H1 "Contact us" with nothing above it, the intro "We're here to help. Send us a message and we'll get back to you. We usually reply within 24 to 48 hours on business days.", the link info@paxpsychology.com.au (opens your mail app), a line linking the FAQs, and "Psychologist wanting to join? Choose “I'm a psychologist and want to join Pax” and tell us a little about your practice."
  • A red-tinted crisis note beside the form (above it on a phone): "If you're not safe right now, call Lifeline on 13 11 14 or 000…", with both numbers as call links
  • The form sits in a white card on a coral panel, headed "Send us a message" and "All fields are required unless marked optional.", with a visible sentence-case label on each field (no placeholder text, no capitals or letter-spacing): "Name", "Email address", "Phone", "What's this about? (optional)", "Message"; a collection notice linking the privacy policy sits above the button
  • "What's this about? (optional)" is a dropdown that starts on "Choose a topic" and offers "I'm looking for support", "I'm a psychologist and want to join Pax", "Billing or my account" and "Something else"; leaving it on "Choose a topic" is fine
  • Below the form, a light blue band "Looking for a psychologist?" with "Find my match" (→ /onboarding) and "Search Psychologists" (→ /psychologists)
  • Validation: focus moves to a red summary at the top of the form, "There are 4 problems with your message", listing "Name must be at least 2 characters", "Please enter a valid email address", "Phone number is required" / "Please enter a valid Australian phone number", "Message must be at least 10 characters" as links; each link jumps to its field, and the same message shows under each field. The summary shrinks, and then goes, as you fix the fields.
  • Button shows a spinner and "Sending…" while submitting
  • On success the form is replaced by "Thanks for your message." and "We've emailed you a copy of what you sent. We usually reply within 24 to 48 hours on business days.", with a "Back to the homepage" button
  • Two emails go out: Contact form (Psychologist joining Pax): Test User to support, with a "Topic" row reading "I'm a psychologist and want to join Pax" (a message with no topic is just Contact form: <name>, its row "Not chosen"), and "Thank you for contacting Pax Psychology" to the sender, which says "We usually reply within 24 to 48 hours on business days."

Notes Cloudflare Turnstile runs invisibly when a site key is configured; "Send message" stays disabled until it has issued its token (a second or so after the page loads). If verification fails the red banner reads "Verification failed. Please try again." Sending more than 5 messages from one email address in an hour shows "Too many attempts. Please try again in an hour." After a failed validation the next "Send message" goes through without tabbing out of the last field first.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/contact
  2. 2. Click “Send message” with the form empty, and check the validation messages
  3. 3. Fill in the form: Name, Email address, Phone and Message
  4. 4. Click “Send message”
  5. Email "Contact form (Psychologist joining Pax): Test User" is sent to support@paxpsychology.dev
  6. Email "Thank you for contacting Pax Psychology" is sent to e2e+contact@paxpsychology.dev
Screenshot for TC-C-04
PassedTC-C-05Privacy Policy and Terms of Use pages load1.7s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/privacy-policy
  2. Navigate to https://paxpsychology.dev/terms-of-use

Expected

  • Privacy Policy: H1 "Privacy Policy" with a "Last updated" date under it, 18 numbered sections (1. Introduction … 18. Contact Us, including 11. Service providers and overseas disclosure), entity named as "PaxAnimi Platform Pty Ltd (ACN 104 410 233) as trustee for PaxAnimi Platform Unit Trust, trading as Pax Psychology"
  • Terms: H1 "Pax Psychology Terms and Conditions of Use", 21 numbered sections including 7. Cancellation Policy (24-hour window) and 6. Fees
  • Both pages readable with no broken layout

Notes Both pages are linked from the footer's "About" column ("Privacy policy", "Terms of Use") and from the booking consent checkbox.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/privacy-policy
  2. 2. Navigate to https://paxpsychology.dev/terms-of-use
Screenshot for TC-C-05
RetiredTC-C-06Newsletter signup from homepage footer–

Retired by the 2026-09-03 script revision: the homepage and footer no longer contain a newsletter form. The only signup on the site is the strip at the foot of /journal, covered by TC-C-27.

1B. Find Your Match (matching quiz + booking wizard)

3 passed
PassedTC-C-07Complete the full match wizard15.8s

Test script

Preconditions At least one bookable psychologist (i.e. test@paxpsychology.dev). Clear localStorage first if you have a part-finished run.

Steps

  1. Navigate to https://paxpsychology.dev/onboarding
  2. Confirm the chrome: a back chevron and the "Pax Psychology" brand link in a tall bar (it shrinks once you scroll, like the site header), on a pale blue-grey page, with no step counter, progress bar or "Save & exit". A row of dots at the bottom (the current one a short coral bar) tracks progress, with black up/down arrow buttons at the bottom right ("Back" and "Next"). The same dots carry on through availability, the shortlist, the time and the details steps, where the arrows are "Previous step" and "Next step". On a phone the dots and left/right arrows sit above the question. Click the back chevron: a "Leave for now?" dialog says your answers are saved. Click "Keep going" to stay (or "Leave" goes to the homepage)
  3. Welcome. H1 "When it's personal, you need the right person.", with a "data privacy policy" link, "Press Enter ↵" and "Takes 3+ min" notes. Click "Let's go!" (or press Enter)
  4. Urgency. H1 "How important is it that you talk to someone?". The lede starts "Pax Psychology is not an emergency service." and links Emergency Services (000) and Lifeline (131114). The three answers are coloured rows (coral, yellow, green), each with a numbered key. Click "As soon as" (or press 2; single-choice answers move on as soon as they are clicked; there is no Continue button)
  5. First time. H1 "Is this your first time speaking with a psychologist?". Click "Yes"
  6. Name. H1 "What should we call you?". "Ok" is disabled until something is typed. Type Test Client and click "Ok". The next screen reads "Hi Test, we’re so pleased that you’re here."; click "Continue"
  7. Identity and status. "How do you identify?": click "Male". "What is your status?": click "Single"
  8. Date of birth. H1 "What's your date of birth?", with Day, Month and Year boxes. First type a date 10 years ago, then change it to 17 / 05 / 1990 and click "Ok"
  9. Area. H1 "Which area can we help you with?" with three cards: "Mental Health Psychology", "Performance Psychology", "Wellbeing Psychology". Click "Mental Health Psychology"
  10. Tags. H1 "Do any of these tags reflect your Mental Health needs?". Select "Anxiety" (it turns coral with a ×) and click "Ok" (tags are optional; "Skip" is offered while none are chosen)
  11. Motivation. H1 "What’s your main motivation for speaking to someone?". Type a sentence and click "Ok" ("Skip" is offered while the box is empty)
  12. Preferences. "Who would you prefer to talk to?": click "Either". "How much are you hoping to spend per session?": click "Don’t mind"
  13. Availability. The dots move on past the quiz. H1 "When are you usually free?". Pick one chip: "Weekdays, daytime", "Weekday evenings", "Weekends", or "I'm flexible". Click "See my matches" - Confirm there is no video-vs-in-person question anywhere; the lede states sessions are by video
  14. Shortlist. On a mint page. H1 "Thanks Test, here’s N people we think can help" ("person" when there is one) on the left, beside a fanned stack of psychologist cards. Each card shows a match percentage; the front card has a "Choose" button that becomes "Chosen". The dots and arrows under the stack flip through the cards, and clicking a card behind brings it forward and chooses it. Pick one, then click "Pick a session time"
  15. Time slot. H1 "When suits for your first session?". Wait for the calendar, pick a slot, then click "Continue to details"
  16. Details + payment. H1 "Your details, and you're booked.". "Full name" is already filled in with Test Client from the quiz. Fill "Email" and "Mobile". Tick "I agree with the Terms of Use and Privacy Policy". Click "Continue to payment", then complete the Stripe card form with 4242 4242 4242 4242 / 12/30 / 123 and click "Save card and confirm booking"
  17. Confirmation. Verify the success screen
  18. Crisis screen. Clear localStorage, reopen /onboarding, click "Let's go!" and this time click "Urgent". Then click "Continue"

Expected

  • The quiz shows one question per screen and the dots track it: 17 dots, or 18 once "Urgent" adds the crisis screen (13 or 14 questions, then the four booking steps). After the last question the coral dot carries on along the same row. Screen readers hear "Question n of 13" and then "Step 2 of 5" to "Step 5 of 5"
  • "As soon as" and "No urgency" go straight to the first-time question; only "Urgent" shows the crisis screen
  • Under-18 block: a date of birth less than 18 years ago (on the Sydney calendar) replaces "Ok" with the "Sorry, you need to be 18 or over to use Pax" panel (Kids Helpline 1800 55 1800, headspace, Lifeline 13 11 14, 000; see TC-C-93), and the "Next" arrow stays disabled (pressing Enter does not move on either); 1990 clears the panel and brings "Ok" back. A date that doesn't exist (31 / 02) reads "Check your date of birth."
  • The shortlist heading starts "Thanks Test," and names how many matches there are; matches favour the chosen area and tags, the preferred gender and the budget
  • On the details step, with name, email and mobile filled but the terms box unticked, the payment area reads "Agree to the Terms of Use and Privacy Policy to continue to payment." instead of the "Continue to payment" button
  • The payment block reads "Nothing comes out today. Need to move it? Reschedule or cancel free up to 24 hours before. Cancelling within 24 hours of the session is charged the full session fee." and the summary row is "Charged after your session" (the same payment step as booking from a profile, TC-C-17)
  • No Medicare rebate wording anywhere in the quiz or booking steps (no rebate line, amount or "Medicare then refunds" sentence), even when the session type has a rebate set: Pax makes no rebate claims or promises
  • Confirmation screen: H1 "You're booked.", a "Confirmed. <First> is expecting you." badge, summary rows "Your psychologist" / "First session" / "Charged after your session", and the button "View my appointments" → /dashboard/appointments (the booked screen shared with booking from a profile)
  • A confirmation email arrives at the address entered
  • The appointment appears in the psychologist's Schedule, and on their New-clients screen the client shows their age from the date of birth, the chosen tags, the motivation, and a line with the preferred psychologist gender and budget (when "Don't Mind" wasn't chosen)
  • Crisis screen (step 18): H1 "Help is only a phone call away", lede "If you need help urgently, please call one of the below numbers right away.", and three call buttons "Call: 000" (tel:000), "Call: Lifeline" (tel:131114) and "Call: Beyond Blue" (tel:1300224636). The third of 18 dots is the coral one. "Continue" moves on to "Is this your first time speaking with a psychologist?"

Notes "Back" (the up arrow, or left arrow on a phone) on any quiz screen returns to the previous question with its answer kept; "Back" on "When are you usually free?" returns to the budget question. The "Change" links on the time and details steps jump back to the shortlist / slot picker. Stripe failures surface as "Please check your card details." or "We couldn't confirm your card."

Automated run

  1. 1. Navigate to https://paxpsychology.dev/onboarding
  2. 2. Confirm the chrome: back chevron, brand link and progress dots, no “Save & exit”; the chevron asks before leaving
  3. 3. Welcome. Click “Let’s go!”
  4. 4. Urgency. Click “As soon as”
  5. 5. First time. Click “Yes”
  6. 6. Name. Type “Test Client”, click “Ok”, then “Continue” on the greeting
  7. 7. Identity and status. Click “Male”, then “Single”
  8. 8. Date of birth. Try a date 10 years ago, then type 17 / 05 / 1990 and click “Ok”
  9. 9. Area. Click “Mental Health Psychology”
  10. 10. Tags. Select “Anxiety”, then click “Ok”
  11. 11. Motivation. Type a sentence, then click “Ok”
  12. 12. Preferences. Click “Either”, then “Don’t mind”
  13. 13. Availability. Pick a chip, then click “See my matches”
  14. 14. Shortlist. Pick a psychologist, then click “Pick a session time”
  15. 15. Time slot. Pick a slot, then “Continue to details”
  16. 16. Details + payment. Fill the details, agree to the terms and save the card
  17. 17. Confirmation. Verify the success screen
  18. 18. Crisis screen. Start a fresh quiz and click “Urgent”
  19. Email "Appointment Confirmation" is sent to e2e+e2e-20261025-hb0hjc-c07@paxpsychology.dev
Screenshot for TC-C-07
PassedTC-C-08Match wizard progress persistence4.5s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/onboarding
  2. Answer the quiz as in TC-C-07 as far as "What's your date of birth?" ("Question 8 of 13") and type 17 / 05 / 1990, but do not click "Ok"
  3. Close the tab, then reopen https://paxpsychology.dev/onboarding. Click "Back" (the up arrow) a few times
  4. Repeat, but this time finish the quiz, pick an availability chip and get as far as the shortlist before closing the tab

Expected

  • Reopening mid-quiz puts you back on the same question ("What's your date of birth?", the eighth dot) with 17 / 05 / 1990 still typed; going "Back" shows your earlier answers still selected ("Single", "Male") and your name still filled in
  • Only the quiz and availability persist. After reaching the shortlist or later, reopening drops you back to "When are you usually free?" with your chip still selected; the shortlist, slot and details are never stored
  • Progress lives in localStorage under the key pax-match-wizard-v2 ({ step, quiz, quizIndex, when }); it is cleared once payment succeeds. The old pax-match-wizard key is ignored

Notes Clear that key in DevTools to start fresh.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/onboarding
  2. 2. Answer the quiz as far as “What’s your date of birth?” and type 17 / 05 / 1990, without clicking “Ok”
  3. 3. Close the tab, then reopen https://paxpsychology.dev/onboarding
  4. 4. Repeat, but get as far as the shortlist before closing; only the quiz and availability persist
Screenshot for TC-C-08
PassedTC-C-08aEmail validation on the details step (new)3.4s

Test script

Preconditions Reached the details step ("Your details, and you're booked.") of the wizard

Steps

  1. Type notanemail into "Email" then click elsewhere (blur the field)
  2. Correct it to a valid address and fill "Mobile"
  3. Tick "I agree with the Terms of Use and Privacy Policy"

Expected

  • "Full name" is already filled in with the name given in the quiz
  • On blur, the inline error "Enter a valid email address" appears; it then updates live on each keystroke until the address is valid
  • With any of name / email / mobile still incomplete, the gate text reads "Add your name, email and mobile above to continue to payment." instead of the "Continue to payment" button
  • Once the details are complete but the terms box is unticked, the gate text reads "Agree to the Terms of Use and Privacy Policy to continue to payment."
  • Ticking the box shows the "Continue to payment" button

Automated run

  1. Precondition. Reach the details step (Step 5 of 5) of the wizard
  2. 1. Type `notanemail` into “Email” then click elsewhere (blur the field)
  3. 2. Correct it to a valid address – the error updates live on each keystroke
Screenshot for TC-C-08a

1C. Psychologist Directory

2 passed
PassedTC-C-09Browse the directory and use the desktop filters12.6s

Test script

Preconditions At least one psychologist profile exists

Steps

  1. Navigate to https://paxpsychology.dev/psychologists on a desktop-width window (1024px or wider)
  2. Confirm the H1 "Search psychologists" with a sliders icon at its right, and three columns below: "Filter by", "Search results" and "Popular choices"
  3. Search using the box (placeholder "Enter psychologist name, location, focus area or issue") – try a psychologist's name, then a location
  4. In "Filter by", open the "Gender" row and tick an option
  5. Open the "Issue" row and tick an issue
  6. Open the "Availability" row and tick "Taking clients now"
  7. Change the sort dropdown from "Best match" to "Lowest rate"
  8. Click "Clear all" in the chip row above the columns
  9. Shortlist a psychologist with the + icon on their row, then remove them
  10. Scroll past the directory

Expected

  • No eyebrow above the H1. The search field is full width under it
  • Results header reads "Search results", with "<n> psychologists matched" (no Medicare claim) and the sort dropdown on the right
  • "Filter by" rows, in order, each an accordion with a plus icon (a minus when open) and a grey rule under it: "Gender" (Woman, Man, Non-binary or other, Prefer not to say), "Focus area" (Mental Health, Performance, Wellbeing), "Issue", "Session type", "Availability" ("Taking clients now") and "Name" (a text field that searches by name). Every option is a small square checkbox that turns coral with a white tick when ticked, and you can tick more than one gender. There is no Location filter. Rows holding an active filter start open
  • Search matches psychologist name, bio, location, qualifications and speciality (case-insensitive, 300 ms debounce)
  • Every control applies immediately – there is no Apply button – and the controls dim while the new results load
  • Active filters show as coral chips with an X above the columns; "Clear all" resets them while keeping the search term
  • Empty state: "There are no matching search results. Please try a different keyword." with a "Clear all filters" link
  • Result rows are compact white bars: photo, name, location (plus "Waitlist" and the next free slot when known), a +/- shortlist icon and a black "Book" button
  • Shortlisting adds a "Shortlisted" group above "Search results" (removed with the − icon); the shortlist is kept in the browser between visits
  • "Popular choices" cards show a photo, name, title, a full-width "Book appointment" button and a "Shortlist" toggle. Arriving from the quiz (a ?questionnaire= link) the column reads "Your matches" with a green tick and shows the top matches instead
  • More than 20 results page with small square page buttons (current filled dark) and arrows under the list
  • Below the directory: the "It's normal" journal carousel, the sky "When it's personal, you need the right person." band with "Find my match", the journal preview ("Journal") and "The right time is now. Take action."

Notes A psychologist's name (or photo) opens their Practitioner page directly; "Book" goes straight to booking. There is no quick-view drawer.

Automated run

  1. 1. Navigate to /psychologists on a desktop-width window
  2. 2. Confirm the H1 “Search psychologists” and the three columns
  3. 3. Search using the box – try a psychologist’s name, then a location
  4. 4. Check the “Filter by” rows, then open “Gender” and choose an option
  5. 5. Open “Issue” and tick an issue
  6. 6. Open “Availability” and tick “Taking clients now”
  7. 7. Change the sort dropdown from “Best match” to “Lowest rate”
  8. 8. Click “Clear all” in the chip row above the columns
  9. 9. Shortlist a psychologist with the + icon, then remove them
  10. 10. Scroll past the directory
Screenshot for TC-C-09
PassedTC-C-10View an individual psychologist profile page2.5s

Test script

Preconditions At least one psychologist profile exists

Steps

  1. From /psychologists, click a psychologist's name (it opens the Practitioner page directly; there is no quick-view drawer), or go straight to /psychologists/[psychologistSlug] (the slug is made from the name without the title, e.g. /psychologists/emily-thompson)

Expected

  • The Practitioner page: a back chevron in the header ("Back to all psychologists", to /psychologists), portrait, H1 = psychologist name, title and location, any ticked highlights, and a "Shortlist" toggle that becomes "Shortlisted"
  • A "Bio" section with the full bio (paragraphs and bullet lists), beside "Availability" (weekly hours such as "Weekdays 9am–5pm", a "Taking clients" or "Waitlist" pill and next-available slot pills), "Fee" ("$<fee> per session", with copy saying the card is saved securely when you book and is only charged after the session), "Details" ("Telehealth: …", "In person: …") and "Specialities" chips with a "See more" toggle when the list is long. No Medicare copy in these sections
  • Primary CTA "Book appointment" → /book/[psychologistSlug] (on a phone it is a black bar pinned to the bottom of the screen while you scroll the profile)
  • A "Discover other psychologists" band whose cards have "Book appointment" buttons and a "Shortlist" toggle, with a "Search psychologists" button
  • A closing "The right time is now. Take action." block with "Find my match"
  • An unknown psychologist slug returns a real 404

Notes Signed in as an admin or psychologist you see "As a staff member, please create appointments through the dashboard." instead of the CTA.

Automated run

  1. 1. From /psychologists, click a psychologist['’]s name
  2. An unknown psychologist slug returns a real 404
Screenshot for TC-C-10

1D. Authentication

7 passed 2 manual
PassedTC-C-11Login with email/password2.6s

Test script

Preconditions client@paxpsychology.dev exists

Steps

  1. Navigate to https://paxpsychology.dev/auth/login
  2. Check the page copy
  3. Enter client@paxpsychology.dev and Test123!
  4. Click "Sign in"

Expected

  • Desktop: a yellow photo panel on the left with the "Pax Psychology." wordmark (the display face with a coral full stop, linking home), the headline "Shit happens. It's good to talk about it." and, under it, a shield icon with "Private and secure. Your sessions stay yours.". There is no eyebrow above the headline. Mobile: the photo sits above the form with the wordmark top left and a close (X) button back to the homepage top right, and no headline
  • H1 "Sign in"
  • Visible labels "Email" and "Password" above the fields (the email field's placeholder is you@email.com); the password field has a show/hide toggle
  • Button "Sign in", showing "Signing in…" while pending
  • Below it, checkbox "Remember me" (ticked by default) and a "Forgot password" link, then "Don't have an account? Create an account"
  • An "or" divider, then "Continue with Google / Apple / Microsoft"
  • Footer "By continuing you agree to Pax Psychology's Terms and Privacy Policy."
  • Redirected to /dashboard, which loads the client portal Home (see TC-C-20)

Notes The register, forgot/reset password, check-email, verification, error, two-step sign-in and sign-out pages share the same photo panel (wordmark, headline and trust line, no eyebrow). Two-step verification setup and its gate swap the headline for "Your sessions stay between you and us.". The "Login with Google" button labels are gone.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/auth/login
  2. 2. Check the page copy
  3. 3. Enter client@paxpsychology.dev and Test123!
  4. 4. Click “Sign in”
Screenshot for TC-C-11
ManualTC-C-12Login with Google OAuth–

Google's hosted consent screen cannot be driven from Playwright (bot detection plus a real Google account and 2FA). Verify by hand: /auth/login → “Continue with Google” → land on /dashboard.

Test script

Preconditions A Google account linked to a staging user

Steps

  1. Navigate to https://paxpsychology.dev/auth/login
  2. Click "Continue with Google" and complete the OAuth flow

Expected

  • Redirected to /dashboard after successful Google authentication.

Notes The social buttons are "Continue with Google", "Continue with Apple" and "Continue with Microsoft", separated from the form by an "or" divider. /auth/register offers only "Sign up with Google".

ManualTC-C-13Login with Microsoft OAuth–

Microsoft Entra's hosted sign-in cannot be driven from Playwright (bot detection plus a real tenant account). Verify by hand: /auth/login → “Continue with Microsoft” → land on /dashboard.

Test script

Preconditions A Microsoft account linked to a staging user

Steps

  1. Navigate to https://paxpsychology.dev/auth/login
  2. Click "Continue with Microsoft" and complete the OAuth flow

Expected

  • Redirected to /dashboard after successful Microsoft authentication.

Notes Signing in with a provider whose email already belongs to a password account shows "That email's already linked to a different way of signing in. Try the method you first signed up with."

PassedTC-C-14Forgot password flow4.0s

Test script

Preconditions An account with email/password credentials

Steps

  1. From /auth/login, click "Forgot password" to reach /auth/forgot-password
  2. Enter the account email and click "Send reset link"
  3. Open the reset email and follow the link to /auth/reset-password?token=…
  4. Enter a new password twice and click "Save & sign in"
  5. Log in with the new password
  6. Separately, open /auth/reset-password with no ?token

Expected

  • Forgot page: back link "Back to sign in", H1 "Forgot your password?", sub "No worries. Pop in your email and we'll send you a link to set a new one.", button "Send reset link" ("Sending…" while pending)
  • Success state: H1 "Check your email." with "We've sent a reset link to your inbox. Click it to set a new password – it expires in 30 minutes." and "Didn't get it? Check spam, or try again."
  • Reset page: H1 "Let's get you back in.", sub "Choose a new password for your account.", fields "New password" (with a strength meter) and "Confirm new password", button "Save & sign in"
  • Landing back on login shows the banner "Password reset successful. Sign in with your new password."
  • With no token: H1 "Invalid reset link." and a "Request a new link" link

Notes The same route is linked as "Change password" from Settings › Account (TC-C-25).

Automated run

  1. 1. From /auth/login, click “Forgot password” to reach /auth/forgot-password
  2. 2. Enter the account email and click “Send reset link”
  3. Email "Reset your Pax Psychology password" is sent to client@paxpsychology.dev
  4. 3–5. MANUAL: open the reset email, follow the link, set a new password and sign in with it
  5. 6. Separately, open /auth/reset-password with no ?token
Screenshot for TC-C-14
PassedTC-C-57Reset a password end to end, and other sessions end (new)13.9s

Test script

Preconditions resets@paxpsychology.dev (Reese Resets), whose password the acceptance seeder puts back to Test123! every run, signed in in a second browser. The reset email's link carries a token the email log hides, so the automated case reads the token from the database (verification_tokens, identifier reset:<email>)

Steps

  1. On /auth/forgot-password, request a reset for the account, and open the link from the email
  2. Enter a new password twice and click "Save & sign in"
  3. Sign in with the new password; sign out and try the old one
  4. Reload /dashboard in the second browser
  5. Open the same reset link again and try to set another password

Expected

  • Step 1: "Check your email." and the email "Reset your Pax Psychology password"; the link opens "Let's get you back in."
  • Step 2: back on /auth/login with "Password reset successful. Sign in with your new password."; the email "Your Pax Psychology password's been changed"
  • Step 3: the new password works; the old one gets "That email and password didn't match. Have another go, or reset your password below."
  • Step 4: the second browser is sent to /auth/login (resetting the password ended every other session)
  • Step 5: "Invalid or expired reset token." (a link works once)

Automated run

  1. Precondition. Sign in as the client in a second browser
  2. 1. Request a reset, and read the link's token
  3. Email "Reset your Pax Psychology password" is sent to resets@paxpsychology.dev
  4. 2. Open the link, set a new password twice, click "Save & sign in"
  5. Email "Your Pax Psychology password's been changed" is sent to resets@paxpsychology.dev
  6. 3. Sign in with the new password; then try the old one
  7. 4. Reload the second browser
  8. 5. Use the same reset link again
Screenshot for TC-C-57Screenshot for TC-C-57
PassedTC-C-58Verify an email end to end, and the first sign-in is announced (new)18.9s

Test script

Preconditions None. Register a new address (the automated case uses an e2e+…@paxpsychology.dev address and reads the verification token from the database, identifier verify:<email>)

Steps

  1. Register on /auth/register and open the link in "Verify your email address for Pax Psychology"
  2. Click "Sign in" and sign in
  3. Sign out and sign in again in the same browser
  4. Open the same verification link again

Expected

  • Step 1: "You're all set." with "Your email is confirmed. Sign in and let's get you started."; the account is verified
  • Step 2: the client Home ("Good to see you."), and the email "New sign-in to your Pax Psychology account"
  • Step 3: no second "New sign-in" email: the alert is only for a browser the account hasn't signed in from before
  • Step 4: "That link didn't work."

Automated run

  1. 1. Register, and read the verification link's token
  2. Email "Verify your email address for Pax Psychology" is sent to e2e+e2e-20261025-hb0hjc-c58@paxpsychology.dev
  3. 2. Open the link
  4. 3. Click "Sign in" and sign in
  5. Email "New sign-in to your Pax Psychology account" is sent to e2e+e2e-20261025-hb0hjc-c58@paxpsychology.dev
  6. 4. Sign out and sign in again from the same browser
  7. 5. Open the same verification link again
Screenshot for TC-C-58
PassedTC-C-15Login with invalid credentials2.0s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/auth/login
  2. Enter invalid@example.com / wrongpassword and click "Sign in"

Expected

  • The user stays on the login page and sees "That email and password didn't match. Have another go, or reset your password below."
  • No hint is given as to whether the email exists

Automated run

  1. 1. Navigate to https://paxpsychology.dev/auth/login
  2. 2. Enter invalid@example.com / wrongpassword and click “Sign in”
Screenshot for TC-C-15
PassedTC-C-16Sign out7.1s

Test script

Preconditions Logged in as the client

Steps

  1. From any dashboard page, click the user chip at the bottom of the left sidebar
  2. Confirm the menu contains "Settings" and "Sign out"
  3. Click "Sign out"
  4. Log back in, then go to /dashboard/settings?section=account and use the "Sign out" button in the red "Account" panel

Expected

  • The sidebar chip menu is a new sign-out route added in this redesign; the label changes to "Signing out…" while pending and you land back on /
  • Settings › Account also offers "Sign out" ("Sign out of Pax on this device.") and, below it, "Delete account"

Notes Clients have no separate "Account actions" settings section – sign-out and delete live in the Account section's red panel. Psychologists and admins get a dedicated "Account actions" section instead.

Automated run

  1. 1. From any dashboard page, click the user chip at the bottom of the left sidebar
  2. 2. Confirm the menu contains “Settings” and “Sign out”
  3. 3. Click “Sign out”
  4. 4. Log back in, then use the “Sign out” button in the red “Account” panel of Settings › Account
Screenshot for TC-C-16
PassedTC-C-39Sign-in can only go through the throttled login (new)1.1s

Test script

Preconditions None. Do this signed out. Use a made-up email (for example nobody-<today>@example.com) so no real account is throttled.

Steps

  1. Navigate to https://paxpsychology.dev/auth/login/mobile
  2. POST the made-up email and a wrong password (JSON email, password) straight to /api/auth/sign-in/email, and to the old Auth.js /api/auth/callback/credentials, without following any redirect
  3. Optional, and only where rate limits are on (they are always on in production): sign in on /auth/login with the made-up email and a wrong password until it is refused

Expected

  • Step 1: the standard 404 page. The old standalone mobile password page is gone, with no redirect; the app signs in through /auth/login?mobile=true
  • Step 2: both answer a plain 404 (no redirect) and set no session cookie. Password sign-in only goes through the login form's server action, which is rate limited
  • Step 3: after 10 attempts in 15 minutes the sign-in form shows "Too many attempts. Please try again in 15 minutes." for that email

Notes Step 3 also counts towards the 30-per-15-minutes limit for your IP address, so don't run it more than once from the same network. Every failed attempt is written to the auth audit log (auth_audit_logs) with the IP and browser.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/auth/login/mobile
  2. 2. POST a wrong password straight to /api/auth/sign-in/email and the old Auth.js route
Screenshot for TC-C-39

1E. Booking Flow

17 passed
PassedTC-C-75Rebook a past session (new)12.1s

Test script

Preconditions Logged in as client@paxpsychology.dev (past sessions with test@paxpsychology.dev and a saved default card)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments?tab=past and click "Book again" on a past session; note its session type
  2. In the card that opens under it, click "More times or another type"
  3. Read the session type step, then click "Pick a time"
  4. Pick a day at least two days out and a time, then click "Continue"
  5. Keep the default card and click "Confirm booking"
  6. Find the new session on the Upcoming tab and cancel it (it is more than 24 hours away, so this is free)

Expected

  • Step 2 opens /dashboard/book?again=<session id> inside the dashboard, with Sessions highlighted in the sidebar: "Book with <First>." and the steps "Session type, Time, Confirm"
  • The session type starts on the same type as the session being rebooked. After an initial session (a title with "Initial", "Intake" or "First") it starts on the psychologist's standard follow-up type (a title with "Follow-up", then "Standard", "Regular"/"Ongoing", or a plain "Session" / "Therapy session" / "Consultation", in any case), badged "<First>'s usual follow-up", with "Picked for you: …". With no such type it stays on the same type. test@ has no follow-up type, so after an Initial consultation it stays on Initial consultation
  • The time step lists only days with open, future times, a week at a time with "Pick a date"; the summary beside it fills in "When"
  • The confirm step: "Check and book.", "Your details", a "Charged after your session" row with the fee, the saved cards (the default preselected, marked "Default") plus "Use a new card", and "Cancelling within 24 hours of the session is charged the full session fee."
  • "You're booked." on success. The session is a normal booking: card on file, no open invoice, and it is charged when the psychologist completes it (TC-P-10)

Notes Until 25 Oct 2026 this went through a Rebook dialog. The page uses the public booking flow's card step and booking action.

Automated run

  1. 1. Open the Past tab and click “Book again” on a session
  2. 2. “More times or another type”
  3. 3. The session type it starts on, then “Pick a time”
  4. 4. Pick a time two or more days out and “Continue”
  5. 5. Keep the default card and “Confirm booking”
  6. 6. The session is on the Upcoming list (then cancel it)
Screenshot for TC-C-75
PassedTC-C-110Home suggests a time and books it in one tap (new)7.4s

Test script

Preconditions Logged in as suggested@paxpsychology.dev (nothing booked, a completed Standard session with rebooks@paxpsychology.dev last week, a saved 4242 card)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard
  2. Read the header and the dark card
  3. Click "Book <Day D Mon>, <h:mm am>"
  4. Go to Sessions, Upcoming

Expected

  • The header reads "No sessions booked. Here's a time that might suit."
  • The dark card reads "No session booked yet." and "Rory's next free time for a Standard session:", then Rory's photo or initial, the time as "<Day D Mon>, <h:mm am>" and "50 minutes on Google Meet, $220 after the session, paid with Visa •••• 4242". Below it: the "Book <time>" button, "See more times" (the time step of /dashboard/book for Rory's Standard session) and "Free to move or cancel up to 24 hours before."
  • The suggestion is the usual session type with the psychologist seen last, at their next free time
  • Booking shows "You're booked for <time>." and Home then shows the session as the next one. Sessions, Upcoming lists the Standard session with Rory at that time, on the saved card, with no open invoice
  • With nothing booked, Sessions, Upcoming reads "Pick a time that suits and you're set. Rory has times free from <Weekday D Month>."

Notes The session is usually inside 24 hours, so the case does not cancel it. The seeder removes it on the next run.

Automated run

  1. 1. Open Home
  2. 2. Read the header and the dark card
  3. 3. Click “Book <time>”
  4. 4. The session is on Sessions, Upcoming
Screenshot for TC-C-110
PassedTC-C-111Book again in one tap keeps the type, or picks the follow-up after an initial session (new)8.0s

Test script

Preconditions Logged in as bookagain@paxpsychology.dev (a completed Initial consultation and a completed Standard session with rebooks@paxpsychology.dev, nothing booked, a saved 4242 card)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments?tab=past
  2. Click "Book again" on the Standard session
  3. Close the card, then click "Book again" on the Initial consultation
  4. Pick the third time and click "Book <Day D Mon>, <h:mm am>"
  5. Go to the Upcoming tab

Expected

  • The card opens under the session, not in a dialog, and the button shows as pressed
  • On the Standard session: "Another Standard session with Rory?" and "Same type as this session. Rory's next free times: pick one and you're booked."
  • On the Initial consultation: "A Standard session with Rory?" and "After an initial session we start with Rory's usual follow-up. Rory's next free times: pick one and you're booked."
  • Three time pills, the first picked (ochre). The line under them reads "Visa •••• 4242, $220 after the session. Free to move up to 24 hours before."
  • Booking shows "You're booked." with "Standard session with Rory, <time>. We've sent a confirmation, and you'll get the video link before it starts." and a Done button
  • Upcoming lists the new Standard session with Rory at that time

Notes The seeder removes the booking on the next run. A client with no saved card sees "Add a card and book", which opens /dashboard/book on the confirm step for that time. "More times or another type" opens it on the session type step (TC-C-75).

Automated run

  1. 1. Open Sessions, Past
  2. 2. “Book again” on the Standard session
  3. 3. “Book again” on the Initial consultation
  4. 4. Pick the third time and book it
  5. 5. The new session is on Upcoming
Screenshot for TC-C-111
PassedTC-C-112An unpaid session blocks booking from the dashboard (new)5.1s

Test script

Preconditions Logged in as owes@paxpsychology.dev (a completed Standard session with rebooks@paxpsychology.dev whose charge was declined)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard
  2. Read the dark card
  3. Navigate to https://paxpsychology.dev/dashboard/appointments?tab=past and click "Book again" on the session
  4. Navigate to https://paxpsychology.dev/dashboard/book

Expected

  • Home still names Rory's next free time, but in place of the "Book <time>" button the card shows "Please pay your last session first" with "Update payment method" (to Settings, payment methods)
  • The Book again card shows the same notice, and no times or Book button
  • /dashboard/book shows "Please pay for your last session first." in place of the steps, with the session, "$220.00", "We'll charge Visa •••• 4242, your default card.", "Pay $220 and keep booking" and "Use a different card" (Settings). Don't pay: it changes the fixture
  • Nothing is booked

Notes Paying from Settings lifts the block (TC-C-38).

Automated run

  1. 1. Open Home
  2. 2. Read the dark card
  3. 3. “Book again” on the session
  4. 4. Open /dashboard/book
Screenshot for TC-C-112
PassedTC-C-113Book a follow-up from the session page (new)9.7s

Test script

Preconditions Logged in as bookagain@paxpsychology.dev (a completed Initial consultation and a completed Standard session with rebooks@paxpsychology.dev, a saved 4242 card)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments?tab=past and open the Initial consultation
  2. Click "Book a follow-up"
  3. Read the session type step and click "Pick a time"
  4. Pick the first time and click "Continue"
  5. Keep the default card and click "Confirm booking"

Expected

  • Step 2 opens /dashboard/book?again=<session id>: "Book with Rory.", "Three quick steps. Nothing is charged until after your session." and "Back to sessions"
  • "Which session would you like?" lists Initial consultation and Standard session with their length, video app and fee. Standard session is picked and badged "Rory's usual follow-up", under "Picked for you: your last session was an Initial consultation, so we start with Rory's usual follow-up. Change it if you like."
  • "Your booking" beside it: Dr Rory Rebooks, Session Standard session, When "Pick a time", How "50 minutes on Google Meet", Fee "$220 after the session"
  • The time step: "When suits?", a week of day groups with "Pick a date", "Times are in your time zone (Sydney)."; picking a time fills in When
  • The confirm step shows the default card picked; Confirm booking lands on /dashboard/book?booked=<id>: "You're booked." with Rory, the Standard session, the time and "$220 after the session", and "View my appointments"
  • Sessions, Upcoming lists it

Notes The seeder removes the booking on the next run.

Automated run

  1. 1. Open the Initial consultation
  2. 2. “Book a follow-up”
  3. 3. The session type step
  4. 4. Pick the first time and “Continue”
  5. 5. “Confirm booking” with the default card
Screenshot for TC-C-113
PassedTC-C-114Book with a different psychologist, or someone new (new)11.6s

Test script

Preconditions Logged in as twopsychs@paxpsychology.dev (a Standard session with rebooks@ three weeks back and an Initial consultation with second@ last week, nothing booked, a saved 4242 card)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments and click "Book a session"
  2. Pick "Someone new" and click "Continue", then go back
  3. Pick Dr Rory Rebooks and click "Continue", then "Pick a time"
  4. Pick the first time, click "Continue", then "Confirm booking"
  5. Navigate to https://paxpsychology.dev/dashboard/my-psychologist

Expected

  • Step 1 opens /dashboard/book: "Book a session.", "With Sam, or with someone new." and "Who would you like to see?": Dr Sam Second ("Your psychologist, 1 session since <Month>", picked), Dr Rory Rebooks ("Last session <D Mon>, 1 session in all") and "Someone new"
  • Someone new shows the three steps, "Find my match" (to /onboarding), "Browse all psychologists instead", and "Seeing someone new doesn't end things with Sam."
  • Rory's type step starts on Standard session (the same type as last time)
  • Booking with Rory works as in TC-C-113, and doesn't touch anything with Sam
  • Your psychologist now shows Rory (seen most recently, counting the new booking), with "Book with Rory", and "Your other psychologists" lists Dr Sam Second with "Book" and "History". "Want to try someone new?" links to /dashboard/book?new=1

Notes The match quiz doesn't yet bring a signed-in client back to /dashboard/book. The seeder removes the booking on the next run.

Automated run

  1. 1. Sessions, “Book a session”
  2. 2. “Someone new”, then back
  3. 3. Dr Rory Rebooks, then “Pick a time”
  4. 4. Book the first time
  5. 5. Your psychologist
Screenshot for TC-C-114
PassedTC-C-115Reschedule a session on the booking page (new)8.2s

Test script

Preconditions Logged in as movesagain@paxpsychology.dev (two Standard sessions with rebooks@: one three working days out, one inside 24 hours)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments and click "Reschedule" on the later session
  2. Pick the third time and click "Move my session"
  3. Open the session inside 24 hours and look for Reschedule; then navigate to https://paxpsychology.dev/dashboard/book?move=<its id>

Expected

  • Step 1 opens /dashboard/book?move=<id>: "Move your session", "Free to move up to 24 hours before.", Rory's card with "Standard session, 50 minutes. Now booked <time>", "Pick a new time." and the same week-by-week time picker. "Your session" beside it: Now booked, New time ("Pick a time" until one is picked) and Fee "No change". "Cancel this session instead" is offered
  • Moving shows "Moved to <time>." and opens the session, now at the new time. Nothing is charged
  • Inside 24 hours there is no Reschedule button, and the move page reads "This session starts in under 24 hours.", "It's too close to move here. Contact Rory and they can change it for you.", the session, "Cancel session" and "Cancelling now means the full $220 session fee is charged."

Notes The Reschedule dialog is gone for clients; psychologists keep it on the Schedule. The seeder puts both sessions back on the next run.

Automated run

  1. 1. “Reschedule” on the later session
  2. 2. Pick the third time and “Move my session”
  3. 3. The session inside 24 hours
Screenshot for TC-C-115
PassedTC-C-17Complete a full booking (card saved, charged later)14.6s

Test script

Preconditions A psychologist with more than one session type, availability and Stripe Connect (use test@paxpsychology.dev). Do this signed out first.

Steps

  1. From a psychologist profile click "Book appointment". On "Which session would you like?" choose "Initial consultation" and click "Pick a time". You reach /book/[psychologistSlug]/[appointmentTypeSlug], both made from names, never ids (e.g. /book/emily-thompson/initial-consultation)
  2. Time ("When suits you?"): read the week ("Mon 26 October to Sun 1 November"), then pick a time at least three days out and click "Continue to details"
  3. Your details ("Your details."): fill First name, Last name, Email, Mobile and Date of birth 17 / 05 / 1990 (Day, Month, Year); optionally Referring GP, GP clinic and provider number and "Anything <First> should know"; tick "I agree with the Terms of Use and Privacy Policy"; click "Continue to payment"
  4. Payment ("Save a card, and you're booked."): read the summary, enter card 4242 4242 4242 4242 / 12/30 / 123 and click "Save card and confirm booking"

Expected

  • Every step is the onboarding wizard's look (TC-C-07) without the matching questions: the blue-grey page, a tall header with the back chevron and the "Pax Psychology" wordmark, a white card naming the psychologist with "Change", and the dots with the black up and down arrows at the foot (on a phone, a ← dots → row above the heading). No step names or numbers are shown; screen readers hear "Step 1 of 4" to "Step 4 of 4" (3 steps for a psychologist with one session type, where the first step is skipped)
  • Session type: one white card per type with its description, "<length> minutes on <video app>" and its fee; the first is chosen
  • Time: day groups ("Monday 26 October") of pill times ("10:00am"), the chosen one coral; "Earlier week" is off on the first week; "Pick a date" is offered (TC-C-102); the foot reads "Times are in your time zone (Sydney). Days with nothing open are left out." "Continue to details" stays off until a time is picked
  • Your details: the summary card reads "<Day D Month> at <h:mmam>, a <length> minute video session"; above the form, "Already have an account?" / "Sign in to fill this in for you and use a saved card." with a "Sign in" button; the collection notice sits under the terms box
  • Payment: the summary card, then "<Type>, <length> minutes" and "Charged after your session" with the fee, the note "Nothing comes out today. Need to move it? Reschedule or cancel free up to 24 hours before. Cancelling within 24 hours of the session is charged the full session fee.", a "Card details" card ("Secured by Stripe") with the Stripe card form, and "We'll set up your Pax Psychology account with <email>, so you can see and change this booking later."
  • No Medicare rebate line on the payment step
  • On success: /booking-success with H1 "You're booked.", "Confirmed. Emily is expecting you.", rows "Your psychologist", the session type with "<Day D Month> at <h:mmam>, <length> minutes by video" and "Charged after your session", the three next steps, then "View my appointments" and "Back to browsing"
  • The /booking-success URL carries only ?ref= (no psychologist name, time or fee in the address bar); the rows still show the psychologist, when, what and fee
  • A confirmation email arrives; the appointment appears in the psychologist's Schedule
  • No charge appears in Stripe yet, only a saved payment method. The charge is raised when the psychologist completes the session (TC-P-10)

Notes Times are shown and grouped in the visitor's own timezone. The Lifeline crisis strip appears at the foot of every booking page. "Change" on the time step goes back to the session types; on later steps it goes back to the time.

Automated run

  1. 1. From a psychologist profile click “Book appointment”, then choose “Initial consultation” and “Pick a time”
  2. 2. Time: read the week, pick a time at least three days out and click “Continue to details”
  3. 3. Your details: fill the form, tick the terms and click “Continue to payment”
  4. 4. Payment: read the summary, enter 4242 4242 4242 4242 and click “Save card and confirm booking”
  5. Email "Appointment confirmation: Initial consultation" is sent to e2e+e2e-20261025-hb0hjc-c17@paxpsychology.dev
  6. Email "New appointment: Initial consultation" is sent to test@paxpsychology.dev
  7. Email "Welcome to Pax Psychology: set up your account" is sent to e2e+e2e-20261025-hb0hjc-c17@paxpsychology.dev
  8. 5. Housekeeping: cancel the booking so the psychologist's calendar stays clean
Screenshot for TC-C-17
PassedTC-C-36Booking with a card that needs 3-D Secure17.0s

Test script

Preconditions As TC-C-17. Do this signed out.

Steps

  1. Book as a guest up to the payment step (TC-C-17 steps 1–3)
  2. Enter card 4000 0025 0000 3155 / 12/30 / 123 and click "Save card and confirm booking"
  3. In Stripe's "3D Secure 2 Test Page" click "Complete"

Expected

  • Stripe's "3D Secure 2 Test Page" opens over the payment step, with "Fail" and "Complete" buttons
  • After "Complete" the booking confirms exactly as in TC-C-17: /booking-success with H1 "You're booked."
  • In Stripe the card is saved to the new customer (the SetupIntent succeeds after authentication); nothing is charged yet

Notes Clicking "Fail" instead leaves you on the payment step with an error and no booking.

Automated run

  1. 1. Book as a guest up to the payment step (as TC-C-17 steps 1–3)
  2. 2. Enter 4000 0025 0000 3155 and click “Save card and confirm booking”
  3. 3. In Stripe's “3D Secure 2 Test Page” click “Complete”
  4. 4. The booking confirms as in TC-C-17
  5. Email "Appointment confirmation: Initial consultation" is sent to e2e+e2e-20261025-hb0hjc-c36@paxpsychology.dev
  6. 5. Housekeeping: cancel the booking
Screenshot for TC-C-36
PassedTC-C-37Booking with a declined card, then a working one13.6s

Test script

Preconditions As TC-C-17. Do this signed out.

Steps

  1. Book as a guest up to the payment step (TC-C-17 steps 1–3)
  2. Enter card 4000 0000 0000 0002 / 12/30 / 123 and click "Save card and confirm booking"
  3. Replace the card number with 4242 4242 4242 4242 and confirm again

Expected

  • After step 2 the payment step shows "Your card has been declined.", stays on the "Card details" card and no booking is made
  • After step 3 the booking confirms as in TC-C-17 and lands on /booking-success

Notes The decline happens when the card is _saved_, since booking uses a SetupIntent.

Automated run

  1. 1. Book as a guest up to the payment step (as TC-C-17 steps 1–3)
  2. 2. Enter 4000 0000 0000 0002 and click “Save card and confirm booking”
  3. 3. Replace the card with 4242 4242 4242 4242 and confirm again
  4. Email "Appointment confirmation: Initial consultation" is sent to e2e+e2e-20261025-hb0hjc-c37@paxpsychology.dev
  5. 4. Housekeeping: cancel the booking
Screenshot for TC-C-37
PassedTC-C-38An unpaid session blocks booking until the client pays it21.7s

Test script

Preconditions unpaid@paxpsychology.dev (Jordan Unpaid) has a past, uncompleted session with test@ booked on a card that declines on charge, and a working default card (the acceptance seeder sets this up)

Steps

  1. As test@, open Jordan Unpaid's session from "Sessions to complete" and complete it: "They attended" → Skip → Skip → "Complete & capture payment"
  2. Reload the appointment
  3. Sign in as unpaid@paxpsychology.dev and open a booking page
  4. Click "Update payment method"
  5. Click "Pay $<amount> with my default card"
  6. Open the booking page again

Expected

  • Step 1: the card declines, but the session still completes. A warning toast reads "Session marked complete. $<amount> could not be collected and is recorded as outstanding. The client has been asked to update their card. It is charged automatically as soon as they do, and they can't book again until it's paid." The client is sent the "That payment didn't go through" email
  • Step 2: the appointment shows "Payment not collected" with the reason ("Your card was declined.") and a "Retry payment" button
  • Step 3: once the session type is chosen, instead of the time step the page shows "One thing before you book." and "Please pay your last session first", naming the session and amount, with an "Update payment method" button. There is no time to pick
  • Step 4: lands on Settings → Payment methods, which lists the session under "You have an unpaid session" and explains that adding a card or making another one default charges it straight away
  • Step 5: toast "Paid $<amount>. You're all caught up and can book again."; the notice disappears
  • Step 6: the booking flow is back ("When suits you?")

Notes Adding a new card, or making another card the default, pays the session the same way. A visitor who is not signed in and books with this email is only asked to sign in; nothing tells them a session is unpaid.

Automated run

  1. Find Jordan Unpaid's session in test@'s "Sessions to complete"
  2. 1. As test@, complete the session ("They attended" → Skip → Skip → "Complete & capture payment")
  3. Email "We couldn't process your payment" is sent to unpaid@paxpsychology.dev
  4. 2. Reload the appointment: it reads "Payment not collected" with "Retry payment"
  5. 3. Sign in as unpaid@paxpsychology.dev and open a booking page
  6. 4. Click "Update payment method"
  7. 5. Click "Pay $<amount> with my default card"
  8. Email "Invoice and payment confirmation" is sent to unpaid@paxpsychology.dev
  9. 6. Open the booking page again: booking is available
Screenshot for TC-C-38
PassedTC-C-18Booking as a signed-in client (review step)12.8s

Test script

Preconditions Logged in as client@paxpsychology.dev

Steps

  1. Go to a booking page and pick a time at least three days out
  2. Click "Continue to details"
  3. Click "Edit", look at the form, then click "Use my saved details"
  4. Click "Continue to payment", then "Confirm booking"

Expected

  • Step 2: H1 "Is this all still right?", "We've filled this in from your account. <First> will see it with your booking." There is no "Already have an account?" card and no details form: a card reads "Booking as" with the client's initials and name, then Email, Mobile and, when stored, Referring GP and GP clinic and provider number, a box for "Anything <First> should know (optional)" and the collection notice. A client with no date of birth on file is asked for it here, once
  • Step 3: "Edit" swaps in the details form (TC-C-17 step 3) filled in from the account, with the terms already agreed; "Use my saved details" goes back
  • Step 4: H1 "Which card should we use?"; under "Your cards" the saved cards ("Visa ending 4242", "Expires MM/YYYY"), the default one chosen and marked "Default", plus "Use a new card" (the Stripe card form with "Save this card for next time" ticked). With a saved card the button reads "Confirm booking"; the booking lands on /booking-success

Automated run

  1. 1. Go to a booking page and pick a time
  2. 2. Click “Continue to details”
  3. 3. Click “Edit”, see the form filled in, then “Use my saved details” and “Continue to payment”
  4. 4. Saved cards are offered under “Your cards”, with the default one chosen and marked “Default”
  5. Email "Appointment confirmation: Initial consultation" is sent to client@paxpsychology.dev
  6. Email "New appointment: Initial consultation with Sam Taylor" is sent to test@paxpsychology.dev
  7. Housekeeping: cancel this case's own booking
Screenshot for TC-C-18
PassedTC-C-19Booking details validation4.4s

Test script

Preconditions None (do this signed out)

Steps

  1. Go to a booking page, pick a time and click "Continue to details"
  2. On "Your details." leave every field empty and click "Continue to payment"
  3. Note where the page has moved you
  4. Enter notanemail in "Email" and blur the field
  5. Fill the text fields correctly but leave Date of birth empty and the terms box unticked, and submit again

Expected

  • Per-field errors appear in red: "First name is required", "Last name is required", "Invalid email address", "Mobile phone number is required", "Please enter your date of birth.", "You must accept the Privacy Policy and Terms of Use"
  • Invalid fields get aria-invalid styling
  • The page scrolls the first invalid field into the centre of the viewport and focuses it (instantly rather than smoothly if you have reduced motion on)
  • A summary alert under the form reads "Please fix the highlighted fields above before continuing." It clears itself as you fix fields on blur
  • The form cannot advance until all required fields are valid, a date of birth is entered and the terms box is ticked

Notes The signed-in review (TC-C-18) has no form to validate unless "Edit" is used, which validates the same way.

Automated run

  1. 1. Go to a booking page and pick a time
  2. 2. Leave every field empty and click “Continue to payment”
  3. 3. Note where the page has moved you
  4. 4. Enter `notanemail` in “Email” and blur the field
  5. 5. Fill the text fields correctly but leave the date of birth empty and the terms unticked, and submit again
Screenshot for TC-C-19
PassedTC-C-102Pick a date and Leave for now on the time step (new)3.0s

Test script

Preconditions None (do this signed out)

Steps

  1. Go to a booking page (TC-C-17 step 1). On "When suits you?" click "Later week", then "Earlier week"
  2. Click "Pick a date", choose an open day about two weeks out and click "Show times"
  3. Pick a time, then click the back chevron at the top left
  4. Click "Keep going", then the chevron again and "Leave"

Expected

  • Step 1: "Earlier week" is off on the first week; "Later week" moves the list on seven days ("Mon 2 to Sun 8 November") and "Earlier week" brings it back
  • Step 2: a "Pick a date" dialog (a bottom sheet on a phone) with a month calendar where only days with open times can be chosen, "Cancel" and "Show times" (off until a day is chosen). The list then starts on that day
  • Step 3: once a time is picked, the chevron asks "Leave for now?" ("Nothing is booked yet. When you come back you'll pick your time again.") with "Keep going" and "Leave". Before a time is picked it goes straight back to the profile
  • Step 4: "Keep going" stays on the time step; "Leave" goes to the psychologist's profile and nothing is booked

Automated run

  1. 1. Open a booking page and click “Later week”, then “Earlier week”
  2. 2. Click “Pick a date”, choose an open day about two weeks out and click “Show times”
  3. 3. The list starts on that day
  4. 4. Pick a time, then click the header's back chevron
Screenshot for TC-C-102
PassedTC-C-93A booking for someone under 18 is refused, with support services (new)1.9s

Test script

Preconditions None (do this signed out, with a new email address)

Steps

  1. Go to a booking page, pick a time, and on "Your details." fill First name, Last name and Email
  2. Under Date of birth enter a date 18 years ago tomorrow (someone who turns 18 tomorrow), as Day, Month and Year
  3. Look for a way on to payment
  4. (Admin, or the automated run) Look the email address up

Expected

  • As soon as the year is typed, a panel replaces the rest of the form: "Sorry, you need to be 18 or over to use Pax", "Our psychologists work with adults, so we can't book a session for you. You haven't done anything wrong, and you deserve support."
  • It lists Kids Helpline (1800 55 1800, a tel: link, and kidshelpline.com.au), headspace (headspace.org.au), "A GP can help too", and "If you're not safe right now, call Lifeline on 13 11 14 or 000" (both tel: links), then "We haven't kept the details you entered."
  • "Continue to payment" is turned off, so no card is asked for
  • No account, profile, Stripe customer or booking exists for that email. The only trace is an anonymous "Under-age booking or sign-up refused" log line
  • Changing the year to an adult one brings the form back with what was typed

Notes The same panel appears in the match quiz (TC-C-07 step 8), on sign-up (TC-C-95), on the signed-in review and on the confirm step of /dashboard/book when a client with no date of birth on file types one, and on the confirm page for a session a psychologist booked (TC-C-90; the request is then declined). The server refuses too (UNDER_AGE), so the API can't get round it. Birthdays are counted on the Sydney calendar; someone born on 29 February turns 18 on 1 March in other years. The age is PRIVACY_CONFIG.MINIMUM_CLIENT_AGE.

Automated run

  1. 1. Book as a guest: pick a time, then fill First name, Last name and Email
  2. 2. Enter a date of birth 17 years and 364 days ago
  3. 3. Check there is no way on to payment
  4. 4. Nothing was kept about the visitor
Screenshot for TC-C-93
PassedTC-C-94Someone who turns 18 today can book (new)10.8s

Test script

Preconditions None (do this signed out, with a new email address)

Steps

  1. Go to a booking page, pick a time, and fill "Your details." with a date of birth exactly 18 years ago today
  2. Tick the terms box, click "Continue to payment", pay with 4242 4242 4242 4242 and click "Save card and confirm booking"
  3. (Admin, or the automated run) Check the new client's profile

Expected

  • No under-age panel; the booking goes through to "You're booked."
  • The client's profile holds that date of birth (a calendar date, kept to work out the record-keeping period)
  • Clean up by cancelling the session

Notes An existing client with no date of birth on file (an older account, or a Google or Microsoft sign-up) is asked for it once, on the signed-in review ("Is this all still right?") or on the confirm step of /dashboard/book, and never again; their dashboard isn't blocked.

Automated run

  1. 1. Book as a guest and enter a date of birth exactly 18 years ago today
  2. 2. Pay with 4242 4242 4242 4242 and confirm
  3. 3. The date of birth is on the new client's profile
  4. 4. Housekeeping: cancel the booking
Screenshot for TC-C-94
PassedTC-C-95Signing up under 18 is refused, with support services (new)937ms

Test script

Preconditions None (signed out, a new email address)

Steps

  1. Go to /auth/register and fill First name and Email
  2. Under Date of birth enter a date 15 years ago
  3. Look for the password and "Create account"
  4. Change the year to 1990

Expected

  • The "Sorry, you need to be 18 or over to use Pax" panel appears (as in TC-C-93) and the password, terms and "Create account" are gone
  • No account exists for that email
  • With 1990 the panel goes and the rest of the form is back

Notes The server checks the date of birth before the rate limit, Turnstile or any lookup, so a refused sign-up writes nothing. A valid sign-up stores the date of birth on the new client profile in the same insert as the account.

Automated run

  1. 1. Go to /auth/register and fill First name and Email
  2. 2. Enter a date of birth 15 years ago
  3. 3. The password, terms and “Create account” are gone
  4. 4. Correct the year to 1990: the form comes back
Screenshot for TC-C-95

1F. Client Portal

14 passed 3 failed
FailedTC-C-20Client Home9.3s

Test script

Preconditions Logged in as client@paxpsychology.dev with an upcoming and some past sessions

Steps

  1. Navigate to https://paxpsychology.dev/dashboard

Expected

  • A light (white) sidebar with no role tag. Nav: Home, Sessions, Journal under the main group; Your psychologist and Reading list under "Care"; Settings under "Account". (Messages appears only when its flag is on, off on staging. There is no Medicare or Insurance item: insurance cards are a Settings section.) Sessions carries a green dot when a session is upcoming; unread counts show as small blue badges. The user block at the bottom shows your name and email
  • Greeting H1 "Hey <FirstName>. Good to see you." with a sub-line naming the day of the next session, or "No sessions booked. Book when you're ready."
  • Dark next-session card: the date and time as its heading ("Thursday 29 October at 10:00 am", linked to the appointment detail), "Your next session, <n> minutes by video. We send the link 1 hour before.", the psychologist's avatar and name, and buttons "Join early" / "Reschedule" / "Cancel session". With nothing booked it reads "Nothing booked yet." with a "Book a session" button and, on desktop, a "See <First>'s profile" link
  • A yellow "How's today been?" check-in naming your psychologist, with buttons "Rough", "Meh", "Okay", "Good", "Great", and a "This week" card (on a phone a quiet week is one sentence). Once a mood is logged for today (from this card or a journal entry) the card heading reads "Today's check-in", that mood's button is pressed and the card says "Logged “<mood>”. <Psychologist> will see this." with an "Add a note" link
  • A Messages card with the latest message (opens the thread when you have one psychologist) and a green reading card for the next unread reading (hidden once everything is read)
  • A "Past sessions" card with an "All sessions" link (→ the Past tab); each row is one link to that session's /dashboard/appointments/[id] page and says "Notes shared" when notes were shared. A phone shows the latest three
  • On desktop the cards sit on a 12-column grid: next session and check-in side by side, then this week / messages / reading, then past sessions across
  • On a phone (below 1024px) there is no sidebar: a white top bar with "Pax Psychology" and your avatar (the account menu: Settings, Sign out), and a bottom tab bar Home, Sessions, Journal, Reading list, More (Messages takes the third tab when its flag is on). The current tab has a black pill behind its icon. More opens a full-screen "Menu" with the whole sidebar and a close cross (aria-label "Close menu"); Escape also closes it. Nothing scrolls sideways

Notes The stats cards, Journey Progress, Total Spent, Account Balance and the four Quick Action buttons from the old dashboard are all gone.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard
  2. Sidebar nav: Home · Sessions · Journal, then Care and Account groups
  3. Greeting, “Next session” hero, mood check-in, “This week” and “Past sessions” – failed
Error: expect(locator).toBeVisible() failed

Locator: getByText(/\d+ minutes by video\. We send the link 1 hour before\./).visible()
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText(/\d+ minutes by video\. We send the link 1 hour before\./).visible() with timeout 5000ms
  - waiting for getByText(/\d+ minutes by video\. We send the link 1 hour before\./).visible()
Screenshot for TC-C-20
FailedTC-C-21Sessions list (Upcoming / Past)10.1s

Test script

Preconditions Logged in as a client with upcoming and past sessions

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. Confirm the "Upcoming" tab is selected, then click "Past"
  3. Click a session title

Expected

  • H1 "Sessions", sub "Your upcoming and past sessions, all in one place."
  • A "Book a session" button in the header
  • Underlined tabs with just "Upcoming" and "Past" (no counts in the labels); the choice is reflected in the URL as ?tab=past
  • Upcoming: the soonest session renders as the dark next-session card, the rest as white "booked ahead" cards titled with the session type, each with "Reschedule" and "Cancel session"
  • Session titles link to /dashboard/appointments/[id]
  • Past: numbered rows ("Session 4 with Emily" and the session type) with a date chip, a "Cancelled" tag on cancelled sessions, the shared notes text on desktop, and chips "Session notes" (when notes were shared), "Receipt" (or "Invoice unpaid") and a "Book again" button. The row title and the "Session notes" chip link to /dashboard/appointments/[id], which holds the receipt and the notes
  • Empty states: "Nothing booked yet." / "Pick a time that suits and you're set." and "No past sessions yet." / "They'll show up here after your first one.", each with a "Book a session" button
  • Pagination appears past 10 items: "1 to 10 of 11 sessions", "Page 1 of 2" and previous / next buttons

Notes The old search box and "Upcoming (X)" / "Past (X)" counts are gone. The 24-hour reschedule rule on these cards is covered by TC-C-35, and "Book again" by TC-C-111 and TC-C-75.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. 2. Confirm the “Upcoming” tab is selected, then click “Past” – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('button', { name: 'Rebook' }).first()
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('button', { name: 'Rebook' }).first() with timeout 5000ms
  - waiting for getByRole('button', { name: 'Rebook' }).first()
Screenshot for TC-C-21
PassedTC-C-35Reschedule and cancel from the Sessions list16.7s

Test script

Preconditions Logged in as a client with (a) a session more than 24 hours away and (b) one less than 24 hours away

Steps

  1. On /dashboard/appointments, find the session more than 24 hours out
  2. Confirm both "Reschedule" and "Cancel session" buttons are present
  3. Click "Reschedule", pick a new date and time, and confirm
  4. Now look at the session that is less than 24 hours away

Expected

  • More than 24 hours out: both "Reschedule" and "Cancel session" show
  • "Reschedule" opens /dashboard/book?move=<id>: "Move your session", "Pick a new time." on the booking page's week-by-week time picker, "Now booked" and "New time" beside it, and "Move my session". On success it opens the session with "Moved to <time>.", and both parties are notified
  • Within 24 hours: the "Reschedule" button is hidden and the line "Within 24 hours. Contact your psychologist to change this session." appears in its place. "Cancel session" is still offered

Notes This is new in the redesign. On the Sessions page the 24-hour line only appears after hydration (the clock is sampled client-side); on Home it is computed on the server. Since 25 Oct 2026 Reschedule is a page (TC-C-115), not a dialog. Reschedule the session you booked as the precondition: the list also offers "Reschedule" on PENDING sessions, and submitting one of those is refused with "Cannot reschedule an appointment with status: PENDING" (the button should not be offered – raise it separately).

Automated run

  1. 1. On /dashboard/appointments, find the session more than 24 hours out
  2. 2. Confirm both “Reschedule” and “Cancel session” buttons are present
  3. 3. Click “Reschedule”, pick a new date and time, and confirm
  4. Email "Appointment rescheduled" is sent to client@paxpsychology.dev
  5. Email "Appointment rescheduled" is sent to test@paxpsychology.dev
  6. 4. Now look at the session that is less than 24 hours away
Screenshot for TC-C-35
PassedTC-C-82A client reschedules and both sides see the new time (new)8.7s

Test script

Preconditions Logged in as swapper@paxpsychology.dev (Jamie Swapper), who has one upcoming CONFIRMED session with Dr Sasha Swaps at 11:00am, three or more weekdays out (the acceptance seeder resets it every run)

Steps

  1. Navigate to /dashboard/appointments and note the session's day and time
  2. Click "Reschedule", pick a day at least five days out and a time other than 11:00am, and click "Move my session"
  3. Reload Sessions, then open the session's detail page
  4. Sign in as swaps@paxpsychology.dev and open the same session

Expected

  • Step 2: the session page opens with "Moved to <time>."; the session keeps its status (Confirmed) and moves to the chosen time
  • Step 3: the card reads "<Weekday D Month> at <h:mm am>" for the new time, the old time is gone, and the detail page shows the new time
  • Step 4: the psychologist's detail page shows the new day and time
  • Both are emailed: the client "Appointment rescheduled: Initial Consultation", the psychologist "Appointment rescheduled: Initial Consultation with Jamie Swapper"

Notes TC-C-35 covers the modal's copy and the 24-hour rule; this case checks that the move is real on both sides. The modal can still close without showing "Session moved." (the intermittent revalidation bug noted in TC-C-35); the automated case checks the stored time either way.

Automated run

  1. 1. Sign in and open Sessions
  2. 2. Click "Reschedule", pick a day and a time, and click "Move my session"
  3. The session moved
  4. 3. Reload Sessions and open the session
  5. 4. As the psychologist, open the session
  6. Email "Appointment rescheduled" is sent to swapper@paxpsychology.dev
  7. Email "Appointment rescheduled: Initial consultation with Jamie Swapper" is sent to swaps@paxpsychology.dev
Screenshot for TC-C-82
FailedTC-C-22View appointment detail (client)12.0s

Test script

Preconditions Logged in as a client with at least one appointment

Steps

  1. From Sessions, click a session title to open /dashboard/appointments/[appointmentId]

Expected

  • Back link "Back to sessions"; H1 = the session type with a status pill beside it (Completed is green, Confirmed blue, Cancelled grey); meta line "Sunday 5 July 2026 at 12:00 pm AWST, 30 minutes on <video provider>"
  • Header actions: "Book a follow-up" (→ /dashboard/book?again=[appointmentId]) once the session is past or cancelled, and "View receipt" beside it on desktop when there is a receipt
  • Card "Session details": Date, Time, Length, Session type, Format
  • Card "Notes and documents": the notes your psychologist shared and any shared documents with a "Download" button; otherwise a line saying nothing was shared (or, for a cancelled session, that there are none)
  • Card "Your details": Name, Email, Mobile, and Referring doctor (with clinic name and "Provider no. …" beneath it) when stored. On a phone only Mobile and Referring doctor show
  • For a future confirmed session, a "Manage this session" card with "Join video call", "Reschedule" (outside 24 hours) and "Cancel session"
  • A green "Receipt" card (only once the session is COMPLETED and paid): the amount, a "Paid" tag, "Paid on <date>, invoice <invoice number>" and a "View receipt" button → /dashboard/invoices/[id]. A cancelled session shows a grey "Cancelled" card instead ("There is no receipt for this session.")
  • Card "Your psychologist": avatar, name, location, "Book a follow-up session" (→ /dashboard/book?again=[appointmentId]) and "View profile". On a phone it is one row linking to the profile
  • On a phone the receipt (or cancelled, or manage) card comes first, under the header

Notes All times are in the client's timezone.

Automated run

  1. 1. From Sessions, click a session title to open /dashboard/appointments/[appointmentId] – failed
Error: expect(locator).toHaveAttribute(expected) failed

Locator: getByRole('link', { name: 'Book a follow-up session' })
Expected pattern: /\/rebook\//
Received string:  "/dashboard/book?again=f449561b-a0b4-456c-ab8e-a6195cbdcd65"
Timeout: 5000ms

Call log:
  - Expect "toHaveAttribute" getByRole('link', { name: 'Book a follow-up session' }) with timeout 5000ms
  - waiting for getByRole('link', { name: 'Book a follow-up session' })
    14 × locator resolved to <a href="/dashboard/book?again=f449561b-a0b4-456c-ab8e-a6195cbdcd65" class="inline-flex items-center justify-center gap-2 whitespace-nowrap border border-transparent no-underline transition-all duration-150 ease-pax cursor-pointer disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ochre focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&_svg]:size-[1.1em] [&_svg]:shrink-0 bg-ink text-paper hover:bg-ochre hover:text-on-och…>Book a follow-up session</a>
       - unexpected value "/dashboard/book?again=f449561b-a0b4-456c-ab8e-a6195cbdcd65"
Screenshot for TC-C-22
PassedTC-C-23Cancel an upcoming appointment13.7s

Test script

Preconditions Logged in as a client with an upcoming CONFIRMED appointment more than 24 hours away

Steps

  1. Click "Cancel session" (Sessions list or Home hero) or "Cancel appointment" on the detail page
  2. In the dialog, check the title and body copy
  3. Optionally enter a reason
  4. Click "Cancel session"

Expected

  • A bottom sheet on a phone, a centred dialog on desktop. Title "Cancel this session?"; body "Your <session type> with <psychologist first name> on <Weekday D Month> at <h:mm am>."
  • Field "Reason (optional)" with placeholder "Anything <First> should know?"
  • Buttons "Cancel session" (dark red) and "Keep my session" (dismiss); the former shows a spinner and "Cancelling…"
  • Toast "Session cancelled."; status changes to Cancelled and a notification email is sent
  • Within 24 hours the sheet adds the note "This session is within the 24-hour cancellation window, so the full session fee will be charged to the card you have on file." and the toast becomes the warning "Session cancelled. The full session fee has been charged."

Notes The practice dialog (psychologist side) keeps its own wording, "Cancel appointment?" with "…so the client will be charged the full session fee." A late cancellation is always the full session fee, never a partial "late fee".

Automated run

  1. Precondition. Book a session more than 24 hours out to cancel
  2. 1. Click “Cancel session” on the Sessions list
  3. 2. In the dialog, check the title and body copy
  4. 3. Optionally enter a reason
  5. 4. Click “Cancel session”
  6. The session's own page now shows it as cancelled
  7. Email "Appointment Cancellation" is sent to client@paxpsychology.dev
  8. Email "Appointment Cancellation" is sent to test@paxpsychology.dev
Screenshot for TC-C-23
PassedTC-C-44Late cancellation inside 24 hours charges the full fee (new)8.1s

Test script

Preconditions Logged in as latefee@paxpsychology.dev, who has one CONFIRMED session with Dr Penny Payments about 12 hours away, booked on a saved Visa 4242 (the acceptance seeder sets this up every run)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. Look at the session's card
  3. Click "Cancel session" and read the sheet
  4. Click "Cancel session" in the sheet
  5. Open the session's detail page

Expected

  • Step 2: "Reschedule" is hidden and "Within 24 hours. Contact your psychologist to change this session." shows in its place; "Cancel session" is offered
  • Step 3: the sheet adds "This session is within the 24-hour cancellation window, so the full session fee will be charged to the card you have on file."
  • Step 4: the warning toast "Session cancelled. The full session fee has been charged."
  • The card is charged the full session fee: Stripe shows one succeeded PaymentIntent for exactly the fee, in AUD; the receipt is paid for the fee; the psychologist's payout row is the fee less the 22% platform fee
  • The client is emailed "Late cancellation fee invoice for your session with Dr Penny Payments" and the psychologist "A late cancellation from Lou Latefee"
  • Step 5: status Cancelled, and the paid receipt for the fee is offered ("View receipt")

Notes Known defect (24 Oct 2026): the detail page of a session cancelled late shows the grey "Cancelled" card, "There is no receipt for this session.", although the client has just been charged the full fee (the receipt card only shows for COMPLETED sessions). The automated case fails on this last check until it is fixed.

Automated run

  1. 1. Sign in and open Sessions
  2. 2. Look at the session's card
  3. 3. Click "Cancel session" and read the sheet
  4. 4. Click "Cancel session" in the sheet
  5. The full session fee was charged, and a payout row written at 78%
  6. Email "Late cancellation fee invoice for your session with Dr Penny Payments" is sent to latefee@paxpsychology.dev
  7. Email "A late cancellation from Lou Latefee" is sent to payments@paxpsychology.dev
  8. 5. Open the session's detail page
Screenshot for TC-C-44
PassedTC-C-24Receipts (client invoices)8.4s

Test script

Preconditions Logged in as a client with at least one completed, paid session

Steps

  1. Navigate directly to https://paxpsychology.dev/dashboard/invoices
  2. Go to /dashboard/appointments, open the "Past" tab, and click "Receipt" on a completed session
  3. On the receipt page, click "Download receipt"

Expected

  • /dashboard/invoices redirects a client to /dashboard/appointments – there is no invoices index in the client portal any more
  • "Receipt" opens /dashboard/invoices/[id]: a "Back to session" link, the invoice number as the H1 with a green "Paid" pill, and "Receipt for <session type> with <psychologist> on <Weekday D Month YYYY>."
  • On desktop the receipt is one white sheet: "Pax Psychology." with "Created <D Month YYYY>", the Due and Paid dates, "Billed to" (your name and email) and "Provider" (name, business, ABN, provider number, address, contact), the line item with its date and format, Subtotal, and "Total paid". On a phone the same facts are stacked cards with the total first
  • "Download receipt" (header) and "Download PDF" are offered only for a paid client invoice (an unpaid one says "Unpaid" and "Total due"); the "Resend" button is hidden from clients and nothing mentions Medicare

Notes Because cards are charged after the session, a receipt only exists for sessions the psychologist has completed.

Automated run

  1. 1. Navigate directly to https://paxpsychology.dev/dashboard/invoices
  2. 2. Go to /dashboard/appointments, open the “Past” tab, and click “Receipt”
  3. 3. On the receipt page, click “Download receipt”
Screenshot for TC-C-24
PassedTC-C-50A client cannot open another client's records (new)11.3s

Test script

Preconditions Logged in as client@paxpsychology.dev. The ids of Pat Privacy's (privacy@paxpsychology.dev) session, receipt, documents and GP report (the automated case reads them from the database; a tester can copy them while signed in as Pat or as test@)

Steps

  1. Open /dashboard/appointments/<Pat's session id>, /dashboard/invoices/<Pat's receipt id>, /rebook/<Pat's session id> and /reports/<Pat's GP report id>/view
  2. Request /api/invoices/<receipt id>/pdf, /api/files/appointment-document/<each document id>, /reports/<report id> and /api/reports/<report id>/pdf directly
  3. Repeat step 1 with a made-up session id, and step 2 with a made-up document id
  4. Sign out and repeat step 2, then open Pat's session page

Expected

  • Step 1: each page is the 404 page (H1 "This one's wandered off."), and nothing on it (or in its HTML) names Pat or her email
  • Step 2: each answers a refusal (403 or 404), never a PDF or a file
  • Step 3: the same answers as for a real id, so the routes cannot be used to find out which ids exist
  • Step 4: the requests answer 401 or 404; the page sends you to /auth/login

Automated run

  1. 1. As client@, open the other client's session, receipt, rebook link and GP report
  2. 2. Request the receipt PDF, the documents and the GP report directly
  3. 3. A made-up id gets the same answer as a real one
  4. 4. Signed out, the same requests are refused
Screenshot for TC-C-50Screenshot for TC-C-50
PassedTC-C-51Shared and private session documents (new)7.2s

Test script

Preconditions Logged in as privacy@paxpsychology.dev (Pat Privacy). Pat has a completed session with Dr Emily Thompson holding two documents: "Fixture shared handout.pdf" (shared with Pat) and "Fixture private assessment.pdf" (not shared)

Steps

  1. Open that session's detail page and read "Notes and documents"
  2. Click "Download" on the shared document
  3. Request the private document's download URL directly (/api/files/appointment-document/<id>)
  4. Sign in as test@paxpsychology.dev and open the same session

Expected

  • Step 1: only "Fixture shared handout.pdf" is listed, with its size and a "Download" button; the private document is not listed and its id is nowhere in the page
  • Step 2: the PDF downloads (HTTP 200, application/pdf, Cache-Control with no-store)
  • Step 3: 404, the same as for a document that doesn't exist
  • Step 4: the psychologist sees both documents and can download the private one

Automated run

  1. 1. As the client, open the session with documents
  2. 2. Only the shared document is listed
  3. 3. "Download" on the shared document returns the file
  4. 4. The private document's download URL is refused
  5. 5. As test@, the psychologist sees both documents
Screenshot for TC-C-51
PassedTC-C-25Client settings – Account8.7s

Test script

Preconditions Logged in as a client

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=account
  2. Confirm the section nav and the fields
  3. Change "Full name" to Updated Test Client and click "Save changes"
  4. Reload the page

Expected

  • H1 "Settings", subtitle "Your account, how you pay, and how you sign in."
  • Client section nav: "Account", "Payment methods", "Connected accounts", "Notifications" (plus "Insurance", holding the private health cards, only when that flag is on), text only, the current one filled black. On a phone the same links are a row of outlined pills that scrolls sideways on its own. Sections are chosen via ?section=<id>; an unknown value falls back to Account
  • Card "Your details": your photo with "Choose image" / "Remove" and the line "A clear photo of your face. JPEG, PNG or WebP, up to 5MB. Or drag one here." (drop a photo anywhere on that row), then labelled fields "Full name", "Email" read-only with the hint "Email can't be changed here.", "Mobile" (placeholder 0400 000 000) with the hint "Optional. Leave it blank to remove your number.", and "Timezone" read-only with the hint "Synced from your browser automatically."
  • Save button "Save changes"; toast "Account updated" on success
  • Card "Password" with "Change password" → /auth/forgot-password
  • Card "Account" with "Sign out" and an outlined red "Delete account"; the confirmation "Delete your account?" offers "Delete account" and "Keep my account" (a bottom sheet on a phone)
  • The new name persists after reload

Notes Timezone is no longer a dropdown – it is read-only and synced from the browser. The old /dashboard/settings/profile URL is not found (see TC-P-22).

Automated run

  1. 1. Navigate to /dashboard/settings?section=account
  2. 2. Confirm the section nav and the fields
  3. 3. Change “Full name” to `Updated Test Client` and click “Save changes”
  4. 4. Reload the page – the new name persists
  5. Housekeeping: restore the seeded client's name
Screenshot for TC-C-25
PassedTC-C-83A client clears their mobile (new)6.5s

Test script

Preconditions Logged in as mobile@paxpsychology.dev, whose mobile is 0412 345 678 (the acceptance seeder resets it every run)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=account
  2. Replace "Mobile" with 12345 and click "Save changes"
  3. Empty the "Mobile" field and click "Save changes"
  4. Reload the page
  5. Enter 0412 345 678 again and click "Save changes"

Expected

  • Step 1: "Mobile" shows 0412 345 678 with the hint "Optional. Leave it blank to remove your number."
  • Step 2: nothing saves; under "Mobile" the error "Enter a valid Australian mobile number, or leave it blank"
  • Step 3: toast "Account updated"
  • Step 4: "Mobile" is empty (the placeholder 0400 000 000 shows)
  • Step 5: toast "Account updated" and the number is back after a reload

Notes With no mobile saved, the psychologist's view of the client's sessions leaves the "Mobile" row out, and the booking form's "Mobile Phone" starts empty and is still required, so the next booking asks for a number again (and saves it back to the profile). Pax sends no text messages today, so clearing the number turns nothing off.

Automated run

  1. 1. Navigate to /dashboard/settings?section=account
  2. 2. Replace “Mobile” with `12345` and click “Save changes”
  3. 3. Empty the “Mobile” field and click “Save changes”
  4. 4. Reload the page: “Mobile” is empty
  5. 5. Enter `0412 345 678` again and click “Save changes”
Screenshot for TC-C-83
PassedTC-C-26Client settings – Payment methods and Medicare12.2s

Test script

Preconditions Logged in as a client

Steps

  1. Navigate to /dashboard/settings?section=payment-methods
  2. Click "Add payment method", enter 4242 4242 4242 4242 / 12/30 / 123 and click "Save card"
  3. Add a second card, then click "Make default" on it
  4. Click "Remove" on the non-default card and confirm
  5. Scroll to the "Medicare card" panel, enter a Medicare card number and IRN, and save

Expected

  • Card "Payment methods" with the note "Charged when you book a session"
  • Empty state (a dashed box): "No cards saved yet." / "Add one and paying for sessions is one less thing to think about." and an "Add payment method" button. With cards saved, "Add payment method" sits under the list
  • Adding a card swaps the card for "Add a card": Stripe's card fields, then the line "By saving your card, you allow Pax Psychology to charge it for future sessions in line with our terms. Card fields are provided by Stripe." ("terms" links to /terms-of-use), then "Cancel" / "Save card"
  • Each card row reads "<Brand> ending <last4>" with "Expires MM / YY"; the default one carries a "Default" tag and hides its "Make default" action
  • Toasts: "Card saved", "Default card updated", "Card removed" (errors: "Couldn't save that card. Try again.", "Couldn't change your default card", "Couldn't remove that card")
  • Remove opens a confirm dialog titled "Remove this card?" with a "Remove" button
  • Footer note: "Cards are stored securely by Stripe. Pax Psychology never sees your full card number."
  • The Medicare card panel sits directly beneath payment methods, headed "Medicare card" with the note "Optional", labelled fields "Medicare card number" (placeholder 0000 00000 0) and "Reference number (IRN)" (placeholder 1, hint "The digit next to your name on the card."), the line "We add your Medicare number to your receipts and to any letters your psychologist sends your GP.", and the toast "Medicare details saved"
  • There is no promise of automatic rebates anywhere on the page

Notes The Medicare number has moved here from the old profile form. Reload the page between step 4 and step 5. On a Stripe test key, adding a card leaves Stripe's transparent "developer tools" easel parked in the bottom-right corner, and the toasts from steps 3–4 stack in the same place – both sit over the Medicare panel's "Save changes", which is the last control on the page. A reload clears them.

Automated run

  1. 1. Navigate to /dashboard/settings?section=payment-methods
  2. 2. Click “Add payment method”, enter 4242 4242 4242 4242 / 12/30 / 123 and click “Save card”
  3. 3. Click “Make default” on the new card
  4. 4. Click “Remove” on the non-default card and confirm
  5. 5. Scroll to the “Medicare card” panel, enter a Medicare card number and IRN, and save
Screenshot for TC-C-26
PassedTC-C-70None of the suggested times work (new)7.9s

Test script

Preconditions A pending first session with test@ for which the psychologist has suggested other times (TC-P-56 step 2). The automated run seeds its own (about 22 days out at 5:30am Sydney time) and deletes it afterwards.

Steps

  1. Signed out, open the suggested-times link from the email (/dashboard/appointments/<id>/times)
  2. Sign in as the client
  3. Click "None of these work"
  4. As the psychologist, open /dashboard/new-clients

Expected

  • Step 1 goes to /auth/login?redirectTo=/dashboard/appointments/<id>/times (with the link's token kept), and signing in lands back on the page
  • H1 "Suggested times", the line "<Psychologist> can't make <date, time>, but suggested these instead.", a "Pick a time" card listing each time with "Book this time" and "These stay open until <date, time>.", and "None of these work"
  • Clicking it shows "We've let <psychologist> know." with "None of those times worked, so they'll be in touch with some others." and "See your sessions"
  • The psychologist is emailed "None of the suggested times worked for <client first name>" with the times listed and an "Open New clients" button
  • The session itself is unchanged (still pending at its booked time) and an audit row NEW_CLIENT_TIMES_DECLINED is written
  • On New clients the request carries the band "None of those times worked for <First>" and its actions are back

Notes The page only works for the client the times were sent to. Anyone else sees "No suggested times here."; an edited link reads "This link isn't working."; expired times read "These times have expired."

Automated run

  1. 1. Signed out, open the suggested-times page from the email
  2. 2. Sign in and land back on the page
  3. 3. Click "None of these work"
  4. Email "None of the suggested times worked for" is sent to test@paxpsychology.dev
  5. The session is untouched and the answer is recorded
  6. The psychologist sees it back on New clients
Screenshot for TC-C-70Screenshot for TC-C-70
PassedTC-C-90Confirm a session your psychologist booked (new)7.5s

Test script

Preconditions Logged in as confirms@paxpsychology.dev (Cam Confirms, one saved Visa 4242), with a session Dr Piper Proposes booked for Cam (from Schedule, "Book a session"). The automated run seeds its own (the fourth weekday out at 11:30am) and deletes it afterwards.

Steps

  1. Open Home (/dashboard)
  2. Click "Confirm" on the yellow "Piper booked you in for …" card
  3. Click "Confirm session" without ticking the policy, then tick "I accept the cancellation policy." and click "Confirm session" again
  4. Open Sessions

Expected

  • Home leads with a yellow card headed "Piper booked you in for <day, time>.", the session type, length and fee "after the session", "Please confirm by <date, time>, or the time goes back to Piper's calendar.", with Confirm and Decline. It is not the dark "Next session" card
  • The confirm page: H1 "Confirm your session.", "Piper booked this for you.", the psychologist, When, Fee and Confirm by; Pay with lists the saved Visa ending 4242 (Default, selected) and "Use a different card" (which opens the card form); "Nothing is charged today. <fee> comes off this card after the session. Free to move or cancel up to 24 hours before. Cancelling within 24 hours of the session is charged the full session fee."
  • Without the box ticked: "Please accept the cancellation policy to confirm."
  • Confirming shows "You're booked." with "We've emailed you the joining details and told Piper.", "View my appointments" and "Done"
  • The session is CONFIRMED with the Visa attached (PAYMENT_METHOD_SAVED), and Sessions shows it as booked, with Reschedule and Cancel
  • Cam is emailed "Appointment confirmation: <type>" (with the calendar file); Piper is emailed "Cam Confirms confirmed: <type>"

Notes A weekly run is confirmed or declined as a whole ("Confirm sessions"). Nothing is charged at confirmation; the session is charged after it, as any booking. A client with an unpaid session is asked to pay it first. An admin impersonating the client can confirm for them; it is recorded against the admin (the impersonated money-action trail, and the request's respondedById).

Automated run

  1. 1. Home leads with the session waiting for you
  2. 2. The confirm page shows the session and your saved card
  3. 3. Confirming needs the cancellation policy accepted
  4. The session is booked on the saved card
  5. 4. Sessions shows it as booked, not waiting
  6. Email "Appointment confirmation:" is sent to confirms@paxpsychology.dev
  7. Email "Cam Confirms confirmed:" is sent to proposes@paxpsychology.dev
Screenshot for TC-C-90
PassedTC-C-91Decline a session your psychologist booked (new)8.5s

Test script

Preconditions Logged in as declines@paxpsychology.dev (Drew Declines), with a session Piper booked for Drew. The automated run seeds its own (the fourth weekday out at 1:30pm) and deletes it afterwards.

Steps

  1. Open Sessions (/dashboard/appointments)
  2. Open the session's own page (/dashboard/appointments/<id>), then go back to Sessions
  3. Click "Decline" on the waiting session, then "Decline" to confirm
  4. Check Sessions, Upcoming and Past

Expected

  • In Upcoming the session reads "Waiting for you", "Piper booked this for you. Confirm by <date, time> or it's released.", with Confirm and Decline (no Reschedule or Cancel)
  • The session's own page has the status "Awaiting confirmation" and a "Confirm or decline" button to the confirm page
  • Decline opens the confirm page on "Decline this session? Piper is told straight away and the time goes back on their calendar. Nothing is charged." with "Keep it" and "Decline"
  • Declining shows "You declined this request." and "Piper has been told. Nothing was charged.", with "See your sessions" and "Message your psychologist"
  • The request is DECLINED and the session CANCELLED; it is in neither Upcoming nor Past (it was never booked)
  • Piper is emailed "Drew Declines declined: <type>" ("The time is open again on your calendar and nothing was charged.")

Automated run

  1. 1. Sessions shows it waiting, with Confirm and Decline
  2. 2. The session's own page offers Confirm or decline
  3. 3. Click "Decline" to confirm it
  4. The time is released
  5. 4. It is gone from Sessions, Upcoming and Past
  6. Email "Drew Declines declined:" is sent to proposes@paxpsychology.dev
Screenshot for TC-C-91
PassedTC-C-92The email link needs you signed in, as the client it was booked for (new)6.2s

Test script

Preconditions A session Piper booked for Lou Linked (linked@), and its email's Confirm link (/dashboard/appointments/confirm?token=…). The automated run seeds its own with a known token and deletes it afterwards.

Steps

  1. Signed out, open the Confirm link
  2. Sign in as a different client (declines@)
  3. Signed out again, open the link and sign in as linked@

Expected

  • Step 1 goes to /auth/login?redirectTo=/dashboard/appointments/confirm?token=… (token kept)
  • Signed in as someone else, the page reads "Nothing to confirm here." ("If you were sent a session to confirm, make sure you're signed in with the account it was booked for.") and shows nothing of the booking
  • Signed in as Lou, the page opens on "Confirm your session."
  • Opening the link changes nothing: the request is still open and the session still waiting

Notes The token only finds the booking; it never signs anyone in or confirms anything. Only its SHA-256 is stored, and the correspondence log stores the email with the token redacted. An edited link reads "This link isn't working."; an answered or expired one reads "You declined this request.", "This request has expired." and so on.

Automated run

  1. 1. Signed out, open the Confirm link from the email
  2. 2. Sign in as someone else: the link doesn't work for them
  3. 3. Signed in as the client it was booked for, it opens
  4. Opening the link changed nothing
Screenshot for TC-C-92Screenshot for TC-C-92

1G. New public surfaces

5 passed 1 retired
PassedTC-C-27Journal index, article and newsletter signup10.5s

Test script

Preconditions At least one published journal article

Steps

  1. Navigate to https://paxpsychology.dev/journal
  2. Click a category chip, then click "All"
  3. Open an article
  4. Scroll to the newsletter band near the foot of /journal, enter a first name and e2e+newsletter-<run>@paxpsychology.dev, and click "Sign up"
  5. Try again with notanemail

Expected

  • A large centred H1 "Journal" and the intro "Things worth reading when you've got ten minutes. Written with our psychologists…"
  • Category chips start with "All" and include "Stories" (Harry's and Sarah's stories); the active chip is dark and the URL carries ?category=<name>. A category with no matches shows "Nothing here yet. Try another category, or check back soon."
  • Articles show as white cards: cover photo, a coloured category tag (Mental Health topics yellow, Performance blue, everything else green), title and excerpt. An admin-featured article comes first
  • Stories show as story cards wherever they appear, in the All feed too: a white card with the person's photo, their name, an excerpt and a "Read Sarah's story" button (no category tag)
  • ?category=Stories turns the page into "Your stories" (with an outlined "Our story" link), lists Sarah's and Harry's story cards and ends on a light blue "When it's personal" band
  • An article page has a pale header in its area's colour (yellow for Mental Health topics, light blue for Performance, pale green for everything else) with the title, cover and byline ("Written by", "Posted on", "Topic" with the category and read time). The share buttons (LinkedIn, X, Facebook, email) are dark squares in a column on the header's left on a wide screen (1280px and up), and a row under the byline on narrower screens. Then the reading column and a "See similar" band; if the author is a Pax psychologist an author booking card appears with "Book a session"
  • Newsletter band: blue-grey, H2 "Get tips for your journal landed in your inbox.", "By subscribing below you will be added to our mail distribution list.", fields "First name (or nickname)" and "Email address", and a "Sign up" button ("Signing up…" while pending). Below it, "The right time is now. Take action." beside a green photo panel
  • Success replaces the form with "Thanks <FirstName>! You've been subscribed to our newsletter."
  • An invalid address shows "Please enter a valid email address"

Notes The homepage (coral "Subscribe today" panel) and every page footer carry the same sign-up form.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/journal
  2. 2. Click a category chip, then click “All”
  3. 3. Open an article
  4. 4. Scroll to the newsletter band and subscribe
  5. Email "You're on the list" is sent to e2e+newsletter-e2e-20261025-hb0hjc@paxpsychology.dev
  6. Email "Newsletter subscription" is sent to support@paxpsychology.dev
  7. 5. Try again with `notanemail`
Screenshot for TC-C-27
PassedTC-C-28Newsletter unsubscribe2.6s

Test script

Preconditions A subscribed email address and its unsubscribe link (from a newsletter email, or built as /newsletter/unsubscribe?token=…)

Steps

  1. Open the unsubscribe link
  2. Then open /newsletter/unsubscribe with no token

Expected

  • Valid link: H1 "You're off the list." with the email named, plus buttons "Back to the homepage" and "Browse the journal"; a confirmation email subject "You're off the list" is sent; the subscriber shows as Unsubscribed in /dashboard/newsletter
  • No/invalid token: an alert "This unsubscribe link isn't valid" with "Contact us" and "Back to the homepage"

Notes Known copy bug – the success page says you can rejoin "from the form on our homepage", but the only form is on /journal.

Automated run

  1. 1. Open the unsubscribe link
  2. Email "You're off the list" is sent to e2e+newsletter-e2e-20261025-hb0hjc@paxpsychology.dev
  3. 2. Then open /newsletter/unsubscribe with no token
Screenshot for TC-C-28
RetiredTC-C-29For Psychologists landing page (new)–

The For Psychologists page has been removed for now.

PassedTC-C-30Mobile filters drawer on the directory (new)6.4s

Test script

Preconditions Browser window narrower than 1024px (or a phone)

Steps

  1. Navigate to https://paxpsychology.dev/psychologists at 375px width
  2. Confirm the "Filter by" column is hidden and the sliders icon sits beside the H1
  3. Tap the sliders icon
  4. Apply a couple of filters inside the drawer
  5. Tap the button at the foot of the drawer
  6. Widen the window to 1024px or more

Expected

  • Results run full width, with the sort dropdown still shown; "Popular choices" follows the results as a sideways-scrolling row of cards
  • The sliders icon carries a coral badge counting active filters
  • The filters open as a full-screen dark panel titled "Filter by" with a close cross at the top right, holding exactly the same accordion rows (in white, with white checkboxes) as the desktop column ("Gender", "Focus area", "Issue", "Session type", "Availability", "Name")
  • Filters apply immediately as you toggle them – the sticky footer button reads "Show <n> results" and simply closes the drawer
  • Widening to 1024px or more auto-closes the drawer and the "Filter by" column reappears

Notes There is no "Clear" control inside the drawer; use the chip row's "Clear all" on the results page.

Automated run

  1. 1. Navigate to /psychologists at 375px width
  2. 2. Confirm the “Filter by” column is hidden and the sliders icon sits beside the H1
  3. 3. Tap the sliders icon
  4. 4. Apply a couple of filters inside the drawer
  5. 5. Tap the button at the foot of the drawer
  6. 6. Widen the window to 1024px or more – the drawer auto-closes and the column reappears
Screenshot for TC-C-30
PassedTC-C-31FAQs page2.2s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/faqs
  2. Expand several questions

Expected

  • H1 "Frequently asked questions" with nothing above it
  • 11 accordions, hard-coded (a different source from the homepage FAQ accordion, which is DB-driven and admin-editable)
  • Closing CTA "Still have questions?" with "Contact us" and "Find your match"

Notes Two answers change wording depending on the in-person bookings flag (off on staging → video-only wording).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/faqs
  2. 2. Expand several questions
Screenshot for TC-C-31
PassedTC-C-32Error pages1.8s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/this-page-does-not-exist
  2. Navigate to /psychologists/definitely-not-a-real-psychologist

Expected

  • 404 page: big "404" mark with a short caption, H1 "This one's wandered off." with nothing above it, buttons "Back to home" and "Find a psychologist", plus a pill row "Or pick up where you left off" (How Pax works / The Journal / Sign in / Get in touch). The marketing header and footer are present
  • An unknown psychologist slug also 404s

Notes For the 500 screen (a coral band with an outlined "500", H1 "Shit happens. This time it's on us.", a "Try again" button, a "Go to the homepage" button, an "Error 500, reference …" line and the Lifeline crisis line above the footer) you need an induced server error, so treat it as optional.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/this-page-does-not-exist
  2. 2. Navigate to /psychologists/definitely-not-a-real-psychologist
Screenshot for TC-C-32

1H. Other new surfaces

2 passed 1 failed
FailedTC-C-33Your psychologist and Reading list (new client Care pages)36.6s

Test script

Preconditions Logged in as client@paxpsychology.dev (who has a psychologist and some assigned readings)

Steps

  1. Click "Your psychologist" in the sidebar
  2. Click "Reading list"
  3. Open a reading and mark it read

Expected

  • Your psychologist: H1 "Your psychologist", a yellow hero with the psychologist's photo, name, credentials, their own words, "Message <First>" (when messaging is on) and "Book a session"; four fact cards ("Sessions together", "Usual rhythm", "Session rate", "Format"), a "How <First> works" tag list and a "Good to know" card with Lifeline 13 11 14 and 000. With no psychologist yet: "You haven't booked a psychologist yet." and a "Find a psychologist" button
  • Reading list: H1 "Reading list", filter pills "All", "From <First>", "Pax Psychology Journal", "Worksheets" (a row that scrolls on its own on a phone); cards three across on desktop. Unread items are green with a "New" tag and "Read" (or "Open"); read ones are white with "Done". Clicking a card's title opens it: a yellow header band with the title, who sent it, the body, and a "Mark as read" button that becomes "Done", plus "Message <First> about this". Empty: "Nothing on your reading list yet."

Notes Worksheet answers save privately as you type.

Automated run

  1. 1. Click “Your psychologist” in the sidebar – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('link', { name: 'Book a session' }).first()
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('link', { name: 'Book a session' }).first() with timeout 30000ms
  - waiting for getByRole('link', { name: 'Book a session' }).first()
Screenshot for TC-C-33
PassedTC-C-52Journal entries stay private unless shared (new)27.3s

Test script

Preconditions Logged in as journal@paxpsychology.dev (Jules Journal), a client of Dr Emily Thompson with an empty journal (reset every run)

Steps

  1. Navigate to /dashboard/journal
  2. Write an entry, choose "Rough", leave "Share this entry with Emily" off, and click "Save entry"
  3. Sign in as test@paxpsychology.dev and open Jules's client record
  4. As Jules, click "Share with Emily" on that entry, then reload
  5. As test@, reload Jules's record
  6. As Jules, write another entry, choose "Rough", turn sharing on and save

Expected

  • Step 1: subtitle "Just for you. Emily only sees an entry if you choose to share it.", the "Private by default" panel, "No entries yet. Your first note is just above." and the share switch off
  • Step 2: the entry is listed with "Only you can see this" and "Share with Emily"; no "Jules flagged a tough day" email goes to the psychologist
  • Step 3: the entry is nowhere on the record
  • Step 4: "Shared with Emily", then "Emily can see this" after the reload
  • Step 5: the entry is on the record
  • Step 6: the psychologist is emailed "Jules flagged a tough day"

Notes TC-C-76 covers choosing which of two psychologists an entry is shared with.

Automated run

  1. 1. Open the journal and read the page
  2. 2. Write an entry, choose "Rough", leave sharing off, and save
  3. No email "flagged a tough day" to test@paxpsychology.dev
  4. 3. As test@, open the client's record
  5. 4. As the client, click "Share with Emily" on that entry
  6. 5. As test@, reload the record
  7. 6. As the client, save a new "Rough" entry with sharing on
  8. Email "Jules flagged a tough day" is sent to test@paxpsychology.dev
Screenshot for TC-C-52
PassedTC-C-34Self-serve registration5.8s

Test script

Preconditions An unused email address

Steps

  1. Navigate to https://paxpsychology.dev/auth/register
  2. Fill "First name", "Email", "Date of birth" (an adult, e.g. 17 / 05 / 1990) and "Password", tick the terms checkbox and click "Create account"
  3. Follow the flow to /auth/check-email and use the resend control
  4. Open the verification email and follow the link

Expected

  • H1 "Start when you're ready." with nothing above it, sub "Already with us? Sign in"
  • One social button, "Sign up with Google" (no Apple or Microsoft), then an "or" divider
  • Fields "First name" (placeholder Alex), "Email" (placeholder you@email.com), "Password" (placeholder At least 8 characters) with a strength meter
  • Consent checkbox "I agree to Pax Psychology's Terms and Privacy Policy, and understand Pax Psychology isn't a crisis service."
  • Button "Create account" → "Creating your account…"
  • /auth/check-email: H1 "Check your email." with "…it expires in 24 hours." and a "resend" control; a successful resend says "Sent again – give it a minute and check your spam folder."
  • After verifying: H1 "You're all set." with a "Sign in" button. An expired link gives "That link expired."; a reused one "That link didn't work."

Automated run

  1. 1. Navigate to https://paxpsychology.dev/auth/register
  2. 2. Fill “First name”, “Email”, “Date of birth” and “Password”, tick the terms checkbox and click “Create account”
  3. 3. Follow the flow to /auth/check-email and use the resend control
  4. Email "Verify your email address for Pax Psychology" is sent to e2e+e2e-20261025-hb0hjc@paxpsychology.dev
  5. 4. MANUAL: open the verification email and follow the link
Screenshot for TC-C-34

1I. Flag-gated client surfaces

3 skipped by design
Skipped by designTC-C-80AI notes and recording consent, from the client's side (new)–

flag off on staging: AI notes run locally with AI_NOTES_FAKE_PROVIDERS=true (pnpm test:e2e:ai-notes)

Test script

Preconditions FEATURE_AI_NOTES_ENABLED on (off on staging, so the automated case is skipped there by design; it runs locally with AI_NOTES_FAKE_PROVIDERS=true, pnpm test:e2e:ai-notes). A client with an upcoming session whose psychologist uses AI notes

Steps

  1. Open the recording consent page for the next session and agree to recording for this session only
  2. In Settings › Privacy, withdraw AI-notes consent
  3. Open a past recorded session and delete its transcript
  4. In Settings › Privacy, withdraw all consent while an import is in flight

Expected

  • Agreeing to "this session only" records consent for that session and no other
  • Withdrawing AI-notes consent turns dictation off for the psychologist
  • A deleted transcript is gone from the session, for both sides
  • Withdrawing all consent revokes AI notes and recording together and stops the work already in flight
Skipped by designTC-C-81Messaging: the client replies and the psychologist sees it (new)3.8s

flag off on staging: FEATURE_MESSAGING_ENABLED is off, so /dashboard/messages redirects

Test script

Preconditions FEATURE_MESSAGING_ENABLED on (off on staging, so the automated case is skipped there by design). test@ and client@

Steps

  1. As test@, open the client's full profile from Clients and click "Message"
  2. As client@, open Messages (straight into the thread with one psychologist, or pick the conversation) and send a reply
  3. As test@, reload the thread

Expected

  • The psychologist's thread has a text box, a "View profile" link back to the client and a crisis note mentioning Lifeline
  • The client's thread has its own crisis note: "Messages aren't an emergency service. If you're in crisis or need help right now, call Lifeline on 13 11 14 or 000. Reply times vary and are up to <PsychFirstName>." On a phone it is the shorter "Not an emergency service. In crisis or need help now? Call Lifeline on 13 11 14 or 000."
  • The client's reply appears in their own thread, then in the psychologist's after the reload
Screenshot for TC-C-81
Skipped by designTC-C-84Messaging: the client sends a file and only the two of them can open it (new)2.9s

flag off on staging: FEATURE_MESSAGING_ENABLED is off, so /dashboard/messages redirects

Test script

Preconditions FEATURE_MESSAGING_ENABLED on (off on staging, so the automated case is skipped there by design), and a private Blob store connected (BLOB_PRIVATE_READ_WRITE_TOKEN; locally, without a Blob token, files go to .blob-mock/). test@, client@ and admin@

Steps

  1. As test@, open the client's thread (as in TC-C-81)
  2. As client@, open the thread, click the paperclip ("Attach a file") and pick a small text file or PDF
  3. Wait for its progress bar to finish, type a caption and click "Send"
  4. As test@, reload the thread and click the file
  5. As admin@, open the file's link (/api/files/attachment/<id>) directly

Expected

  • The file shows in the composer with its size and a progress bar while it uploads; "Send" stays disabled until the upload finishes
  • After sending, the message shows the caption and a link to the file, and the composer is empty again
  • The psychologist sees the caption and the file after the reload, and the file downloads with the content that was sent
  • The admin (not a participant) gets a 404 for the same link
  • Picking a file over 10 MB, or a type that isn't an image, PDF, Word, Excel or plain text, shows an error on that file and nothing is uploaded
Screenshot for TC-C-84

1J. Search and social sharing (new)

2 passed
PassedTC-C-100Staging is kept out of search (new)2.1s

Test script

Preconditions None

Steps

  1. Open https://paxpsychology.dev/robots.txt
  2. Open https://paxpsychology.dev/sitemap.xml
  3. View the source of https://paxpsychology.dev/, /journal and /auth/login, and look at the response headers of / (DevTools, Network tab)

Expected

  • robots.txt is exactly User-Agent: * and Disallow: /, with no Sitemap: line
  • sitemap.xml is an empty <urlset> (no <url> entries)
  • Every page has <meta name="robots" content="noindex, nofollow, …"> (the journal included: articles no longer say "index" on staging)
  • The response carries the header X-Robots-Tag: noindex, nofollow, noarchive, nosnippet, noimageindex
  • /auth/login is titled "Account | Pax Psychology" and the booking pages "Book a session | Pax Psychology": no psychologist, client or session name in any private page's title

Notes On production (paxpsychology.com.au) the same pages say index, follow, robots.txt disallows only the private areas (/dashboard, /auth, /book, /api except /api/og, …) and links the sitemap, which lists the public pages, listed psychologists and published articles.

Automated run

  1. 1. Open /robots.txt
  2. 2. Open /sitemap.xml
  3. 3. View the source of /, /journal and /auth/login, and the headers of /
Screenshot for TC-C-100
PassedTC-C-101A journal article shares with its own title and cover (new)2.3s

Test script

Preconditions A published journal article with a cover image

Steps

  1. Open https://paxpsychology.dev/journal and open an article that has a cover image
  2. View the page source and find the og: and twitter: tags, the canonical link and the application/ld+json script
  3. Add ?utm_source=test&utm_medium=social to the address and view the source again
  4. Click the LinkedIn share button in the article header

Expected

  • Browser tab and og:title: "<article title> | Pax Psychology"; og:description is the article's excerpt; og:type is article, with article:published_time, article:author and article:section (the category)
  • og:image and twitter:image are the article's cover image (the same picture as the header); twitter:card is summary_large_image; og:site_name "Pax Psychology", og:locale en_AU
  • The canonical link and og:url are the plain article URL, and stay the same with the utm_ tags added
  • The JSON-LD is an Article (headline, cover image, author, dates, category) plus a BreadcrumbList (Home, Journal, the article)
  • The LinkedIn share window opens with the plain article URL: no utm_ tags

Notes An article without a cover shares the site's default share image (TC-A-60) or, without one, a generated Pax card at /api/og headed with the title and labelled "Journal: <category>". That card's URL ends in a sig signature: change its title in the address bar and the image returns 404 (no Pax card with made-up text), while /api/og with no parameters shows the plain default card.

Automated run

  1. 1. Open /journal and an article with a cover image
  2. 2. Read the og:, twitter:, canonical and JSON-LD tags
  3. 3. Add utm_ tags: the canonical URL stays clean
  4. 4. Click the LinkedIn share button
Screenshot for TC-C-101

Psychologist

58 cases49 passed 2 failed 2 manual 5 skipped by design

2A. Onboarding

3 passed 1 failed 1 manual
ManualTC-P-01Connect the Stripe Connect payout account4.0s

Steps 4–5 leave Pax: 'Connect with Stripe' hands off to Stripe's hosted Connect onboarding (a stripe.com form with identity and bank details) and returns via an OAuth-style callback. Nothing on that hop can be automated, and completing it would burn the shared `test2@` fixture's 'payouts not set up' state that other cases rely on. Everything Pax itself renders – the banner, the sidebar alert, the Stripe Connect card and its CTA – is checked below; a reviewer only needs to eyeball the hosted form and the post-connect 'Connected' badge (see TC-P-20).

Test script

Preconditions Logged in as test2@paxpsychology.dev (Stripe not connected)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard
  2. Note the payout banner and click its CTA
  3. On /dashboard/settings?section=payouts, read the Stripe Connect card
  4. Click "Connect with Stripe" and complete the Stripe-hosted onboarding
  5. Return to Pax

Expected

  • The Today page shows the banner "Finish setting up payouts to accept bookings" with the body "Your Stripe Connect onboarding is incomplete, so session fees can't reach you yet. It takes about 2 minutes." and the button "Set up payouts" → /dashboard/settings?section=payouts
  • The sidebar "Settings" item carries a coral dot (aria-label "Action needed") and the Payouts item in the Settings sub-navigation shows the same dot, until this is done
  • The card is titled "Stripe Connect" with the line "Clients pay through Stripe. The platform fee is 22%, and you receive 78%." and a "Not connected" badge
  • After connecting: badge "Connected", rows "Account", "Country" (e.g. "Australia, AUD"), "Charges" and "Payouts" ("Enabled" or "Not enabled yet"), and an "Open Stripe dashboard" button. While payouts are off, a tinted note reads "Payouts are switched off on your Stripe account. Finish setup in Stripe so session fees reach your bank."

Notes A part-finished account shows the "Pending setup" badge and a "Continue setup" button. Until payouts are connected the psychologist is not bookable from the public site.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard
  2. 2. Note the payout banner and click its CTA
  3. 3. On /dashboard/settings?section=payouts, read the Stripe Connect card
  4. 4. Click "Connect with Stripe" and complete the Stripe-hosted onboarding – MANUAL
  5. 5. Return to Pax – MANUAL
Screenshot for TC-P-01
FailedTC-P-02Complete profile / account details8.0s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=account
  2. Upload a profile picture, change "Full name", click "Save changes"
  3. Switch to ?section=registration and fill the professional fields
  4. Open /dashboard/listing and check the public-facing profile editor

Expected

  • H1 "Settings", subtitle "Account, registration, payouts, and how Pax Psychology reaches you."
  • Account card headed "Your details" (an H2, like the "Password" card below it): avatar upload with "Choose image" and "Remove" (helper "A clear photo of your face. JPEG, PNG or WebP, up to 5MB. Or drag one here."), "Full name", "Email" read-only ("Email can't be changed here."), "Timezone" read-only ("Synced from your browser automatically."). Button "Save changes"; toast "Account updated"
  • There is no Mobile field for a psychologist (client-only)
  • "Registration" section: a "Registration" card with "AHPRA registration", "Medicare provider number" and "ABN", and a "Billing account" card with "Account name", "BSB", "Account number" and "Save changes"
  • /dashboard/listing (H1 "Your listing") is where the public profile copy, bio and specialities are edited – those are no longer on the settings profile form

Notes The old /dashboard/settings/profile URL is not found (see TC-P-22).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/settings?section=account – failed
Error: expect(locator).toBeVisible() failed

Locator: getByText('Account, registration, payouts, and how Pax Psychology reaches you.').visible()
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText('Account, registration, payouts, and how Pax Psychology reaches you.').visible() with timeout 5000ms
  - waiting for getByText('Account, registration, payouts, and how Pax Psychology reaches you.').visible()
Screenshot for TC-P-02
PassedTC-P-03Set weekly availability9.3s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. Click "Edit availability" in the Schedule toolbar
  3. In the modal, switch Monday on and set "From" 09:00 and "To" 17:00
  4. Switch Saturday off
  5. Click "Save availability"
  6. Deliberately set an invalid combination (e.g. From later than To) and save again to see the error

Expected

  • Modal title "Your usual availability", sub "The hours clients can book you each week. Block time covers one-off changes."
  • One row per day: a switch labelled with the day name, then "From" and "To" selects; a day that is off reads "Unavailable"
  • Footnote "Pax Psychology only offers clients slots inside these hours, minus anything you've booked or blocked."
  • Buttons "Cancel" and "Save availability" ("Saving…" while pending)
  • Errors appear inline in a red alert above the footer – not as a toast
  • Success is an in-modal screen, not a toast: "Availability saved." / "Clients can now book you across <n> days a week. One-offs and time off are handled by Block time." with a "Done" button
  • The public booking page reflects the new hours (Monday 9–5 bookable, Saturday not)

Notes The same modal opens from Settings › Availability (TC-P-21) and from the "Block time" / "Schedule" buttons on Today.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. 2. Click "Edit availability" in the Schedule toolbar
  3. 3. In the modal, switch Monday on and set "From" 09:00 and "To" 17:00
  4. 4. Switch Saturday off
  5. 5. Click "Save availability"
  6. 6. Deliberately set an invalid combination (From later than To) and save again to see the error
  7. Restore the original weekly hours
Screenshot for TC-P-03
PassedTC-P-04Block out time (time off)14.5s

Test script

Preconditions Logged in as a psychologist with availability set

Steps

  1. On /dashboard/appointments, click "Block time"
  2. Pick a reason chip, use the week arrows to page forward a week, pick a day, set "From" and "To", add a note
  3. Click "Block time"
  4. Repeat over a slot that already has a booking, and read the warning
  5. Try the "Repeat weekly" switch
  6. Delete the block from Settings › Availability › Time off

Expected

  • Modal title "Block out time", sub "Clients can't book this slot."
  • Reason tags "Lunch", "Admin and notes", "Leave", "Personal"; fields "Reason", "Day", "From", "To", "Note (optional)" (placeholder "Supervision, or just heads-down notes time")
  • Week paging with "Previous week" / "Next week" arrows around a "<d Mon> – <d Mon>" label, five weekday buttons ("Mon 19"), up to 25 weeks ahead
  • "Repeat weekly" switch in a grey box with the note "Same day and time for the next 12 weeks."
  • Buttons "Cancel" (outlined) and "Block time" (black)
  • Conflict: "<n> booked appointments fall in this window. Blocking will cancel them." and "Press Block and cancel to confirm."; the submit button becomes "Block and cancel"
  • Success is an in-modal screen, not a toast: "Time blocked." / "<Dow D Mon>, <from>–<to> is now off your booking calendar." with a "Done" button
  • The blocked slot is no longer offered on the public booking page
  • Deleting from the Time off list opens "Delete this time off?" / "<range> will be bookable again." with a "Delete" button

Notes Errors render inline in the modal.

Automated run

  1. 1. On /dashboard/appointments, click "Block time"
  2. 2. Pick a reason chip, page forward a week, pick a day, set "From" and "To", add a note
  3. 3. Click "Block time"
  4. 4. Repeat over a slot that already has a booking, and read the warning
  5. 5. Try the "Repeat weekly" switch
  6. 6. Delete the block from Settings › Availability › Time off
Screenshot for TC-P-04
PassedTC-P-05Create a session type6.9s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=appointment-types
  2. Click "Add session type"
  3. Fill the form: Title Initial consultation, Description A 50-minute initial consultation session., Length 1 hour, Video call "Google Meet", Fee (AUD) 220.00
  4. Click "Add session type"

Expected

  • The section is headed "Session types" / "The sessions clients can book, and what each costs." with an "Add session type" button; with none set up, a card reads "No session types yet. Set up the sessions clients can book: length, fee and how the call happens."
  • The add page (back link "Session types", H1 "Add session type") has labels "Title" (placeholder 30 min meeting), "Description", "Length" (select), "Video call" (radios Google Meet / Zoom / Microsoft Teams), then a "Billing" card with "Fee (AUD)" and the line "You receive $<payout> after the 22% platform fee." ("Enable bulk billing" toggle with the insurance flag)
  • After saving, each session type is a row with its name, "<n> minutes, <n> appointments", the fee (e.g. "$220") and an "Edit" button; with the insurance flag on, rows add "Medicare rebate" and "Gap payment"
  • There is no "Booking link" field: the booking URL is made from the title. The new type is bookable at /book/emily-thompson/<title as a slug> (for Initial consultation, /book/emily-thompson/initial-consultation; a second type with the same title gets -2). Check it in a signed-out window, since a signed-in psychologist is sent to the dashboard

Notes Unconfigured video providers are disabled with the tooltip "This provider is not configured". Medicare/bulk-billing fields only appear with the insurance flag on (off on staging).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/settings?section=appointment-types
  2. 2. Click "Add session type"
  3. 3. Fill the form: Title, Description, Length, Video call, Fee (AUD)
  4. 4. Click "Add session type"
  5. The new type is bookable at /book/emily-thompson/<its title as a slug>
Screenshot for TC-P-05

2B. Dashboard

2 passed
PassedTC-P-06Psychologist Today page3.7s

Test script

Preconditions Logged in as test@paxpsychology.dev

Steps

  1. Navigate to https://paxpsychology.dev/dashboard

Expected

  • A dark sidebar with "Pax Psychology" at the top and no role tag under it. Nav: Today, Schedule, Clients, New clients, Earnings in the main group and Your listing, Settings under "Practice". The current item is white with dark text. (Messages and Claims are flag-gated and off on staging. Claims is one item: Medicare claims, Private health, Audit and Settings are tabs on /dashboard/claims.) The sidebar footer carries a "Taking new clients" / "Not taking new clients" switch, then the user block with your name (no role under it)
  • H1 "Morning, <First>." / "Afternoon, …" / "Evening, …" with a sub-line counting today's sessions, new requests and notes to write (for example "No sessions today, no new requests and 16 sets of notes to write.")
  • Header buttons "Block time" (outlined) and "Schedule" (black)
  • Four KPI tiles: "Today" (dark), "This week" (for example "2 more than last week"), "New requests", "Notes to write"; two per row on a phone
  • A two-column row: "Today, <Weekday D Month>" with a "Full schedule" link (empty: "Nothing booked today." with an "Open schedule" button) and "New clients" with an "All requests" link (empty: "No new clients right now." / "New matches land here for you to welcome.")
  • A full-width "Worth a look" panel with an "All clients" link. Clients with no session booked for a while have a "Send a nudge" button ("Nudge" on a phone) that opens a message thread with them; shared check-ins show a mood chip (empty: "Nothing needs your eye today.")
  • On a phone (below 1024px): a dark top bar with "Pax Psychology" and your avatar, and bottom tabs Today, Schedule, Clients, Earnings, More (Messages replaces Earnings when its flag is on). More opens the full-screen menu with the whole sidebar, including the "Taking new clients" switch

Notes The old "This Month's Earnings / Active Clients / Completion Rate / Outstanding Invoices" cards, the earnings chart, the weekly schedule block and the four Quick Action buttons have all been replaced by the above.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard
  2. Sidebar: Today, Schedule, Clients, New clients, Earnings, then Practice › Your listing, Settings
  3. H1 greeting with the sessions / requests / notes sub-line, and the Block time + Schedule buttons
  4. Four KPI cards: "Today", "This week", "New requests", "Notes to write"
  5. Two-column row: "Today, <Weekday D Month>" with "Full schedule", and "New clients" with "All requests"
  6. Full-width "Worth a look" panel with an "All clients" link
  7. Notes: the old earnings cards, chart, weekly schedule block and Quick Actions are gone
Screenshot for TC-P-06
PassedTC-P-07Pending completions alert7.8s

Test script

Preconditions Logged in as a psychologist with past sessions not yet marked complete

Steps

  1. Navigate to https://paxpsychology.dev/dashboard
  2. Click "Review sessions"

Expected

  • A pink band headed "<n> sessions are waiting to be completed." (singular "1 session is waiting to be completed.") with a line naming the oldest ("The oldest is from Friday 7 August.") and, when there is any, "$X is still to be captured"
  • Sessions over 30 days old add ", and <n> sessions are over 30 days old."
  • "Review sessions" goes to /dashboard/actions: a "Today" back link, H1 "Sessions to complete", "<n> sessions waiting. Complete each one to capture payment and finalise the record. Oldest first.", three tiles (Waiting, To capture, and a pink Over 30 days) and a table of Client / Session ended / Type / Fee / Waiting with a "Complete" button per row. The Waiting chip is pink over 30 days, grey otherwise. On a phone the table scrolls sideways inside its panel. Nothing waiting shows "All caught up."
  • With more than 10 waiting, the table shows the 10 oldest and a footer "Showing 10 of <n>" with a "Show <k> more" button that adds up to 10 more rows at a time

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard
  2. The alert is headed "<n> sessions are waiting to be completed." and names when the oldest was
  3. 2. Click "Review sessions"
  4. More than 10 waiting: "Showing 10 of <n>" and "Show <k> more" under the table
Screenshot for TC-P-07

2C. Schedule and Appointments

14 passed
PassedTC-P-08Schedule views9.9s

Test script

Preconditions Logged in as a psychologist with appointments

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. Switch between the "Day", "Week" and "Month" tabs
  3. Use the previous / next arrows and the "Today" button
  4. Click an appointment

Expected

  • H1 "Schedule" with a sub-line summarising the week, such as "2 sessions this week, both on Friday. Both still need completing." or "No sessions booked this week."
  • Header buttons "Block time" (outlined) and "Book a session" (black)
  • A toolbar: arrows (aria-label "Previous week" / "Next week", or day / month in those views), a "Today" button, the range as a heading ("19 to 25 October"), Day / Week / Month tabs, a "Show availability" switch (greys out hours outside your weekly availability) and "Edit availability"
  • The week grid in a white panel: hour rows, sessions as tinted blocks (sky = video, mint = in person, black = intake) with the client's name and time; past sessions show alongside upcoming ones, a past session not yet completed carries "Needs completing", and cancelled sessions are not shown
  • Month view: a grid of whole weeks, today's date in a black circle, sessions as tinted "<time> <client>" chips
  • A legend reading "Video", "Intake", "Blocked" (plus "In person" when that flag is on)
  • Clicking an appointment opens an "Appointment details" drawer that stays open until you close it (X button or Escape), then focus is back on the session; "View full details" opens its detail page
  • On a phone the Day tab reads "Agenda": a Mon–Sun day picker (a dot marks days with sessions), then each day as a heading with session cards, and a full-width "Block time" button at the bottom; the week grid scrolls sideways inside its panel

Notes The old calendar/list toggle, the "Upcoming (X)" / "Past (X)" tabs and the search box are gone from this page – this is now a calendar-first Schedule. Clients see their own version of this route (TC-C-21).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/appointments
  2. 2. Switch between the "Day", "Week" and "Month" tabs
  3. 3. Use the previous / next arrows and the "Today" button
  4. Turn on "Show availability"
  5. The legend reads "Video", "Intake", "Blocked"
  6. 4. Click an appointment
Screenshot for TC-P-08
PassedTC-P-09Appointment detail (psychologist)11.5s

Test script

Preconditions Logged in as a psychologist with an appointment whose client has a referring GP recorded on their profile

Steps

  1. Open /dashboard/appointments/[appointmentId]

Expected

  • Back link "Back to schedule"; H1 "Session with <ClientFirstName>" with a status pill beside it (e.g. "Confirmed", "No-show"); meta line "<date>, <time>, <n> min, <video provider>". An upcoming confirmed video session shows "Join video call" in the header
  • A session that has ended and is still CONFIRMED shows a pink band: "This session has ended. Complete it to capture the $<fee> fee and close the record." with a "Complete appointment" button
  • Card "Session details" with Date, Time ("11:00 am to 1:00 pm AWST"), Session type ("<type>, <n> minutes"), Format and, until it is completed, Fee ("$<fee>, card saved" or ", no card saved")
  • A client card: initials, name, "<n> sessions, client since <Mon YYYY>", Email, Mobile and the referring GP, read from the client profile (Referrer: the doctor's name with the clinic name and "Provider no. <number>" beneath it), and a "View client profile" button (on a phone, "Message" and "Profile")
  • An upcoming confirmed session also has a "Change this session" card with "Reschedule" and "Cancel appointment"
  • Once paid, a "Your payout" card: a status chip, the payout amount, Session fee, Platform fee (<n>%), Paid on, and a "View payout" button
  • A "Session notes" card showing the current note with "Write session notes" (or "Edit session notes"; on a completed session that button sits in the header), and a "Documents" card with "Upload document" ("No documents uploaded yet." when empty). The upload dialog is headed "Upload document" with File, Description (optional), "Share with client", Cancel and Upload (uploading, sharing and deleting a document are TC-P-61)

Notes The referring GP now comes from the client profile rather than only the appointment record, so it is present even when the appointment was created without it.

Automated run

  1. 1. Open /dashboard/appointments/[appointmentId]
  2. Back link, H1 "Session with <ClientFirstName>", meta line and status pill
  3. Card "Session details" with Date, Time, Session type and Format, and the client card
  4. The referring GP is read from the client profile, with clinic and provider number
  5. "View client profile" on the client card, and the applicable session actions
  6. "Your payout" card, a session-notes button and a "Documents" card
Screenshot for TC-P-09
PassedTC-P-10Complete an appointment (client attended)45.8s

Test script

Preconditions Logged in as a psychologist with a CONFIRMED appointment whose end time has passed, booked through the normal flow so the client has a saved card. Check the detail page's Fee row reads "$<fee>, card saved" before starting: a "no card saved" session (the TC-P-27 fixture) shows the no-card copy instead

Steps

  1. Open the appointment detail page and click "Complete appointment"
  2. Step 1 – "Did <First> attend?" Choose "They attended", then "Continue"
  3. Step 2 – "Add session notes". Type notes in the textarea, then "Continue" (or "Skip")
  4. Step 3 – "Add documents". Optionally attach a file, then "Continue" (or "Skip")
  5. Step 4 – "Complete session". Review the summary and click "Complete & capture payment"

Expected

  • Every step has a title with nothing above it, a black progress bar and a grey summary line "<session type> with <client>, <day date>, <time>. $<fee> to capture". Titles per step: "Did <First> attend?", "Add session notes", "Add documents", "Complete session"
  • Step 1 reads "Confirm whether the client came to the session." over two radio cards, "They attended" and "No-show", with "Cancel" and "Continue"
  • Step 2 has no "Share notes with client" switch. It carries the line "Clinical notes stay private to you. Never shared with the client."
  • Step 3 accepts PDF, Word and image files up to 10MB and has a per-file "Share with client" switch
  • Step 4 shows "Session summary" with Client / Session type / Status "Attended" / "Amount to charge", plus the warning "Clicking 'Complete & capture payment' will charge the client's saved payment method."
  • The button shows "Processing…" and a green success toast reads "Appointment completed and payment of $<amount> charged successfully"
  • Status becomes Completed, an invoice is raised, the saved card is charged and the client is emailed
  • Any failure is shown as an inline red alert inside the dialog, not a toast (e.g. "Failed to complete appointment. Please try again.")

Notes If the charge does not settle, the session still completes but the toast comes through as a warning ("…could not be collected and is recorded as outstanding…") so you know money is outstanding. That counts as a fail for this case: it means the saved card could not be charged.

Automated run

  1. Find a CONFIRMED session whose end time has passed and whose client has a saved card
  2. 1. Open the appointment detail page and click "Complete appointment"
  3. 2. Step 1 – Session attendance ("Did <First> attend?"). Choose "They attended", then "Continue"
  4. 3. Step 2 – "Add session notes". Type notes in the textarea, then "Continue"
  5. 4. Step 3 – "Add documents". Optionally attach a file, then "Continue" (or "Skip")
  6. 5. Step 4 – "Complete session". Review the summary and click "Complete & capture payment"
  7. The status becomes Completed and an invoice is raised
  8. Email "Invoice and payment confirmation" is sent to client@paxpsychology.dev
  9. Email "You've been paid" is sent to test@paxpsychology.dev
Screenshot for TC-P-10
PassedTC-P-11Mark an appointment as No-Show29.9s

Test script

Preconditions As TC-P-10

Steps

  1. Click "Complete appointment"
  2. Choose "No-show" and read the warning, then click "Continue"
  3. On the confirm step, click "Confirm no-show"

Expected

  • Choosing No-show shows "Marking as no-show will charge the client the session fee and notify them of the missed appointment."
  • The stepper skips notes and documents – it goes straight from attendance to the confirm step
  • The confirm step is titled "Record a no-show", with a "No-show summary" box showing Status "No-show" and the fee row "No-show fee to charge", plus "Clicking 'Confirm no-show' will charge the client the session fee and send them a missed appointment notification."
  • Success toast "Appointment marked as no-show and fee of $<amount> charged"; the client is charged and notified. A warning toast saying the fee could not be collected is a fail

Automated run

  1. Find another CONFIRMED session whose end time has passed, with a card on file
  2. 1. Click "Complete appointment"
  3. 2. Choose "No-show" and read the warning, then click "Continue"
  4. 3. On the confirm step, click "Confirm no-show"
  5. The client is charged and notified, and the session reads No Show
  6. Email "Missed appointment" is sent to client@paxpsychology.dev
Screenshot for TC-P-11
PassedTC-P-27Complete an appointment for a client with no saved card (new)24.2s

Test script

Preconditions An appointment created without a saved payment method (e.g. one an admin created directly, rather than a public booking)

Steps

  1. Click "Complete appointment" and step through to the confirm step

Expected

  • The fee row reads "Session fee (not charged)" rather than "Amount to charge"
  • The callout reads "No payment method on file, so nothing will be charged and no invoice will be raised. The session will only be recorded as complete, so arrange billing with the client separately."
  • The primary button reads "Complete session" (or "Mark as no-show" on the no-show path) instead of "Complete & capture payment" / "Confirm no-show"
  • The appointment is marked complete and no invoice is created

Notes This branch is new – previously the dialog promised a charge in all cases.

Automated run

  1. Find a past CONFIRMED session whose client has no payment method on file
  2. 1. Click "Complete appointment" and step through to the confirm step
  3. The fee row reads "Session fee (not charged)" and the callout explains nothing is charged
  4. The primary button reads "Complete session" and no invoice is created
  5. No client receipt or payout invoice exists for the session
Screenshot for TC-P-27
PassedTC-P-33Psychologist cancels an upcoming session (new)10.9s

Test script

Preconditions Logged in as payments@paxpsychology.dev. Its client Parker Cancel has two CONFIRMED sessions booked on a saved card: one inside the next 24 hours, one three or more weekdays out (the acceptance seeder sets these up every run)

Steps

  1. Open the session inside 24 hours at /dashboard/appointments/[appointmentId], click "Cancel appointment" in "Change this session", read the dialog and click "Cancel Appointment"
  2. Repeat for the session more than 24 hours out

Expected

  • The dialog is "Cancel appointment?" with "Are you sure you want to cancel the <type> appointment with <client> on <date>?", a reason field, and "Keep appointment" / "Cancel appointment"
  • Nothing is charged in either case: a cancellation by the psychologist is never charged to the client, inside 24 hours or not. The session reads Cancelled, no PaymentIntent is created, and no receipt or payout row is written
  • So the dialog does not warn that the client will be charged, and the toast is "Appointment cancelled successfully"
  • The client is emailed "Appointment cancellation: <type>" and the psychologist "Appointment cancellation: <type> with Parker Cancel"

Notes Known defect (24 Oct 2026): inside 24 hours the psychologist's dialog says "This appointment is within the 24-hour cancellation window, so the client will be charged the full session fee." and the toast says "Appointment cancelled. The full session fee has been charged.", although nothing is charged (AppointmentService.cancel only charges when the client cancels). The dialog reads the clock, not who is cancelling. The automated case checks the money for real and fails on the copy.

Automated run

  1. 1. (inside 24 hours) On the detail page, click "Cancel appointment" and confirm
  2. (inside 24 hours) Nothing is charged and no payout row is written
  3. 1. (more than 24 hours out) On the detail page, click "Cancel appointment" and confirm
  4. (more than 24 hours out) Nothing is charged and no payout row is written
  5. Email "Appointment Cancellation" is sent to pcancel@paxpsychology.dev
  6. Email "Appointment cancellation: Initial consultation with Parker Cancel" is sent to payments@paxpsychology.dev
Screenshot for TC-P-33
PassedTC-P-34Block time over a booked session, then "Block and cancel" (new)8.3s

Test script

Preconditions Logged in as blocks@paxpsychology.dev, who has no time off and one CONFIRMED session next Monday at 10:00am (Casey Moves)

Steps

  1. On /dashboard/appointments, click "Block time", choose "Leave", page to next Monday and pick it, set From 9:00am and To 12:00pm, add a note and click "Block time"
  2. Read the warning and click "Block and cancel", then "Done"
  3. Delete the block from Settings › Availability › Time off

Expected

  • Step 1: nothing is saved yet. The modal warns "1 booked appointment falls in this window. Blocking will cancel it. Press Block and cancel to confirm." and the button becomes "Block and cancel"
  • Step 2: "Time blocked."; the session is cancelled with no charge, and the block is listed under Time off
  • The client is emailed "Appointment cancelled: <type> (psychologist unavailable)" and the psychologist "Appointment auto-cancelled: <type> with Casey Moves"
  • Step 3: "Delete this time off?", then the row is gone

Notes Known defect (24 Oct 2026): no warning appears. The block is saved straight away ("Time blocked."), and the 10:00am session stays booked inside it. findConflictingAppointments (data/availability-exceptions.ts) builds the day and the block's hours with the server's clock, which is UTC on Vercel, so a morning session in Sydney (the previous day in UTC) is never found, and the hours are read as UTC hours. TC-P-04's conflict probe has the same blind spot. The automated case fails on the missing warning, then still deletes its block.

Automated run

  1. 1. On Schedule, click "Block time" and choose the session's window
  2. 2. Read the warning and press "Block and cancel"
  3. The session is cancelled with no charge, and the block is in place
  4. Email "Appointment cancelled: Initial consultation (psychologist unavailable)" is sent to moves@paxpsychology.dev
  5. Email "Appointment auto-cancelled: Initial consultation with Casey Moves" is sent to blocks@paxpsychology.dev
  6. 3. Delete the block from Settings › Availability › Time off
Screenshot for TC-P-34
PassedTC-P-35Completion when the card declines, then retry (new)12.3s

Test script

Preconditions Logged in as payments@paxpsychology.dev. Its client Robin Retry has one past CONFIRMED session booked on a card that declines every charge; Robin's default card works

Steps

  1. Open the session's detail page, click "Complete appointment", choose "They attended", skip notes and documents, and click "Complete & capture payment"
  2. Reload and read the page
  3. Click "Retry payment"

Expected

  • Step 1: the session completes, with the warning toast "Session marked complete. $250.00 could not be collected and is recorded as outstanding. The client has been asked to update their card. It is charged automatically as soon as they do, and they can't book again until it's paid."
  • Step 2: a red "Payment not collected" alert with the reason and "Retry payment"; the session is Completed with its payment FAILED and an open receipt for the fee. Robin is emailed "We couldn't process your payment"
  • Step 3: a success toast; the alert goes. The fee is charged to Robin's current default card (Stripe shows the PaymentIntent succeeded for exactly the fee), the receipt is paid, and the payout row is the fee less 22%. The psychologist is emailed "You've been paid"

Automated run

  1. 1. Complete the session as attended
  2. 2. Read the detail page
  3. Email "We couldn't process your payment" is sent to retry@paxpsychology.dev
  4. 3. Click "Retry payment"
  5. The retry charged the fee to the working card and paid out 78%
  6. Email "You've been paid" is sent to payments@paxpsychology.dev
Screenshot for TC-P-35
PassedTC-P-74A completed session charges the fee and pays out 78% (new)11.2s

Test script

Preconditions Logged in as payments@paxpsychology.dev. Its client Avery Amounts has one past CONFIRMED session on a saved Visa 4242

Steps

  1. Open the session's detail page, click "Complete appointment", choose "They attended", skip notes and documents, read "Amount to charge" and click "Complete & capture payment"
  2. Reload and read the "Your payout" panel
  3. Navigate to /dashboard/earnings, find Avery's row in "All transactions" and click its "Invoice" link

Expected

  • "Amount to charge" is the session fee ($250.00 for the Initial Consultation), and the toast is "Appointment completed and payment of $250.00 charged successfully"
  • Stripe shows one succeeded PaymentIntent for exactly the fee, in AUD. The client receipt is paid for the fee; the payout row is gross $250.00, platform fee $55.00 (22%), payout $195.00 (78%)
  • Step 2: "Your payout" $195.00, "Session fee" $250.00, "Platform fee (22%)" $55.00
  • Step 3: one row for Avery Amounts: Fee $250.00, Your payout $195.00, Paid; the invoice page opens and shows $195.00
  • Avery is emailed "Invoice and payment confirmation for your session with Dr Penny Payments" and the psychologist "You've been paid: $195.00", then "Your payout statement for your session with Avery Amounts" (gross $250.00, "Pax Psychology fee (22% inc GST)" -$55.00, "Your net payout (78%)" $195.00)

Automated run

  1. 1. Complete the session as attended and read the amount
  2. Stripe charged exactly the fee; the receipt and payout rows match
  3. 2. The detail page shows the payout
  4. 3. Earnings › All transactions has the row, and its invoice opens
  5. Email "Invoice and payment confirmation for your session with Dr Penny Payments" is sent to amounts@paxpsychology.dev
  6. Email "You've been paid: $195.00" is sent to payments@paxpsychology.dev
  7. Email "Your payout statement for your session with" is sent to payments@paxpsychology.dev
Screenshot for TC-P-74
PassedTC-P-12Reschedule an appointment10.4s

Test script

Preconditions Logged in as a psychologist with an upcoming CONFIRMED appointment

Steps

  1. On the appointment detail page, click "Reschedule"
  2. Pick a new date under "Select new date", wait for slots, and pick one under "Select new time"
  3. Click "Confirm reschedule"

Expected

  • Dialog title "Reschedule appointment" with the description "Select a new date and time for this appointment." and sections "Current appointment", "Select new date", "Select new time"
  • The dialog is wider than before and scrolls as a single column – check there is no nested inner scrollbar
  • Helper text "Please select a date first." before a date is chosen, "Selected time: <slot>" after a slot is chosen, and "No available time slots for this date." where applicable
  • Errors come back as a red toast, not inline – e.g. "This time slot is no longer available. Please select a different time." when someone else has taken the slot since the list was fetched. The dialog stays open so another time can be picked
  • Button "Confirm reschedule" → "Rescheduling…"; toast "Appointment rescheduled successfully"; the detail page updates and the client is emailed

Automated run

  1. Find an upcoming CONFIRMED appointment to reschedule
  2. 1. On the appointment detail page, click "Reschedule"
  3. 2. Pick a new date under "Select new date", wait for slots, and pick one under "Select new time"
  4. 3. Click "Confirm reschedule"
  5. Email "Appointment rescheduled" is sent to moves@paxpsychology.dev
Screenshot for TC-P-12
PassedTC-P-75A psychologist reschedules and both sides see the new time (new)10.6s

Test script

Preconditions Logged in as shifts@paxpsychology.dev (Dr Shay Shifts), who has one upcoming CONFIRMED session with Rowan Shifted at 11:00am, three or more weekdays out (reset every run)

Steps

  1. Open the session's detail page and click "Reschedule" in "Change this session"
  2. Pick another day and a time other than 11:00am
  3. Click "Confirm reschedule"
  4. Reload the detail page
  5. Sign in as shifted@paxpsychology.dev and open Sessions

Expected

  • Step 3: the toast "Appointment rescheduled successfully"; the dialog closes
  • Step 4: the header shows the new day and time; the session is still Confirmed
  • Step 5: the client's card reads the new "<Weekday D Month> at <h:mm am>", and the old time is gone
  • The client is emailed "Appointment rescheduled: Initial consultation" and the psychologist "Appointment rescheduled: Initial consultation with Rowan Shifted"

Automated run

  1. 1. On the session's detail page, click "Reschedule"
  2. 2. Pick another day and a time that is not 11:00am
  3. 3. Click "Confirm reschedule"
  4. 4. Reload: the page shows the new time
  5. 5. As the client, open Sessions
  6. Email "Appointment rescheduled" is sent to shifted@paxpsychology.dev
  7. Email "Appointment rescheduled: Initial consultation with Rowan Shifted" is sent to shifts@paxpsychology.dev
Screenshot for TC-P-75
PassedTC-P-13Session Notes workspace8.8s

Test script

Preconditions Logged in as test@ (AI notes on) with a past session for a client who has not consented to AI notes: Riley Notes (notes@paxpsychology.dev), whose session the acceptance seeder keeps in "Sessions to complete". (client@ has AI-notes consent from the demo seed, so its sessions open on dictation instead, which the AI-notes tests cover.)

Steps

  1. On the appointment detail page click "Write session notes" (or "Edit session notes" if notes already exist)
  2. Read the AI-notes consent card, type notes by hand, optionally add a note to the client and assign a reading
  3. Click "Save notes" / "Save & send"

Expected

  • A wide dialog (a bottom sheet on a phone) headed "Session notes" with the sub-line "<client>, <session type>, <Fri 23 Oct>, <n> min"
  • The left column leads with "AI-assisted notes need <First>'s consent", explaining that dictation is off for this client and notes can still be written by hand, with "Send consent request" and "Record verbal consent" buttons. (A practice without AI notes sees a "Template" select (SOAP note, DAP note, Progress note, Blank) and a "Draft from transcript" action instead.)
  • The notes textarea is labelled "Your notes (private)" with the placeholder "Write your note, or dictate it after the session…" and the standing line "Clinical notes stay private to you. Never shared with the client."
  • A separate optional "Note to <First> (optional)" field and an "Assign reading" column ("Assign reading and worksheets" when worksheets are on; "Lands in <First>'s reading list when you save.") with tick cells and "Browse the full library": these, not the notes, are what the client sees
  • The footer status reads "Notes stay private to you" or "<n> items to share with <First>"; the success screen reads "Notes saved." with a "Done" button
  • Anything assigned appears on the client's Reading list (TC-C-33)

Notes This case replaces the old "Add/edit session notes and toggle sharing". The "Share notes with client" switch is retired – clinical notes are always private, so there is no Lock/Unlock indicator and no "These notes are shared with the client" state to check any more. Sharing is now done through the separate "Note to <client>" field and assigned readings, which land on the client's Reading list rather than on their appointment page.

Automated run

  1. Open Riley Notes's session (a client without AI-notes consent)
  2. 1. Click "Write session notes" (or "Edit session notes" if notes already exist)
  3. 2. Read the AI-notes consent card, type notes by hand, add a note to the client and assign a reading
  4. 3. Click "Save notes" / "Save & send"
  5. Notes: the "Share notes with client" switch is retired
Screenshot for TC-P-13
PassedTC-P-39Clinical notes stay private; shared notes reach the client (new)22.9s

Test script

Preconditions privacy@paxpsychology.dev (Pat Privacy) has two completed sessions with test@paxpsychology.dev: one whose notes are private ("Fixture private clinical note: formulation, never shown to Pat.") and one whose notes are shared with her ("Fixture note shared with Pat: practise the box breathing.")

Steps

  1. As test@, open the session with private notes
  2. Sign in as Pat and open Home, Sessions (Past), both sessions' detail pages, Your psychologist and Reading list. Look at the page and at its source (View Source, which includes the data the page was sent)
  3. Read "Notes and documents" on the session with private notes
  4. Read "Notes and documents" on the session with shared notes

Expected

  • Step 1: the psychologist sees the private note on the session
  • Step 2: the private note appears on none of Pat's pages, and in none of their HTML or data
  • Step 3: no "Session notes from Emily"; only the line saying nothing was shared
  • Step 4: "Session notes from Emily" with the shared note

Notes Known defect (24 Oct 2026): the client's Sessions list (/dashboard/appointments; one query serves both tabs) sends every column of each appointment to the browser, including the private notes (and the transcript and sessionRecap columns when there are any). They are not shown, but they are in the page's data, readable with View Source. getAppointmentsPageCached in data/appointments.ts uses include (every scalar) and the rows go straight into the client component. The automated case fails on the Sessions page.

Automated run

  1. 1. As test@, the private note is on the session (the fixture is real)
  2. 2. As the client, the private note is on no page
  3. 3. The session with private notes says nothing was shared
  4. 4. The shared note is on its session, under the psychologist's name
Screenshot for TC-P-39
PassedTC-P-61Upload, share, unshare and delete an appointment document (new)14.3s

Test script

Preconditions Logged in as a psychologist; any of their appointments. Have a PDF over 1 MB to hand (up to 10 MB)

Steps

  1. Open /dashboard/appointments/[appointmentId] and click "Upload document" on the Documents card
  2. Choose the PDF, type a description, turn on "Share with client" and click Upload
  3. Click the document's "Shared" button, then reload the page
  4. Click the document's delete (bin) button and confirm "Delete"

Expected

  • While it uploads the button reads "Uploading…"; then the dialog closes, the toast "Document uploaded successfully" appears and the document is listed with its size, date and a "Shared" button
  • Files over 1 MB upload (they go straight to private storage, not through the page); a file that isn't really a PDF, Word document or image is refused with "File content does not match an allowed document type" and the dialog stays open with no success toast
  • "Shared" flips to "Private" at once with the toast "Document is now private", and it is still "Private" after the reload
  • Deleting shows "Document deleted successfully" and the row disappears

Notes Unsharing used to leave the document shared (the server read the posted "false" as true), the dialog said "uploaded successfully" even when the upload failed, and files over 1 MB failed. All three are fixed.

Automated run

  1. Open an appointment and its upload dialog
  2. Pick a 1.5 MB PDF, tick "Share with client" and click Upload
  3. Click "Shared" to make it private; it stays private after a reload
  4. Delete it
Screenshot for TC-P-61

2D. Client Management

2 passed 1 skipped by design
PassedTC-P-14View the clients list9.5s

Test script

Preconditions Logged in as a psychologist with at least one client

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/clients
  2. Search for a client, then try each status tab
  3. Click a row
  4. Close the drawer and click "Export"

Expected

  • H1 "Clients", sub "<n> clients. None has a session booked right now." (or "<n> clients. <k> with a session booked."), an "Export" button in the header, a search box (placeholder "Search by name or email") and status tabs "All", "Active", "New", "Paused"
  • Table columns: "Client", "Last session", "Sessions", "Next" ("Nothing booked" when empty) and "Status" with "Active" / "New" / "Paused" chips; on a phone only Client and Status show, with "<n> sessions, next …" under the email
  • A "<n> clients" line under the table (page controls once there are more than 10)
  • Empty state "No clients found." (or "No clients found matching your search.")
  • Clicking a row opens a drawer with "View full profile", "Book session" and "Notes" actions and sections "Mood check-ins", "Shared journal entries", "Session history". "Book session" opens "Schedule a session" with this client already selected (TC-P-60)
  • "Export" downloads pax-clients-<YYYY-MM-DD>.csv and toasts "Exported <n> clients.". It holds every client on your list (all pages and statuses), with the columns Name, Email, Mobile, Status, Sessions, First session, Last session and Next session (dates in your timezone). It has no clinical content: no notes, session types, mood check-ins, journal entries, referrals or plans

Notes The old Name / Email / Mobile / Referring Doctor columns have been replaced.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/clients
  2. 2. Search for a client, then try each status tab
  3. 3. Click a row
  4. Notes: the old Name / Email / Mobile / Referring Doctor columns are gone
  5. 4. Click "Export"
Screenshot for TC-P-14
PassedTC-P-15View the client detail page6.5s

Test script

Preconditions As above

Steps

  1. From the drawer click "View full profile" (or go to /dashboard/clients/[id])
  2. Work through each tab

Expected

  • A "Clients" back link, H1 = the client's name and the line "<email>, <mobile>, Adult account, client since <Mon YYYY>" (or "Minor account"); "Email" and "Message" buttons
  • KPI tiles "Sessions", "Upcoming" ("Nothing booked" or "Next <date>"), "Total paid" and "Mood check-in" (the latest mood, or "None")
  • Tabs "Overview", "Sessions", "Payments", "Notes", "Documents" (plus "Assessments" and "Homework" when that flag is on, which is off on staging)
  • Overview: "Shared journal", "Client information" (with "Referred by", "Clinic" and "Provider no." where a referral is recorded) and "Recent sessions" with an "All sessions" link to the Sessions tab
  • Sessions: "Every session with <first name>" table (Date and time, Type, Length, Status, View); Payments: table (Session, Charged, Amount, Status, View invoice)
  • Empty tabs show a panel such as "No notes yet." with its action ("Add note", "Upload document", "Assign assessment", "Assign homework"). "Assign homework" opens a dialog over the tab ("Homework" picker, "Due date (optional)", "Cancel" and "Assign homework"), not a separate page

Automated run

  1. 1. From the drawer click "View full profile"
  2. H1 is the client's name, with the email, mobile, account and "client since" line
  3. KPI tiles "Sessions", "Upcoming", "Total paid", "Mood check-in"
  4. 2. Work through each tab
Screenshot for TC-P-15
Skipped by designTC-P-62Mental Health Treatment Plan GP email and a discharge report (new)14.4s

flag off on staging: the MHTP card is behind FEATURE_MHTP_ENABLED

Test script

Preconditions FEATURE_MHTP_ENABLED on (it is off on staging, so this case reports "blocked" there); logged in as a psychologist; a client with no plan this year

Steps

  1. On the client's profile click "Add Mental Health Plan", fill GP Name, GP Clinic Name, GP Provider Number, GP Email and Referral Date, and click "Create MHTP"
  2. Click "Edit" on the plan card
  3. Clear GP Email, click "Update MHTP", reload and click "Edit" again
  4. Open "GP reports" › "Discharge", click "Generate report" with the fields empty, then fill Treatment Summary, Treatment Outcomes and Future Care Recommendations, pick "Other reason" and click "Generate report"
  5. Clean up: delete the report ("Report actions" › Delete) and the plan ("More options" › Delete › "Delete MHTP")

Expected

  • Creating shows the toast "Plan created" and the card shows the plan
  • The edit form shows the GP email that was entered (it used to be dropped on save); after clearing it and saving, it stays empty
  • Empty discharge fields show "Treatment summary is required", "Outcomes summary is required" and "Future recommendations is required"; filled in, the report is created with one toast, "Discharge report created successfully", and is listed under GP Reports

Notes The discharge report could never be submitted before (its fields are named dischargeData.* but the browser checked them against a flat schema), and its success toast fired during rendering. "Treatment goals achieved" marks the plan COMPLETED, so the script uses "Other reason".

Automated run

  1. Open a client with no plan, and add one with a GP email – failed
Screenshot for TC-P-62

2E. Invoices

2 passed
PassedTC-P-16View the psychologist invoices list9.8s

Test script

Preconditions Logged in as a psychologist with invoices

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/earnings and scroll to All transactions, below the three totals
  2. Search, then use the status tabs

Expected

  • Section headed "All transactions" with the status tabs "All", "Paid", "Pending", "Void" beside it; the chosen tab is underlined and the list filters to it
  • Columns "Client", "Session" ("23 May, Brief session"), "Fee" (the session fee), "Your payout" (net of the platform fee) and "Status" (Paid / Pending chip)
  • Search placeholder "Search by invoice ID, client name or email…"
  • Each row ends with an "Invoice" link to the detail page and a "⋯" menu (View Details, Resend)
  • With no invoices at all the section is not shown (the Earnings summary says "Nothing billed yet")
  • Under the table: "Showing 1–10 of N", with "Previous" / "Next" past 10 items

Notes The list used to be its own page at /dashboard/invoices. That page is gone: a psychologist or admin visiting it gets the not-found page, and a client is still sent to their Sessions page (TC-C-24).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/earnings and scroll to All transactions
  2. 2. Search, then use the status tabs
  3. Rows carry an "Invoice" link and a "⋯" menu, and paging appears past 10 items
Screenshot for TC-P-16
PassedTC-P-17Invoice detail and resend16.2s

Test script

Preconditions Logged in as a psychologist with at least one payout invoice

Steps

  1. From All transactions on /dashboard/earnings, click "Invoice" on a row
  2. Click "Resend invoice" and confirm

Expected

  • Detail page: a "← Earnings" back link, H1 = the invoice number (or "Invoice #<stripeInvoiceId>") with a status pill ("Paid" / "Pending"), and the line "<Session type> with <client>. Paid on <date>. Created <D Month YYYY>." (or "Due <date>.")
  • Sections "Payment" (Session fee, Platform fee, Your payout, and "Total charged to the client: $…, due <date>"), "Client", "Provider", a folded "Reference numbers" (invoice and Stripe ids), and the invoice document when Stripe has one
  • "Resend invoice" opens a confirm dialog titled "Resend invoice?" with the body "This will send a new copy of the invoice to <client> at <email>. The client will receive an email with the invoice details and payment link."
  • Button shows "Resending…"; toast "Invoice has been resent to <client> at <email>" (failure: "Failed to resend invoice. Please try again.")
  • Verify this works from a payout invoice, not just a client invoice – this is a fix landing in this build

Notes A payout invoice's own id is always synthetic, so the button is answered from the client invoice behind it. Pick a payout row whose session was actually invoiced through Stripe (a real in_… id); rows keyed on a PaymentIntent (pi_…, cancel_…) or on an in-app Medicare invoice (inv_…) correctly show a disabled "Resend unavailable" – that is not the bug. If the first row you open is unavailable, try another.

Automated run

  1. 1. From the All transactions list on /dashboard/earnings, click "Invoice" on a row
  2. The detail page shows the back link, created date, invoice number, status pill and its sections
  3. 2. Click "Resend invoice" and confirm
Screenshot for TC-P-17

2F. Settings

10 passed 1 failed 1 manual
PassedTC-P-18Edit a session type12.4s

Test script

Preconditions Logged in as a psychologist with at least one session type

Steps

  1. Navigate to /dashboard/settings?section=appointment-types
  2. Click "Edit" on a session type
  3. Change the Fee (AUD) to 250.00, the Length to 1 hour, and the Description
  4. Click "Save session type"
  5. Rename the session type: its booking URL follows the new title and the old one is gone. Edit it again, change the Title (e.g. add Renamed), save, then in a signed-out window open the old and new booking URLs

Expected

  • The list reflects the new fee and duration
  • Future bookings for this type use the new values
  • "Cancel" returns to /dashboard/settings?section=appointment-types
  • Saving without changing the title keeps the booking URL
  • After the rename, /book/emily-thompson/<new title as a slug> shows the session type, and the old /book/emily-thompson/<old title as a slug> shows the 404 page ("This one's wandered off."). There is no redirect from the old URL (pre-launch, removed pages just 404)

Automated run

  1. 1. Navigate to /dashboard/settings?section=appointment-types
  2. 2. Click "Edit" on a session type
  3. 3. Change the Fee (AUD) to 250.00, the Length to 1 hour, and the Description
  4. 4. Click "Save session type"
  5. "Cancel" returns to /dashboard/settings?section=appointment-types
  6. 5. Rename the session type: its booking URL follows the new title and the old one is gone
Screenshot for TC-P-18
PassedTC-P-19Connect a calendar7.3s

Test script

Preconditions Logged in as calendar@paxpsychology.dev (nothing connected). The deployment runs the fake calendar providers (CALENDAR_FAKE_PROVIDERS=true), so "Google" is a Pax-hosted stand-in consent screen with Allow and Deny links

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=calendar
  2. Click "Google", then "Continue to Google"
  3. On the consent screen choose "Deny"
  4. Click "Try again", "Continue to Google", then "Allow"

Expected

  • The Settings nav item reads "Calendars". The "Calendars" card says "Connect the calendar you already use, and Pax keeps your booking page in step with it.", with "Busy times block bookings, automatically." and "Pax sessions in your calendar, if you like.", then "Choose where your calendar lives" with Google (Gmail or Google Workspace), Microsoft (Outlook or Microsoft 365) and Apple (iCloud), and "Pax only sees when you're busy." Zoom, when set up, is in its own "Video" card
  • Step 2 opens "Connect Google Calendar." listing what Pax will be able to do and won't ("Read event titles, notes or guests", "Change or delete anything you made yourself") and the tip "Leave every box ticked on Google's screen." Microsoft's version explains "full access to your calendars" and IT approval. On a phone both are bottom sheets
  • Step 3 returns to Settings with an inline alert (not a toast): "Google didn't give Pax access." and "Try again". An account already linked to another Pax login shows "That Google account is already connected to another Pax account." with "Use another account" and "Contact us"
  • Step 4 shows the toast "Google Calendar connected. Tick the calendars Pax should check." and a "Google Calendar" card: the account, "Connected", "Last synced … Changes in Google show up within a minute.", "Check these calendars for conflicts" with a tick per calendar, "Sync now" and "Disconnect", then "Add another calendar" (+ Google, + Microsoft, + Apple) and the "Your Pax sessions" card

Notes The real Google and Microsoft consent screens need real accounts and a second factor; with the fake off, check them by hand. The old /dashboard/settings/calendars URL is not found (see TC-P-22).

Automated run

  1. 1. Navigate to /dashboard/settings?section=calendar
  2. 2. Click "Google", then "Continue to Google"
  3. 3. On the (fake) consent screen choose "Deny"
  4. 4. "Try again", "Continue to Google", "Allow"
Screenshot for TC-P-19
PassedTC-P-90Choose which calendars are checked for conflicts8.5s

Test script

Preconditions TC-P-19 done (calendar@ has the fake Google connected)

Steps

  1. Open Settings › Calendars and look at "Check these calendars for conflicts"
  2. Untick "Family" and reload
  3. Tick "Family" again and reload

Expected

  • The main calendar ("Your main calendar") and "Family" ("Your calendar") start ticked; "Holidays in Australia" ("All-day public holidays. Tick to block those days.") and "Clinic roster (shared)" ("Shared with you, read only") start unticked
  • Each tick saves as soon as it changes and survives a reload
  • Only busy events in ticked calendars block bookings; events marked free never do

Automated run

  1. 1. The connected Google card lists its calendars with their default ticks
  2. 2. Untick "Family", reload
  3. 3. Tick "Family" again
Screenshot for TC-P-90
PassedTC-P-91A busy event in a connected calendar blocks a time3.7s

Test script

Preconditions TC-P-19 done. A weekday about a week out with 10:00 free

Steps

  1. Check the 10:00 time is offered on that day (booking page or /api/v1/psychologists/cara-calendar/availability?date=<day>&duration=60)
  2. Add a busy event 10:00 to 11:00 that day to the Google calendar (fake: POST /api/dev/calendar-fake with action: "seed")
  3. Check the times again
  4. Open the Schedule on that day and click the busy block

Expected

  • After step 2, 10:00 is no longer offered
  • The Schedule shows a hatched "Busy (Google)" block, "10:00 to 11:00 am", never the event's title; the header adds "Your calendars are keeping 1 other time off your booking page."; under the toolbar "Checking Google (…). Synced … ago." with "Calendar settings"; a "Calendar busy times" switch hides the blocks; the legend adds "Busy in your calendars"
  • The popover reads "Busy in Google", the day and time, "From your <calendar> calendar, <account>. Clients can't book this time." and "Pax doesn't see what the event is. To free this time, change it in Google."
  • On a phone (Agenda) the same time is a "Busy (Google)" row with the calendar's name

Automated run

  1. 1. The 10:00 time is bookable before the event
  2. 2. Add a busy event 10:00 to 11:00 to the Google calendar
  3. 3. The 10:00 time is no longer offered
  4. 4. Open the Schedule on that day: a Busy (Google) block, no title
Screenshot for TC-P-91
PassedTC-P-92A busy time over a booked session is flagged as a clash5.5s

Test script

Preconditions TC-P-19 done. calendar@'s seeded session with Casey Moves (three or more weekdays out, 11:00)

Steps

  1. Add a busy event 11:20 to 12:00 on the session's day to the Google calendar
  2. Open the Schedule on that day
  3. Click "It's fine", then reload

Expected

  • The session block is marked "Clash" (red outline) and shares its slot with the busy block. Below the grid: "Casey's session clashes with a busy time." and "<day>: the session is 11:00 am to 12:00 pm, and something in Google starts at 11:20 am. Pax won't move or cancel it. Reschedule with Casey, or leave it if it's fine.", with "Reschedule" (opens the session) and "It's fine"
  • After "It's fine" the flag goes and stays gone after a reload; the busy block stays. A different busy time over the same session flags again
  • Pax never moves or cancels the session itself

Automated run

  1. 1. Add a busy event 11:20 to 12:00 on the session's day
  2. 2. Open the Schedule on that day
  3. 3. Click "It's fine" and reload
  4. Clean up: clear the fake calendar's events
Screenshot for TC-P-92
PassedTC-P-93Add Pax sessions to a calendar5.3s

Test script

Preconditions TC-P-19 done

Steps

  1. In "Your Pax sessions", check nothing has been added yet
  2. Turn on "Add to my calendar" and choose the main calendar under "Add Pax sessions to"
  3. Look at the calendar (fake: GET /api/dev/calendar-fake?provider=GOOGLE, written)
  4. Choose "“Busy” only"
  5. Choose "“Pax session” and the client's first name" again

Expected

  • Nothing is written until a calendar is chosen ("Nothing is added until you choose a calendar."). Read-only calendars are not offered. With two connections the list is grouped by account, and only one calendar ever takes sessions ("One calendar only, so sessions never show up twice.")
  • Step 2's toast: "Pax sessions will be added to that calendar". The upcoming session appears in the calendar as "Pax session: Casey", with the time and a sign-in link to the session, no surname, type, contact details or notes
  • "How it looks in your calendar" previews the event. Step 4 changes the preview and the written event to "Busy"; step 5 changes them back
  • A session the psychologist booked that the client hasn't confirmed is written as tentative

Automated run

  1. 1. Under "Your Pax sessions", nothing is added yet
  2. 2. Turn on "Add to my calendar" and choose the main calendar
  3. 3. The upcoming session is written as Pax session: <first name>
  4. 4. Choose "Busy" only
  5. 5. Back to "Pax session" and the first name
Screenshot for TC-P-93
PassedTC-P-94A broken calendar connection shows on Today until reconnected11.5s

Test script

Preconditions TC-P-19 and TC-P-93 done

Steps

  1. Make Google refuse Pax's access (fake: action: "expire-token", then action: "fail" with operation: "refresh" and status: 400), then load any booking times
  2. Open Today
  3. Open Settings › Calendars
  4. On Today click the X ("Hide this until tomorrow") and reload
  5. In Settings click "Reconnect Google", "Continue to Google", "Allow"

Expected

  • Today (and the Schedule) open with "Your Google calendar disconnected." "Reconnect so clients can't book over your other commitments. Busy times from <account> stopped coming through on <date>.", "Reconnect" and the X
  • The sidebar Settings item and the Calendars sub-nav item carry an orange dot
  • The Google card reads "Needs reconnecting", "Busy times from this calendar aren't blocking bookings." and why, with "Reconnect Google". "Your Pax sessions" says "Paused until you reconnect Google. Sessions booked meanwhile are added when you do."
  • After step 4 the banner stays hidden for the rest of the day (the dots stay)
  • After step 5 the card is "Connected" again with its ticks as they were, and the banner and dots are gone
  • An email "Your Google calendar disconnected" goes out when it breaks (with the account, calendars and when it stopped), and one reminder after 3 days

Automated run

  1. 1. Make Google refuse Pax's access (fake: expired token, refresh refused)
  2. 2. Open Today
  3. 3. Settings shows the dot and Needs reconnecting
  4. 4. Today: "Hide this until tomorrow", reload
  5. 5. Settings › Calendars: "Reconnect Google", "Continue to Google", "Allow"
Screenshot for TC-P-94
FailedTC-P-95Connect iCloud with an app-specific password, then disconnect36.1s

Test script

Preconditions TC-P-19 done. With the fake on, the app-specific password fake-fake-fake-fake connects a fake iCloud; an email starting wrong is refused

Steps

  1. Click "+ Apple" under "Add another calendar"
  2. Enter wrong.cara@icloud.com and abcd-efgh-ijkl-mnop, click "Connect iCloud"
  3. Enter cara@icloud.com and fake-fake-fake-fake, click "Connect iCloud"
  4. On the iCloud card click "Manage", "Disconnect", then "Keep it connected"
  5. Click "Disconnect" again and confirm
  6. On the Google card click "Disconnect", tick the "Also remove" box and confirm

Expected

  • Step 1 opens "Connect iCloud Calendar." with the four steps (a link to account.apple.com), "Apple ID email", "App-specific password" ("Four groups of four letters. Not your Apple ID password.") and "We encrypt it …". A bottom sheet on a phone
  • Step 2 keeps the dialog open with "Apple didn't accept that email and password." and the password field marked
  • Step 3 closes it with the toast "iCloud Calendar connected. Tick the calendars Pax should check." The iCloud card starts collapsed: "Checking 2 of 3 calendars for conflicts" and "Manage". Its line says "We check iCloud every 10 minutes."
  • The disconnect confirm reads "Disconnect iCloud Calendar?", "Busy times from <account> will stop blocking bookings straight away. Clients could then book over those times.", an unticked "Also remove …" box ("Leave this unticked to keep them there. They just won't update any more."), "Your sessions in Pax don't change, and nothing is cancelled.", "Keep it connected" and a red "Disconnect"
  • With sessions written, the box names them: "Also remove the 1 upcoming Pax session from your <calendar> calendar". Toasts: "iCloud Calendar disconnected", "Google Calendar disconnected"; the page is back to the empty state

Automated run

  1. 1. "Add another calendar": Apple
  2. 2. A refused password stays in the dialog – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('dialog').getByRole('alert').filter({ hasText: 'Apple didn\'t accept that email and password.' })
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('dialog').getByRole('alert').filter({ hasText: 'Apple didn\'t accept that email and password.' }) with timeout 30000ms
  - waiting for getByRole('dialog').getByRole('alert').filter({ hasText: 'Apple didn\'t accept that email and password.' })
Screenshot for TC-P-95
ManualTC-P-20Open the Stripe Express dashboard3.9s

The last hop of step 2 leaves Pax: 'Stripe Dashboard' mints a one-time Express login link and opens connect.stripe.com, which is Stripe's own product and cannot be asserted from here. Everything Pax renders – the 'Connected' badge, the Account / Country / Charges / Payouts rows and the button itself – is checked below.

Test script

Preconditions Logged in as a psychologist with Stripe connected

Steps

  1. Navigate to /dashboard/settings?section=payouts
  2. Click "Open Stripe dashboard"

Expected

  • The card shows the "Connected" badge and the Account, Country, Charges and Payouts rows, and the button opens the Stripe Express dashboard for the connected account.

Automated run

  1. 1. Navigate to /dashboard/settings?section=payouts
  2. The card shows the "Connected" badge and the Account, Country, Charges and Payouts rows
  3. 2. Click "Open Stripe dashboard" – the button opens the Stripe Express dashboard (hosted hop is MANUAL)
Screenshot for TC-P-20
PassedTC-P-21Settings › Availability (new)7.9s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=availability
  2. Click "Edit weekly hours", change something and save
  3. Close, then click "Block time" and add a block
  4. Check the "Time off" panel and delete an entry

Expected

  • Card "Availability" with the copy "Your usual weekly hours decide when clients can book you. Block time takes one-off hours or whole days out of those hours: a lunch break, supervision or leave."
  • Two buttons: "Edit weekly hours" and "Block time" – they open exactly the same modals as the Schedule page (TC-P-03, TC-P-04)
  • A second panel titled "Time off" listing upcoming blocks as "<Wed 3 Sep>, 9:00am–5:00pm" with the reason beneath, each with a delete (trash) button
  • Empty state "No time off coming up. Use Block time to add some."
  • Deleting shows "Delete this time off?" / "<range> will be bookable again."
  • A block added here immediately appears in the list after the modal's "Done"

Notes This section is new in the redesign. The old /dashboard/settings/availability URL is not found (see TC-P-22).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/settings?section=availability
  2. 2. Click "Edit weekly hours", change something and save
  3. 3. Close, then click "Block time" and add a block
  4. 4. Check the "Time off" panel and delete an entry
  5. Notes: the old /dashboard/settings/availability URL is not found
Screenshot for TC-P-21
PassedTC-P-22Old settings URLs return not found (new)7.8s

Test script

Preconditions Logged in as a psychologist

Expected

  • Each one answers 404 and shows the not-found page ("This one's wandered off."). The address bar keeps the URL you typed: nothing redirects to the settings hub.

Notes Moved pages are deliberately not redirected before launch. Every setting is in the hub at /dashboard/settings?section=<id> (for example ?section=availability, ?section=account, ?section=payouts, ?section=payment-methods, ?section=calendar, ?section=notifications). /dashboard/settings/appointment-types/add and /dashboard/settings/appointment-types/[id] are still real pages. The bare /dashboard/settings/appointment-types index has been removed and also returns the not-found page; Session types are at /dashboard/settings?section=appointment-types.

Automated run

  1. Visit /dashboard/settings/availability and note what you see
  2. Visit /dashboard/settings/profile and note what you see
  3. Visit /dashboard/settings/billing and note what you see
  4. Visit /dashboard/settings/payments and note what you see
  5. Visit /dashboard/settings/payment-methods and note what you see
  6. Visit /dashboard/settings/calendars and note what you see
  7. Visit /dashboard/settings/notifications and note what you see
  8. Notes: appointment-types/add and appointment-types/[id] are real pages
  9. Notes: the bare /dashboard/settings/appointment-types index was removed and 404s
Screenshot for TC-P-22
PassedTC-P-23Account actions – pause and resume the listing (new)11.6s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to /dashboard/settings?section=actions
  2. Click "Pause"
  3. Check /psychologists in a signed-out window
  4. Return and click "Resume"

Expected

  • Card "Account actions" with the row "Pause your listing" / "Hide from search and stop new requests. Your existing clients stay." and a "Pause" button
  • Once paused the row reads "Resume your listing" / "Your listing is paused. Resume to appear in search and take new requests."
  • A paused psychologist does not appear in the public directory
  • The same card carries "Sign out" / "You'll need to sign in again on this device."

Notes The sidebar footer also has a "Taking new clients" switch. It flips at once; if the change can't be saved it shows an error toast and flips back (it used to take the page to the error screen).

Automated run

  1. 1. Navigate to /dashboard/settings?section=actions
  2. 2. Click "Pause"
  3. 3. Check /psychologists in a signed-out window
  4. 4. Return and click "Resume"
  5. Resumed, the listing is back in the public directory
Screenshot for TC-P-23

2G. New surfaces

4 passed
PassedTC-P-24New clients queue (new)11.7s

Test script

Preconditions Logged in as a psychologist with an inbound match request. The automated run seeds its own extra request for step 3 (a PENDING first session with client@, about 20 days out at 5:10am Sydney time) and deletes it afterwards.

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/new-clients
  2. Click "Welcome <First>" on a request
  3. On another request, click "Suggest another time", check the picker shows your open times, and click "Cancel". Then click "Not a fit", type a short note, and click "Cancel and let <First> know"
  4. Sign in as that client and open Sessions, "Past" tab

Expected

  • H1 "New clients" with the sub-line "New matches who have booked a first session. Say hello to welcome them, suggest another time, or let them know kindly if you're not the right fit. Nobody is charged until after a session."
  • Cards lead with the client's name and a "<n>% match" figure, then a sage "Booked first session" band reading "<date> at <time>, <n> min by video" with a "Card saved" pill (never "Paid": the card is only charged after the session), the intake Q&A ("What's bringing them here" / "What they're looking for"), issue tags, and the buttons "Welcome <First>", "Suggest another time" and "Not a fit"
  • Welcoming shows "Welcomed <First>. First session's locked into your calendar."
  • "Not a fit" opens "Not the right fit for <First>?" explaining the session is cancelled, they get a kind note with a link to find another psychologist, and they won't be charged. The note field is "A short note for <First> (optional)" with the hint "This is shown to <First> in the email." Buttons: "Keep request" / "Cancel and let <First> know"
  • Confirming shows "Thanks. We've let <First> know kindly, with a link to find another match. They weren't charged." The request leaves the queue on reload
  • The client is emailed "A note from <psychologist first name> about your first session": no blame, the note as written, the session marked Cancelled with Charge "None", a "Find another match" button to /onboarding, and the Lifeline line (13 11 14)
  • The session is CANCELLED with no charge and no invoice of either kind; the SetupIntent is tidied and an audit row NEW_CLIENT_NOT_A_FIT is written
  • In the client's Sessions, "Past" tab, the session reads "Cancelled: not the right fit" with a "Find another match" chip to /onboarding
  • Empty state "No new clients right now." with "New matches who book a first session land here. Keep your listing open to new clients to get matched." and a "Check your listing" button to /dashboard/listing

Notes The same requests appear on the Today page under "New clients", in a compact rail whose chip reads "Wants <date> at <time>" – that wording belongs to the rail, not to the full queue card. The queue is cached (cacheLife("minutes")), so a request seeded straight into the database takes up to a minute or two of reloads to appear. Step 2 consumes the request, so re-seed before each pass. The full "Suggest another time" flow is TC-P-56.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/new-clients
  2. The queue lists requests, or shows its empty state
  3. Cards carry the "Booked first session" band and the three actions
  4. 2. Click "Welcome <First>" on a request
  5. 3. On another request, click "Not a fit", add a short note and confirm
  6. Email "about your first session" is sent to client@paxpsychology.dev
  7. The session is cancelled with no charge and no invoice
  8. It leaves the queue
  9. The client sees it as "Cancelled: not the right fit" in Sessions
Screenshot for TC-P-24Screenshot for TC-P-24
PassedTC-P-25Earnings (new)7.1s

Test script

Preconditions Logged in as a psychologist with completed, paid sessions

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/earnings

Expected

  • H1 "Earnings" with the sub-line "<Month> so far. Session fees settle to your account through Stripe. You keep 78%." and a "Stripe dashboard" button
  • Three totals: "This month" (billed), "Waiting to capture" (fees of sessions still to complete, linking "<N> sessions to complete" to Actions) and "Paid to you" ("$… this week, through Stripe Connect")
  • The full All transactions list further down the same page (see TC-P-16)
  • With Stripe Connect incomplete the page shows the payout setup prompt instead

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/earnings
  2. H1 Earnings with the month sub-line and the KPI tiles
Screenshot for TC-P-25
PassedTC-P-26Your listing (new)6.0s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/listing
  2. Edit the public-profile fields and save
  3. Open /psychologists/[psychologistSlug] in a signed-out window

Expected

  • H1 "Your listing" with a "Live" (or "Held") pill, the subtitle "Your public profile in Search Psychologists. This is what clients see before they book.", "Preview public page" and "Save changes"; cards "Basics", "How you introduce yourself", "What you work with" and "Sessions and availability" beside a "Live preview" card. The edits appear on the public profile page and on the directory card. Clearing "Medicare rebate" and saving leaves it empty after a reload (not set), never "0.00".

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/listing
  2. 2. Edit the public-profile fields and save
  3. 3. Open /psychologists/[psychologistSlug] in a signed-out window
  4. Restore the original location
Screenshot for TC-P-26
PassedTC-P-28Choose specialties on your listing (new)6.3s

Test script

Preconditions Logged in as a psychologist

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/listing and find "Specialties" in the "What you work with" card
  2. Click the "Search specialties" field, type part of a specialty you don't have yet, and pick it with the arrow keys and Enter
  3. Type something that isn't on the list (e.g. "zzz")
  4. Remove the new chip with its × and add it back, then click "Save changes" and reload
  5. Open /psychologists/[psychologistSlug] in a signed-out window
  6. Remove the specialty again and save, so the listing is back as it was

Expected

  • The field opens a list grouped under "Mental Health", "Performance", "Wellbeing" (and "Other" for anything outside the quiz areas), filtered as you type. Enter adds the highlighted specialty as a chip above the field, and each chip has a "Remove <name>" × button. A query with no match shows 'No specialties match "zzz"' and Enter adds nothing: there is no way to make up a new specialty. "Profile updated" appears on save, and the chip is still there after the reload. The public profile's "Specialities" section lists it, so the directory filters and the matching quiz see it too.

Notes Before this fix, "Add specialty" added the next name from a fixed list, and saved it to a field the public page and matching never read.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/listing and find "Specialties" in the "What you work with" card
  2. 2. Type part of a specialty you don't have yet and pick it with the arrow keys and Enter
  3. 3. Type something that isn't on the list (e.g. "zzz")
  4. 4. Remove the new chip with its × and add it back, then click "Save changes" and reload
  5. 5. Open /psychologists/[psychologistSlug] in a signed-out window
  6. 6. Remove the specialty again and save, so the listing is back as it was
Screenshot for TC-P-28

2H. AI session notes (flag)

7 passed 4 skipped by design
Skipped by designTC-P-70AI notes need the client's consent first (new)–

flag off on staging: AI notes run locally with AI_NOTES_FAKE_PROVIDERS=true (pnpm test:e2e:ai-notes)

Test script

Preconditions AI notes on. A client who has not consented

Steps

  1. Open the session's notes workspace
  2. Click "Record verbal consent", tick the confirmation and click "Record consent"
  3. For a second client, click "Send consent request"; as the client, agree in Settings › Privacy, then reopen the workspace

Expected

  • Without consent the workspace says AI-assisted notes need the client's consent and offers no "Start recording"
  • After verbal consent "Dictate your notes" appears and the consent is shown as verbal
  • The request shows "Request sent …" with "Send again", the client gets the "… would like to use AI to help with their notes" email, and once they agree dictation is on
Skipped by designTC-P-71Dictate and draft a session note (new)–

flag off on staging: AI notes run locally with AI_NOTES_FAKE_PROVIDERS=true (pnpm test:e2e:ai-notes)

Test script

Preconditions AI notes on, a consented client

Steps

  1. Pick an approach (e.g. CBT), dictate, and wait for "Draft ready"
  2. Switch the format (SOAP to DAP), tick "reviewed and edited" and click "Save notes"
  3. Upload an audio file instead of dictating
  4. Start a dictation and cancel it while it is processing
  5. Change the approaches and regenerate
  6. Retry a draft that failed
  7. At phone width, record through the bottom sheet

Expected

  • The draft fills "Your notes" in the chosen format and lists anything the dictation did not cover; switching format rewrites it
  • "Save notes" stays disabled until the review box is ticked; saving shows "Notes saved."
  • An uploaded file is drafted like a dictation; a cancelled one leaves no draft; a regenerate rewrites the draft; a failed draft can be retried
  • On a phone the recorder runs in a bottom sheet through to a draft
Skipped by designTC-P-72Recording needs consent before the session is joined (new)–

flag off on staging: AI notes run locally with AI_NOTES_FAKE_PROVIDERS=true (pnpm test:e2e:ai-notes)

Test script

Preconditions AI notes on, a Zoom session type, an upcoming session

Steps

  1. Join the session ("Before you join")
  2. Join it again from the Schedule panel

Expected

  • "Before you join" asks for recording consent first; the client gets the "… would like to record your next session" email; once consent is given the import is queued
  • Joining from the Schedule panel goes through the same "Before you join" step
Skipped by designTC-P-73A recorded Zoom session is imported and drafted (new)–

flag off on staging: AI notes run locally with AI_NOTES_FAKE_PROVIDERS=true (pnpm test:e2e:ai-notes)

Test script

Preconditions AI notes on, Zoom connected, a recorded session

Steps

  1. Let the recording webhook arrive and wait for the import
  2. Open the draft and click a citation; add a dictation to it
  3. Connect Zoom from Settings › Calendar
  4. Send Zoom's URL validation challenge and a webhook with a bad signature
  5. Run the sweep

Expected

  • The recording is imported, transcribed and drafted, and "Your draft note for <client> is ready" is emailed
  • A citation jumps to its place in the transcript; a dictation can be added to the draft
  • Settings › Calendar starts the Zoom connection
  • The validation challenge is answered; a webhook whose signature does not match is rejected
  • The sweep cancels abandoned recordings and deletes expired audio
PassedTC-P-60Book a session from Schedule and from a client's drawer (new)5.8s

Test script

Preconditions Logged in as test@paxpsychology.dev with weekly availability and at least three clients

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/appointments and click "Book a session"
  2. Look at the days and times offered, pick a time, then click "Cancel"
  3. Navigate to /dashboard/clients, open a client's drawer (not the first client) and click "Book session"
  4. Check the client, days and times, toggle "Repeat weekly", then "Cancel"

Expected

  • "Schedule a session" / "Book an existing client into an open slot." with "Client" and "Session type" selects
  • Days are chips for the next four weeks that have an open slot (weekly availability minus existing bookings, connected calendars and time off); the times are that day's open slots for the chosen session type, shown as "Time (<n> min)". No time already past is offered, and there is no fixed 9:00am to 5:00pm grid. With nothing open: "No open times in the next four weeks for this session type."
  • Changing the session type reloads the days and times
  • From the drawer, the Client select shows that client (from Schedule it starts on the first client)
  • "Repeat weekly" (same client, day and time every week, "One confirmation covers the whole run.") sends the session plus up to five weekly repeats to the client to confirm (TC-P-31). The button reads "Send to <First> to confirm"

Notes The modal used to offer a fixed 9:00am to 5:00pm grid including times already past, and the drawer opened it on the first client in the list. The server also refuses a time that has passed.

Automated run

  1. 1. On Schedule, click “Book a session”
  2. 2. Open a client's drawer (not the first) and click “Book session”
  3. 3. The modal is for that client, with real open times
Screenshot for TC-P-60
PassedTC-P-31Book a weekly run for a client to confirm (new)14.2s

Test script

Preconditions Logged in as weekly@paxpsychology.dev (Dr Wren Weekly), whose client is Quinn Repeats. Another client is already booked at 10:00am two weeks after the first weekday three or more days out (the acceptance seeder sets this up every run, and removes last run's request)

Steps

  1. On /dashboard/appointments, click "Book a session"; choose Quinn Repeats and "Initial consultation"
  2. Pick the first weekday three or more days out (two weeks before the clash) and 10:00am, and turn on "Repeat weekly"
  3. Read the "Quinn confirms it" note, then click "Send to Quinn to confirm"
  4. On the Schedule, open that day

Expected

  • Before sending, the dialog says "Quinn confirms it: We send Quinn a request by email and in their dashboard. They confirm with their card, then get the joining details. The time is held for 48 hours, then released if they don't answer."
  • "Sent to Quinn." with "Quinn needs to confirm before it's booked.", the client, the day and time with "weekly (5 sessions)", "Status: Waiting for Quinn", "Held for 48 hours", and Done and Withdraw request
  • Five sessions exist, one a week at 10:00am for six weeks, with the clash week skipped (the booking already there is untouched). All five are Awaiting confirmation (PENDING_CLIENT) in one booking request, with no card attached and no invoice: nothing can be charged until Quinn confirms
  • On the Schedule each is drawn with a dashed outline, "Quinn Repeats (waiting)", and the legend has "Waiting for client"
  • Quinn is emailed "Wren booked sessions for you: please confirm" (the sessions, the fee after each session, "Please answer by <date, time>", Confirm sessions and Decline), and no "Appointment Confirmation" yet; those come when Quinn confirms (TC-C-90)

Notes Changed 25 Oct 2026. "Book a session" used to book outright on the client's default saved card, so completing the session charged a card the client had never agreed to use for it. The hold is 48 hours, ending at least an hour before the first session (config/booking-requests.ts); a time less than 1.5 hours away can't be sent ("That's too soon for <First> to confirm."). The expiry job runs every 15 minutes (/api/cron/booking-requests).

Automated run

  1. 1. On Schedule, click "Book a session" and choose the client and type
  2. 2. Pick the day and 10:00am, and turn on Repeat weekly
  3. 3. The dialog says Quinn will be asked to confirm; click "Send to Quinn to confirm"
  4. Five weekly sessions are held for Quinn, with no card and no invoice
  5. 4. The Schedule shows the first one dashed, waiting for the client
  6. Email "Wren booked sessions for you: please confirm" is sent to repeats@paxpsychology.dev
  7. No email "Appointment Confirmation" to repeats@paxpsychology.dev
Screenshot for TC-P-31
PassedTC-P-80Withdraw a session the client hasn't confirmed (new)4.8s

Test script

Preconditions Logged in as proposes@paxpsychology.dev (Dr Piper Proposes) with a session booked for Hollis Held (held@) that Hollis hasn't confirmed. The automated run seeds its own (the fifth weekday out at 9:00am) and deletes it afterwards.

Steps

  1. On /dashboard/appointments, open that day and click the dashed "Hollis Held (waiting)" session
  2. Click "Withdraw request"

Expected

  • The panel shows the status pill "Awaiting confirmation", "Waiting for Hollis." and "Held until <date, time>. The time stays off your calendar for clients until they answer, and opens again if they don't. Nothing is booked or charged until they confirm with their card." There is no Join, Complete, Reschedule or Cancel
  • Withdrawing toasts "Request withdrawn. The time is open again." and the session leaves the Schedule
  • The request is WITHDRAWN and its session CANCELLED, so the time is bookable again
  • Hollis is emailed "Piper withdrew a booking request" ("Nothing was charged.")

Notes The same Withdraw request is on the dialog's "Sent to <First>." screen straight after sending (TC-P-31).

Automated run

  1. 1. On the Schedule, open the dashed session
  2. 2. Click "Withdraw request"
  3. The request is withdrawn and the time is free
  4. Email "Piper withdrew a booking request" is sent to held@paxpsychology.dev
Screenshot for TC-P-80
PassedTC-P-81A session waiting on the client can't be completed or charged (new)4.4s

Test script

Preconditions Logged in as proposes@ with a session for Hollis Held whose time has gone by while Hollis still hasn't confirmed (the hold outlasts the cron by up to 15 minutes; the automated run seeds one yesterday at 2:00pm with the hold still open, and deletes it afterwards)

Steps

  1. On the Schedule, open yesterday and click the dashed session
  2. Open its detail page (/dashboard/appointments/<id>)

Expected

  • The panel has no "Complete & capture payment"; it offers "Withdraw request"
  • The detail page has no "Complete appointment"
  • The session stays PENDING_CLIENT with no card, payment status PENDING and no invoice

Notes The server refuses it too: completing, marking a no-show, retrying a charge or confirming it on the client's behalf all fail with "This session is waiting for the client to confirm it, so it can't be completed or charged yet." Cancelling it from the practice's side (the Schedule, the API, time off) withdraws the whole request instead (TC-P-83), with no fee.

Automated run

  1. 1. Open the held session from the Schedule
  2. 2. Open its detail page
  3. Nothing was completed, charged or invoiced
Screenshot for TC-P-81
PassedTC-P-82A held time is off the calendar for other bookings (new)5.5s

Test script

Preconditions Logged in as proposes@

Steps

  1. Click "Book a session", choose Lou Linked, and note the first day and time offered; click "Cancel"
  2. Book that time for a client to confirm (the automated run seeds the held session directly, and deletes it afterwards)
  3. Click "Book a session" again and choose Lou Linked

Expected

  • The held time is no longer offered on that day (if it was the day's only time, the day itself is gone)
  • The same is true everywhere times are offered (the public booking page, rebook, reschedule, Block time conflicts) until the client confirms, declines, the psychologist withdraws, or the hold expires

Notes A held session counts as busy wherever bookings clash (SLOT_HOLDING_STATUSES in lib/appointment-status.ts).

Automated run

  1. 1. Note the first open time offered
  2. 2. That time is held for a client to confirm
  3. 3. Open Book a session again: the held time isn't offered
Screenshot for TC-P-82
PassedTC-P-83Time off over a held session withdraws the request (new)5.7s

Test script

Preconditions Logged in as proposes@ with a session for Hollis Held next Monday at 11:00am that Hollis hasn't confirmed. The automated run seeds its own and deletes it, and the time off, afterwards.

Steps

  1. On the Schedule click "Block time", choose "Leave", page to next week, pick Monday, 11:00am to 12:00pm, and click "Block time"
  2. Click "Block and cancel"

Expected

  • The held session is listed as a conflict ("1 booked appointment falls in this window. Blocking will cancel it…"), and blocking shows "Time blocked."
  • The whole booking request is withdrawn (a weekly run too, not just the session in the window): the request is WITHDRAWN and its sessions CANCELLED, with nothing refunded or charged
  • Hollis is emailed "Piper withdrew a booking request", and Piper "Withdrawn: Hollis Held's <type>" ("…was withdrawn because you blocked that time off. We've let them know, and nothing was charged."). No "cancelled for time off" email goes out for it

Notes Cancelling a held session from the Schedule or the mobile API withdraws the request the same way (reason "you cancelled it from your Schedule"). A client can't cancel a held session; they decline it.

Automated run

  1. 1. Click "Block time" and block next Monday 11:00am to 12:00pm
  2. 2. The held session is listed as a conflict; click "Block and cancel"
  3. The whole request is withdrawn, and the slot freed
  4. Email "Piper withdrew a booking request" is sent to held@paxpsychology.dev
  5. Email "Withdrawn: Hollis Held's" is sent to proposes@paxpsychology.dev
Screenshot for TC-P-83
PassedTC-P-84The calendar feed shows a held session as tentative (new)916ms

Test script

Preconditions proposes@ with the calendar feed on (Settings, Integrations) and a session for Hollis Held that Hollis hasn't confirmed. The automated run seeds both and removes them afterwards.

Steps

  1. Open the feed URL (/api/calendar/feed/<token>), or look at the subscribed calendar

Expected

  • The held session is in the feed as STATUS:TENTATIVE titled "Pax session: Hollis", with no attendees: Hollis's email isn't in it
  • Once Hollis confirms it turns into the normal confirmed event; once declined, withdrawn or expired it shows as cancelled, like any cancelled session
  • The client's own feed doesn't show it until they confirm

Notes With calendar write-back on ("Add Pax sessions to this calendar"), the held session is written to the psychologist's calendar as tentative too (Google status: tentative, Outlook "Tentative", Apple STATUS:TENTATIVE), turned firm when the client confirms and deleted when it is declined, withdrawn or expires. That part is covered by unit tests (tests/unit/lib/integrations/calendar-writeback.test.ts); staging has no write-back calendar connected.

Automated run

  1. 1. Open the psychologist's calendar feed
Screenshot for TC-P-84

2H. Isolation between psychologists (new)

5 passed
PassedTC-P-63A psychologist sees only the client documents they uploaded (new)11.0s

Test script

Preconditions The Sam Shared fixture exists

Steps

  1. Sign in as test@, open /dashboard/clients, search "Sam Shared", open the drawer and click "View full profile", then the Documents tab. Copy the download link of "E2E test-at referral.pdf"
  2. Sign out, sign in as test2@paxpsychology.dev, open the same record and its Documents tab
  3. Still as test2@, open the download link copied in step 1

Expected

  • test@ sees "E2E test-at referral.pdf" and not "E2E test2-at intake notes.pdf"
  • test2@ sees "E2E test2-at intake notes.pdf" and not test@'s document
  • The copied link returns 404 for test2@

Notes Before this, any psychologist with an appointment with the client saw and could download every psychologist's documents on them.

Automated run

  1. 1. As test@, open Sam Shared's record, Documents tab
  2. 2. As test2@, open the same record, Documents tab
  3. 3. As test2@, request test@'s document by its download URL
Screenshot for TC-P-63
PassedTC-P-64Shared journal entries reach only the psychologist they were shared with (new)10.2s

Test script

Preconditions The Sam Shared fixture exists

Steps

  1. Sign in as test@ and open Sam Shared's record (Overview, "Shared journal")
  2. Sign in as test2@ and open the same record

Expected

  • test@ sees "Shared with Dr Thompson only: the sleep diary." and not the entry shared with Dr Wilson
  • test2@ sees "Shared with Dr Wilson only: the exam worries." and not the entry shared with Dr Thompson
  • The same holds for mood check-ins on the record and the Today screen's "Worth a look"

Automated run

  1. 1. As test@, open Sam Shared's record
  2. 2. As test2@, open the same record
Screenshot for TC-P-64
PassedTC-P-65A psychologist cannot open another psychologist's session with a shared client (new)9.2s

Test script

Preconditions The Sam Shared fixture exists

Steps

  1. Sign in as test@, open Sam Shared's record, Sessions tab, and click View on the session. Copy the URL
  2. Sign in as test2@ and open that URL

Expected

  • test@ sees the session; the Sessions tab lists only test@'s own session with Sam (1 session), not test2@'s
  • test2@ gets the 404 page ("This one's wandered off.") and nothing about the session

Automated run

  1. 1. As test@, open Sam Shared's session from the Sessions tab
  2. 2. As test2@, open the same session URL
Screenshot for TC-P-65
PassedTC-C-76A client who sees two psychologists chooses who an entry is shared with (new)12.4s

Test script

Preconditions The Sam Shared fixture exists

Steps

  1. Sign in as shared@paxpsychology.dev and open /dashboard/journal
  2. Write an entry and turn on "Share this entry". Look at the "With" select
  3. Choose Dr James Wilson and click "Save entry"
  4. Sign in as test2@ and open Sam Shared's record; then as test@

Expected

  • With more than one psychologist the share control shows a "With" select, defaulting to the current psychologist (the one seen most recently, Dr Emily Thompson). With one psychologist there is no select
  • The saved entry says "James can see this" (or "Shared with James" just after sharing)
  • test2@ sees the entry on Sam's record; test@ does not
  • A low mood on a shared entry emails only the psychologist it is shared with; the Home check-in's "Rough" heads-up goes only to the current psychologist

Notes Entries shared before this change were pointed at each client's then-current psychologist by the migration (prisma/migrations/add_journal_entry_share_target.sql).

Automated run

  1. 1. As Sam Shared, write an entry and turn on sharing
  2. 2. Choose Dr Wilson and save
  3. 3. test2@ sees it on the record; test@ does not
Screenshot for TC-C-76
PassedTC-P-56Suggest another time, the client picks one (new)20.7s

Test script

Preconditions Logged in as a psychologist with a pending new-client request and some open availability in the next four weeks. The automated run seeds its own request (about 21 days out at 5:20am Sydney time) and deletes it afterwards.

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/new-clients and find the request
  2. Click "Suggest another time", pick one or two of the open times, and click "Send to <First>" / "Send 2 times to <First>"
  3. Reload the queue
  4. Sign in as the client, open Sessions, and click "Pick a time" (or open the link in the email). Click "Book this time" on the first suggested time
  5. Back as the psychologist, reload the queue

Expected

  • The dialog "Suggest another time" reads "Pick up to 3 of your open times. <First> booked <date> at <time>. They'll get an email with a link for each time, and can let you know if none of them work. The times stay open for 72 hours." It shows a row of days and a grid of that day's open times (the same availability the booking page uses, never a past time, never the time they already booked). Picked times show as chips with a × to remove; a fourth cannot be picked
  • After sending: "Times sent to <First>. We'll let you know when they pick one." On reload the card carries a band "Waiting for the client": "<First> has your suggested times. They stay open until <date> at <time>." with the times as chips, and the button reads "Suggest different times"
  • The client is emailed "<psychologist first name> suggested some times" with one button per time, a "None of these work" button, and a note that the times stay open until <date, time> and they'll be asked to sign in
  • The client's Sessions page shows "<Psychologist> suggested some new times for your first session." with a "Pick a time" button to /dashboard/appointments/<id>/times
  • That page, "Suggested times", lists each time with "Book this time" and a "None of these work" button. Booking shows "You're booked in." with "Your first session with <psychologist> is now <date, time>. We've emailed you both the details. You'll only be charged after the session, on the card you saved."
  • The session has moved to that time and is CONFIRMED (no charge); both sides get "Appointment rescheduled" emails; audit rows NEW_CLIENT_TIMES_SUGGESTED and NEW_CLIENT_TIME_CHOSEN are written; the request has left the queue

Notes Each link carries a signed token tied to that set of times, the session and the client. It only works for that signed-in client, only until the times expire, and only once: after a time is booked (or "None of these work"), every link in the email reads "This has already been sorted." or "You're booked in.". If a time was taken by someone else in between, the page says "Sorry, <time> has just been taken." and offers the rest, or "Ask <psychologist> for another time" when none are left. Signed out, the link goes to sign-in and comes back to the page afterwards.

Automated run

  1. 1. Navigate to /dashboard/new-clients and find the request
  2. 2. Click "Suggest another time" and pick two of your open times
  3. 3. The card says the times went, then reads "Waiting for the client"
  4. Email "suggested some times" is sent to client@paxpsychology.dev
  5. 4. As the client, open Sessions and pick the first suggested time
  6. 5. The session has moved to that time and left the queue
  7. Email "Appointment rescheduled" is sent to test@paxpsychology.dev
Screenshot for TC-P-56Screenshot for TC-P-56

Admin

38 cases36 passed 2 retired

3A. Dashboard

2 passed
PassedTC-A-01Admin landing page3.6s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard

Expected

  • An admin is sent to /dashboard/admin, "At a glance", the admin home (see TC-A-31)
  • A dark sidebar showing: At a glance, Journal, Categories, Authors, FAQs, Media (unlabelled first group); Users, Newsletter, Correspondence under "Audience"; Settings, Integrations under "Site". (Claims and Compliance appear only with the insurance flag on, off on staging.) No role tag sits under the brand
  • On a phone: a dark top bar, and bottom tabs Home (At a glance), Journal, Users, Inbox (Correspondence) and More

Notes The old admin overview's Recent Registrations list and the four Quick Actions (including "Add Blog Post" and "Add Story") are gone for good.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard
  2. Expected: the sidebar shows the admin nav, with no role tag
  3. Expected: the old admin overview's lists and actions are gone
Screenshot for TC-A-01
PassedTC-A-31At a glance shows the admin how the site is going (new)9.2s

Test script

Preconditions Logged in as admin@paxpsychology.dev; test@paxpsychology.dev (psychologist) and client@paxpsychology.dev (client) to hand

Steps

  1. Open /dashboard/admin
  2. Pick 7 days, then Year to date in the period picker
  3. Open the info button on the Pax's cut tile
  4. Sign in as the psychologist and open /dashboard/admin, then repeat as the client

Expected

  • Step 1: a greeting on the Sydney clock ("Morning, Sarah." or similar) with nothing above it, and 30 days selected. Eight tiles, each with a number, a change against the period before ("up 12%", "down 3%", "level" or "up from none") and a small trend line: New clients, New psychologists, Sessions booked, Sessions completed, Gross booking value, Pax's cut (the dark tile), Active clients, Active psychologists. Money shows in whole dollars
  • Below: Needs a look (unpaid sessions and failed payouts, each linking to the session, or a green "Nothing owed" note), Cancellations with the late-cancel rate, From quiz to first session (four steps), Most booked (up to five psychologists, linking to their user page), a busiest day and the top quiz ask when there is data, and a Where people come from card that links to See marketing (/dashboard/marketing)
  • Step 2: the URL gains ?period=7d, then ?period=ytd; the selected button and the "compared with" line under The numbers change with it
  • Step 3: "What counts" explains the cut is the 22% platform fee on sessions and late cancellations paid in the period, without refunded or unpaid sessions
  • Step 4: both see the 403 screen (H1 "That bit's not yours to see."); no tile, figure or psychologist name appears in the page

Notes Every number comes from Pax's own database. Seeded and fixture accounts are counted (there is no test-account flag), so staging figures are test data. Quiz starts are not recorded, so the funnel starts at a finished quiz.

Automated run

  1. 1. Open /dashboard/admin
  2. 2. Pick 7 days, then Year to date
  3. 3. Open the info button on Pax's cut
  4. 4. The psychologist and the client get the 403 screen
Screenshot for TC-A-31

3B. User Management

17 passed
PassedTC-A-02View all users10.7s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/users
  2. Search by name, then by email
  3. Try each role tab
  4. Click a row

Expected

  • H1 "Users" with the sub-line "<n> clients, <n> psychologists and <n> admin"
  • Header buttons "Impersonation log" and "Invite user" (the button is no longer labelled "Add User")
  • Search placeholder "Search by name or email"; role filter buttons "All", "Clients", "Psychologists", "Admin"
  • A table with columns "User", "Role", "Status", "Joined" and a "View <name>" row action; role chips "Admin" / "Psychologist" / "Client"; status chips "Active", "Invited" (active but email unverified) and "Suspended" (deactivated)
  • Footer "1-10 of <n> users", "Rows per page", "Page 1 of <n>" and previous/next buttons
  • Empty states "No users found matching your search." / "No users yet" with an "Invite user" CTA

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/users
  2. 2. Search by name, then by email
  3. 3. Try each role tab
  4. 4. Click a row
Screenshot for TC-A-02
PassedTC-A-03Create a new CLIENT user9.1s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/users/add
  2. Choose the "Client" role card
  3. Fill in: First name New, Last name TestClient, Email NewTestClient@Example.com (deliberately mixed case), Mobile 0412 345 678; optionally the "Referring doctor (optional)" fields; leave Password blank
  4. Click "Create client"
  5. Open the new user's detail page and check the stored email

Expected

  • A "Users" back link, H1 "Invite user" with "Pick a role to get started."; role cards "Admin" / "Full platform access and user management" / "Invite admin", "Psychologist" / "Manage appointments, clients, and billing" / "Invite psychologist", "Client" / "Book appointments and manage their profile" / "Invite client"
  • After choosing a card: a "Back to role selection" button and a "New client" card (or "New admin"; the psychologist form has its own "New psychologist" card)
  • Fields: "First name", "Last name", "Email" (placeholder client@example.com), "Mobile", "Medicare number" (placeholder Optional), the "Referring doctor (optional)" section, and "Password (optional)" with the helper "If no password is provided, a welcome email with setup link will be sent."
  • Button "Create client" ("Creating…" while pending); toast "Client created successfully"
  • The stored email is lower-cased (newtestclient@example.com) – this is a fix in this build. Creating a second user with the same address in different casing must be rejected as a duplicate
  • A welcome email, subject "Welcome to Pax Psychology: set up your account", goes to the new client's (lower-cased) address

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/users/add
  2. 2. Choose the "Client" role card
  3. 3. Fill in the details, using a deliberately mixed-case email, and leave Password blank
  4. 4. Click "Create client"
  5. Email "Welcome to Pax Psychology: set up your account" is sent to e2e-client+e2e-20261025-hb0hjc-a03@paxpsychology.dev
  6. 5. Open the new user's detail page and check the stored email
  7. Expected: the same address in different casing is rejected as a duplicate
Screenshot for TC-A-03
PassedTC-A-04Create a new PSYCHOLOGIST user (and the welcome email)8.8s

Test script

Preconditions Logged in as an admin, with access to the target inbox

Steps

  1. Navigate to /dashboard/users/add and choose "Psychologist"
  2. Fill the form (name, email, professional details) and submit, leaving the password blank
  3. Open the welcome email and click its call to action
  4. Set a password and sign in

Expected

  • The psychologist is created and appears in the list with the "Psychologist" role tag
  • A welcome email arrives with the subject "Welcome to Pax Psychology: your psychologist account is ready", heading "Welcome aboard.", and the CTA button "Set your password & get started"
  • The CTA links to /auth/reset-password?token=…
  • The note under it reads "This setup link expires in 7 days. Your login email is <email>."
  • The link opens the "Set a new password" screen; after "Save & sign in" the psychologist is logged in
  • The email address is stored lower-cased

Notes The client welcome template (sent when a client books) uses the CTA "Set up my password" and the subject "Welcome to Pax Psychology: set up your account" – same 7-day expiry.

Automated run

  1. 1. Navigate to /dashboard/users/add and choose "Psychologist"
  2. 2. Fill the form (name, email, professional details) and submit, leaving the password blank
  3. Expected: the psychologist appears in the list with the "Psychologist" role tag and a lower-cased email
  4. Email "Welcome to Pax Psychology: your psychologist account is ready" is sent to e2e-psych+e2e-20261025-hb0hjc-a04@paxpsychology.dev
  5. Manual: open the welcome email and follow 'Set your password & get started'
Screenshot for TC-A-04
PassedTC-A-05Edit an existing user12.5s

Test script

Preconditions Logged in as an admin

Steps

  1. Open a user's detail page and click "Edit"
  2. Update the name and save

Expected

  • Detail page: a "Users" back link, H1 = the user's name over their email, buttons "Impersonate" (non-admins), "Emails", "Edit" and "Deactivate", then role and status chips; cards "Basic information" (Email, "Profile URL" for psychologists, Phone, Joined), "Professional details" (psychologists) and "Client details" (clients); empty values read "Not given"
  • Edit page: a back link named after the user, H1 "Edit user", the sub-line "<name>, <email>"; Email is read-only ("Email can only be changed by the user."); buttons "Save changes" ("Updating…" while pending) and "Cancel"; toast "Client updated successfully" (or the equivalent for the role)
  • The change appears in the users list

Automated run

  1. Setup: create a throwaway client to edit
  2. 1. Open a user's detail page and click "Edit"
  3. 2. Update the name and save
  4. Expected: the change appears in the users list
Screenshot for TC-A-05
PassedTC-A-06Deactivate a user11.3s

Test script

Preconditions Logged in as an admin with a non-admin user to deactivate

Steps

  1. Open the user's detail page and click "Deactivate"
  2. Read the confirmation dialog and click "Deactivate user"
  3. Try to sign in as that user

Expected

  • A confirmation dialog opens on the user page (no separate page) titled "Deactivate <name>?", with the copy "They won't be able to sign in. Nothing is deleted: their data stays put, and you can reactivate the account any time."
  • Buttons "Deactivate user" (spinner while pending) and "Cancel"
  • "Deactivate" is not offered on your own record or on a suspended user
  • Toast "<name> has been deactivated"; the list shows the "Suspended" pill
  • The deactivated user cannot sign in

Automated run

  1. Setup: create a throwaway client (with a password) to deactivate
  2. 1. Open the user's detail page and click "Deactivate"
  3. 2. Read the confirmation and click "Deactivate user"
  4. 3. Try to sign in as that user
Screenshot for TC-A-06Screenshot for TC-A-06
PassedTC-A-07Impersonate a client9.4s

Test script

Preconditions Logged in as an admin

Steps

  1. From /dashboard/users, open a CLIENT user and click "Impersonate". In the dialog, choose "Support request" and click "Start impersonating"
  2. Move around the dashboard

Expected

  • "Start impersonating" shows a spinner; toast "Now impersonating <name>"
  • An amber banner reads "Viewing as <name> (client) for: Support request" with a "Stop Impersonating" button
  • The dashboard shows the client portal (Home / Sessions / Care) with that client's data
  • The sidebar user chip shows an "Impersonating" badge
  • The event is written to the impersonation log

Notes "Impersonate" is only offered for non-admin targets. The reason step is tested in TC-A-43.

Automated run

  1. 1. From /dashboard/users, open a CLIENT user and click "Impersonate"
  2. 2. Move around the dashboard
  3. Expected: the event is written to the impersonation log
Screenshot for TC-A-07
PassedTC-A-08Impersonate a psychologist38.8s

Test script

Preconditions Logged in as an admin

Steps

  1. From /dashboard/users, open a PSYCHOLOGIST user and click "Impersonate", choose "Support request" and click "Start impersonating"

Expected

  • Toast "Now impersonating <name>"; banner "Viewing as <name> (psychologist) for: Support request". <name> is the account name without the title (the user page heading reads "Dr Emily Thompson", the toast "Emily Thompson")
  • The dashboard shows the psychologist Today page with their sessions and requests

Automated run

  1. 1. From /dashboard/users, open a PSYCHOLOGIST user and click "Impersonate"
Screenshot for TC-A-08
PassedTC-A-09Stop impersonation and check the audit log14.1s

Test script

Preconditions Currently impersonating (TC-A-07 or TC-A-08)

Steps

  1. Click "Stop impersonating" in the amber banner
  2. Go to /dashboard/users and click "Impersonation log"
  3. Type the impersonated user's email into "Search by admin or user", then a name that matches nobody

Expected

  • Button shows "Returning..."; toast "Returned to <adminName>"; you land back on /dashboard/users as the admin
  • /dashboard/users/impersonation-log: a "Users" back link, H1 "Impersonation log", sub "An audit trail of every admin impersonation session."
  • Table columns are exactly "Date", "Admin", "Target user", "Action", "Reason", "IP address" (shown in capitals); Admin and Target user cells show name over email; Action shows a START or STOP chip; a START row shows the reason given ("Support request"), with any details under it; a missing IP, or a reason on a row from before reasons were asked, reads "Not recorded"
  • With no sessions yet, the column heads stay and the panel reads "No impersonation sessions yet."
  • Both the START and the STOP row for the session just run are present
  • Page size is 20
  • The search box sits above the table. It matches the admin's or the target user's name or email (case-insensitive, server-side), adds ?search= to the URL and goes back to page 1; pagination counts only the matching rows
  • Searching the impersonated user's email leaves only their rows; a search that matches nobody keeps the column heads and reads "No sessions match your search."

Notes The column headings are "Target user" and "IP address"; update any older test note that says "Target" and "IP".

Automated run

  1. Setup: impersonate the seeded client so there is a session to stop
  2. 1. Click "Stop impersonating" in the amber banner
  3. 2. Go to /dashboard/users and click "Impersonation log"
  4. 3. Search the log by the impersonated user's email
Screenshot for TC-A-09
PassedTC-A-28Impersonation limits (new)27.8s

Test script

Preconditions Logged in as admin@paxpsychology.dev. inactive@ (Ira Inactive, deactivated) and impersonated@ (Indy Impersonated, active) are reset by the acceptance seeder every run

Steps

  1. Open your own user record, then another admin's (2fa-admin@)
  2. Open Ira Inactive's record
  3. Open Indy Impersonated's record and click "Impersonate", choose "Support request" and click "Start impersonating". Visit /dashboard/users and /dashboard/users/<your own id>
  4. While impersonating, open /psychologists and /
  5. Open Settings › Account, click "Delete account", then "Delete account" in the dialog
  6. Look at the impersonation session's expiry (database: sessions.expires for the row with impersonated_by set)
  7. Click "Stop impersonating" and look at the impersonation log

Expected

  • Step 1: no "Impersonate" button on an admin's record, your own included
  • Step 2: the record reads "Suspended" and offers "Reactivate"; there is no "Impersonate" button
  • Step 3: the amber banner "Viewing as Indy Impersonated (client) for: Support request"; no "Users" item in the sidebar; both admin URLs send you back to the client's dashboard
  • Step 4: the same banner shows on the public pages
  • Step 5: the error toast "You can't do this while impersonating. Only the account holder can."; the dialog stays open and the account stays active
  • Step 6: the impersonation session expires 8 hours after it started
  • Step 7: you are the admin again; the log has exactly one START row (reason Support request) and one STOP row for this impersonation, and none for Ira

Automated run

  1. 1. Open your own record, then another admin's
  2. 2. Open the deactivated client's record
  3. 3. Impersonate the client; the admin pages are closed to you
  4. 4. Public pages carry the impersonation banner too
  5. 5. Try "Delete account" as the client
  6. 6. The impersonation session lasts 8 hours
  7. 7. Stop impersonating: the admin is back, with a START and a STOP row
Screenshot for TC-A-28
PassedTC-A-29Deactivation signs the user out everywhere; reactivation lets them back (new)16.4s

Test script

Preconditions Logged in as the admin. A throwaway client with a password, created from /dashboard/users/add, signed in in a second browser

Steps

  1. In the client's browser, open /dashboard/appointments
  2. As the admin, open the client's record, click "Deactivate", then "Deactivate user"
  3. In the client's browser, click Home in the sidebar, then reload; then try to sign in again
  4. As the admin, open the record again and click "Reactivate", then "Reactivate user"
  5. In the client's browser, sign in

Expected

  • Step 2: the toast "<name> has been deactivated"; the client's sessions are deleted at once
  • Step 3: the very next click lands on /auth/login (the open session no longer works), and signing in shows "Your account has been deactivated. Please contact support for assistance."
  • Step 4: the record offers "Reactivate" instead of "Deactivate"; the dialog is "Reactivate <name>?"; the toast "<name> has been reactivated"
  • Step 5: the client signs in and lands on Home ("Good to see you.")

Automated run

  1. Setup: invite a throwaway client with a password
  2. 1. In the client's own browser, sign in and open Sessions
  3. 2. As the admin, deactivate the client
  4. 3. In the client's browser, click Home, then reload
  5. 4. As the admin, click "Reactivate"
  6. 5. The client can sign in again
Screenshot for TC-A-29Screenshot for TC-A-29
PassedTC-A-30An edit cannot change a user's email (new)11.3s

Test script

Preconditions Logged in as the admin. A throwaway client created from /dashboard/users/add

Steps

  1. Open the client's record and click "Edit"
  2. In the browser's developer tools, remove readonly from the Email field, type another address, and click "Save changes"
  3. Open the client's record again

Expected

  • Step 1: Email is read-only, with the hint "Email can only be changed by the user."
  • Step 2: the save is refused: the Email field is marked invalid with "Email can only be changed by the user.", and there is no success toast
  • Step 3: the record still shows the original email; no user has the new address

Notes An email is where password resets go, so the server refuses the change whatever the request says, not just the form.

Automated run

  1. Setup: invite a throwaway client
  2. 1. Open the client's Edit page
  3. 2. Remove readonly from Email, type another address and save
  4. 3. The user keeps the original email
Screenshot for TC-A-30
PassedTC-A-43An admin gives a reason before impersonating (new)7.3s

Test script

Preconditions Logged in as admin@paxpsychology.dev (a fresh sign-in, so no code is asked for). impersonated@ (Indy Impersonated) is reset to active by the acceptance seeder every run

Steps

  1. Open Indy Impersonated's record and click "Impersonate"
  2. Choose "Other", leave the details empty, and click "Start impersonating"
  3. Type a short note in the details (for example "Checking a booking problem, ticket 4821") and click "Start impersonating"
  4. Open /
  5. Click "Stop Impersonating", open the impersonation log and search for impersonated@paxpsychology.dev

Expected

  • Step 1: the dialog "Why do you need to view as Indy Impersonated?" opens, with the reasons Support request, Safety concern, Legal or complaint, Data access request and Other (the same list as viewing clinical records). "Start impersonating" is disabled until one is chosen
  • Step 2: the dialog stays open with "Say why you need to view as them."; nothing is logged and you are still the admin
  • Step 3: the toast "Now impersonating Indy Impersonated" and the amber banner "Viewing as Indy Impersonated (client) for: <your note>" (for "Other" the banner shows your own words; for any other reason, its name)
  • Step 4: the same banner, with the reason, on the public site
  • Step 5: the START row shows Other in the Reason column with your note under it

Notes If the admin's last sign-in or code is more than a few minutes old, a "Confirm it's you" dialog comes after the reason. Any clinical record opened while impersonating is logged in the clinical access log with this reason and note (TC-A-41).

Automated run

  1. 1. Open the client's record and click "Impersonate"
  2. 2. Choose "Other" with no details and start
  3. 3. Give the details and start
  4. 4. The public site shows the same reason
  5. 5. The impersonation log shows the reason on the START row
Screenshot for TC-A-43
PassedTC-A-40An admin must give a reason before viewing a client's clinical records (new)16.3s

Test script

Preconditions Logged in as admin@paxpsychology.dev (a fresh sign-in, so no code is asked for); client@paxpsychology.dev exists

Steps

  1. Open /dashboard/users, open client@paxpsychology.dev, and click "View clinical records" in the Clinical records card. If the page opens on the records (access from an earlier run), click "Done, close access" and reload
  2. Choose "Other", leave the details empty, and click "View records"
  3. Click "Cancel"
  4. Click "Give a reason to view", choose "Support request", type a short note in the details, and click "View records"
  5. Click "Done, close access"

Expected

  • Step 1: /dashboard/users/<id>/clinical opens on a "A reason is needed" card, with the dialog "Why do you need to see these records?" on top (it opens by itself on arrival). The reasons scroll inside it, and "Cancel" and "View records" stay on screen, even at 720px high or on a phone. The reasons are Support request, Safety concern, Legal or complaint, Data access request and Other, and "View records" is disabled until one is chosen. No note, document, journal entry or message is on the page
  • Step 2: the dialog stays open with "Say why you need to view these records."
  • Step 3: the dialog closes and the records stay locked
  • Step 4: a toast "Access open for 30 minutes"; a banner "Open until <time> for: Support request" with the note, "Read only. Everything on this page, and each download, is logged under your name."; then the cards Session notes, Client notes, Documents, Journal, Assessments and homework, Mental health plans and GP reports and Messages. There is no "Export data (ZIP)" button for this reason
  • Step 5: the toast "Access closed" and the locked card again, with the dialog closed (it opens by itself only when you arrive on the page)

Notes Admins hold no clinical access by default. If the admin's last sign-in or code is more than a few minutes old, a "Confirm it's you" dialog comes first. Access lasts 30 minutes and covers only this client. An admin's appointment page shows "View clinical records" in place of the notes and documents until they give a reason. Admins can't edit clinical records.

Automated run

  1. 1. Open the client's user page and click "View clinical records"
  2. Expected: the records stay locked and the reason dialog opens
  3. 2. Choose "Other" with no details and submit
  4. 3. Cancel
  5. 4. Give the reason "Support request" with details
  6. Expected: the records open read only, for 30 minutes
  7. 5. Click "Done, close access"
Screenshot for TC-A-40
PassedTC-A-41Every clinical record an admin opens is logged (new)13.3s

Test script

Preconditions As TC-A-40

Steps

  1. Open the client's clinical records with the reason "Safety concern" and a short note, then click "Done, close access"
  2. Open /dashboard/users, click "Clinical access log", and search for client@paxpsychology.dev
  3. Set Action to "Exported"

Expected

  • Step 2: H1 "Clinical access log", sub-line "Every clinical record an admin opened, with the reason they gave." Columns Date, Admin, Client, Record, Reason, From. A row for the admin and the client with Clinical record, the chip Viewed, Safety concern and the note, and an IP address with a short browser summary (for example "Chrome on macOS"). One more row for each note, document or message that was on the page
  • Step 3: the URL gains ?action=EXPORT and the rows from step 1 drop out

Notes A row is written before the record is shown; if the log can't be written, the record isn't shown. While an admin impersonates someone, their reads are logged under the admin's own name with "Viewing as <name>" and the reason they gave for impersonating (TC-A-43), and "While impersonating" filters to those.

Automated run

  1. 1. Open the client's clinical records with the reason "Safety concern"
  2. 2. Open Users, then "Clinical access log", and search for the client
  3. Expected: a row names the admin, the client, the record and the reason
  4. 3. Filter by the action "Exported"
Screenshot for TC-A-41
PassedTC-A-42Start a data access request (new)13.5s

Test script

Preconditions Logged in as admin@paxpsychology.dev (a fresh sign-in). access@paxpsychology.dev (Avery Access, a client of test@ only) has no open data access request; the seeder resets it every run

Steps

  1. Open Avery Access's clinical records with the reason "Data access request" and a short note
  2. Click "Start a data access request", leave today's date in "When did the client ask?", type a note in "How it came in" and click "Send for review"
  3. Click "Done, close access", open /dashboard/users and click "Data access requests"
  4. Open the clinical access log with Action "Export requested" and search for access@paxpsychology.dev

Expected

  • Step 1: the banner says "The export includes everything, once each treating psychologist has reviewed it." A Data access request card offers "Start a data access request"; there is no download button
  • Step 2: the dialog "Start a data access request" says the export includes notes the client hasn't been shown and that psychologists have 14 days. Then the toast "Sent to 1 psychologist to review"; the card reads "Received <today>. Respond to the client by <today + 30 days>", the chip With psychologists, "Waiting for 1 of 1 psychologist", and Emily Thompson with the chip Waiting. There is still no download button, and /api/admin/clinical-export/<id> answers 409
  • test@ gets the email "Please review Avery's request for their records by <date>"
  • Step 3: H1 "Data access requests"; a row for Avery Access with the dates, Emily Thompson Waiting and With psychologists
  • Step 4: a row Data export, the chip Export requested, Data access request and the note

Notes The old "Export data (ZIP)" button is gone: the export is downloaded once the psychologists have reviewed it (TC-A-44). A client can have one open request at a time.

Automated run

  1. 1. Open Avery Access's clinical records with the reason "Data access request"
  2. Expected: a Data access request card, with no export yet
  3. 2. Click "Start a data access request", keep today's date, add a note and send
  4. Expected: the request waits on test@, and can't be downloaded
  5. Email "request for their records" is sent to test@paxpsychology.dev
  6. 3. Open Users, then "Data access requests"
  7. Expected: the request is in the clinical access log
Screenshot for TC-A-42
PassedTC-A-44The treating psychologist reviews the request before anything is released (new)21.5s

Test script

Preconditions As TC-A-42, with a request for Avery Access waiting on test@ (the case starts one if there isn't). A second browser signed in as test@paxpsychology.dev

Steps

  1. As test@, open Today
  2. Click "Review the request"
  3. Tick "Withhold this record" on the private session note and click "Send review"
  4. Choose "Serious threat to life, health or safety (APP 12.3(a))", type reasons, click "Send review", then "Send review" in the dialog
  5. As the admin, reload Avery Access's clinical records (open with the reason Data access request)
  6. Click "Download export (ZIP)"
  7. Open the clinical access log for access@ with Action "Reviewed", "Withheld" and "Exported"

Expected

  • Step 1: the band "A client has asked for their records." with "Please review what would be released by <date>." and "Review the request"
  • Step 2: H1 "Avery Access asked for their records", "Please review by <date>", an amber note explaining everything is released unless withheld and that reasons go to the client. Three records: the private note, the shared note (tagged "Already visible to the client") and the client note, each with its text and "Withhold this record". The footer reads "Releasing all 3 records."
  • Step 3: under the note, "Choose the ground." and "Say why it should be withheld."; no dialog opens
  • Step 4: the footer reads "Releasing 2, withholding 1."; the dialog "Send your review?" says "2 records will be in Avery Access's export and 1 withheld, with your reasons. You can't change this afterwards." Then the toast "Review sent. The export is ready for the Pax team."; the page is read only, the note marked "Withheld: Serious threat to life, health or safety." with the reasons and the others "Released"; Today no longer shows the band
  • Step 5: the card's chip reads Ready to download; Emily Thompson shows 1 withheld, with the ground and the reasons
  • Step 6: a file pax-data-avery-access-<date>.zip downloads. It holds README.txt, profile.json, sessions.json, client-notes.json, invoices.json, consents.json, journal.json, assessments.json, homework.json, mental-health-plans.json, gp-reports.json and messages.json: the shared note and the client note are in it, the withheld note isn't. README.txt lists the withheld note with "Withheld by Emily Thompson under APP 12.3(a): Serious threat to life, health or safety" and "Reasons: ...", and says how to ask for a review or complain to the OAIC
  • Step 7: a Reviewed row by Emily Thompson ("Treating psychologist", "3 records reviewed, 1 withheld"), a Withheld row for the session note with the ground and reasons, and Exported rows (one Data export row and one per released record)

Notes Only the psychologist can answer: an admin viewing as them sees the page read only (and the read is logged). A record written after the review is left out of the export and counted in README.txt.

Automated run

  1. Setup: the admin starts a request for Avery Access
  2. 1. As test@, open Today
  3. 2. Click "Review the request"
  4. Expected: every record test@ holds, unshared ones included
  5. 3. Tick "Withhold this record" on the private note and click "Send review"
  6. 4. Choose the ground, give reasons and send
  7. Expected: the review is read only, with the withheld note
  8. 5. As the admin, reload the clinical records
  9. 6. Click "Download export (ZIP)"
  10. Expected: each step is in the clinical access log
Screenshot for TC-A-44Screenshot for TC-A-44
PassedTC-A-45An overdue review holds the export until the request is closed (new)19.4s

Test script

Preconditions As TC-A-44, with a new request for Avery Access whose review date has passed (the case sets it to yesterday in the database)

Steps

  1. As the admin, reload Avery Access's clinical records
  2. As test@, open Today
  3. As the admin, click "Close request", then "Close request" in the dialog
  4. As test@, reload Today, then open /dashboard/access-requests and the request

Expected

  • Step 1: the card's chip reads Review overdue and Emily Thompson shows Overdue; there is no download button, and the export route answers 409
  • Step 2: the band reads "A review is overdue. Nothing is released until you've reviewed it."
  • Step 3: the dialog "Close this request?" says "Some psychologists haven't reviewed it yet. Closing cancels their reviews, and the export can't be downloaded." Then the toast "Request closed", and the card says the last request was closed, with "Start a data access request" again
  • Step 4: no band on Today; the request is listed as Closed, and its page reads "The Pax team closed this request. There's nothing more to do.", with nothing to send

Notes Nothing is released automatically when a review is late.

Automated run

  1. Setup: start a request for Avery Access, then make its review a day overdue
  2. 1. Reload the clinical records
  3. 2. As test@, open Today
  4. 3. As the admin, click "Close request", then "Close request" in the dialog
  5. 4. As test@, reload Today and open the request
Screenshot for TC-A-45Screenshot for TC-A-45

3C. Content Management

1 passed 2 retired
RetiredTC-A-10Create, edit, and publish a blog post–

The blog has been folded into the Journal. There is no /dashboard/blog any more; /dashboard/blog, /dashboard/blog/add and /dashboard/blog/:id return not found (TC-A-21). The Journal editor is tested as TC-A-16.

RetiredTC-A-11Create, edit, and publish a story/testimonial–

The Story model was rebranded to Journal. There is no /dashboard/stories; /dashboard/stories and /dashboard/stories/* return not found (TC-A-21). The "It's normal" stories carousel on the directory page has been replaced by the journal carousel. The Journal editor is tested as TC-A-16.

PassedTC-A-12Create, edit, and publish an FAQ13.0s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/faqs
  2. Click "New FAQ"
  3. Enter a Question and Answer, pick an Audience, turn "Published" on, and click "Create FAQ"
  4. Edit the FAQ and save
  5. Check the FAQ accordion on the homepage
  6. Delete the FAQ

Expected

  • List: H1 "FAQs" with "<n> questions across the site" and a "New FAQ" button; search placeholder "Search by question or answer"; a status select ("All FAQs" / "Published" / "Draft") and an audience button group ("All", "For clients", "For psychologists", "Billing", the active one filled dark)
  • A table with columns "Question", "Audience", "Status"; each row has the question (a link to the edit page) over a one-line answer excerpt, and edit and delete icon buttons; uncategorised rows read "Uncategorised". The footer reads "1-<n> of <total> questions" with rows per page and previous/next
  • New and Edit pages have a "FAQs" back link and one white card: fields "Question" (placeholder What do people ask?), "Answer" (placeholder Markdown links work, like [Our Story](/our-story)), "Audience (optional)", and a "Published" switch described as "Visible on the public marketing site." The New page subtitle reads "Add a question to the site FAQs."
  • Buttons "Create FAQ" / "Update FAQ" (pending "Saving…") and "Cancel"; toasts "FAQ created successfully" / "FAQ updated successfully"
  • A published FAQ appears in the homepage accordion, the cobalt "FAQs" band
  • Delete opens "Delete this FAQ?" and gives the toast "FAQ deleted successfully"

Notes The standalone /faqs page uses a separate, hard-coded list – editing an FAQ here changes the homepage accordion only (see TC-C-31).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/faqs
  2. 2. Click "New FAQ"
  3. 3. Enter a Question and Answer, pick an Audience, turn "Published" on, and click "Create FAQ"
  4. 4. Edit the FAQ and save
  5. 5. Check the FAQ accordion on the homepage
  6. 6. Delete the FAQ
Screenshot for TC-A-12

3D. Newsletter

3 passed
PassedTC-A-13View newsletter subscribers7.4s

Test script

Preconditions Logged in as an admin with at least one subscriber (create one via TC-C-27)

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/newsletter
  2. Search for a subscriber by email, then by first name
  3. Try the "All", "Active" and "Unsubscribed" tabs

Expected

  • H1 "Newsletter" with the sub-line "Manage subscriptions and export subscriber data."
  • Search placeholder "Search by email or name"
  • Status filter buttons "All", "Active", "Unsubscribed" beside the search. The choice is reflected in the URL as ?status=, and a count on the right reads "<filtered> of <total>"
  • A table with the columns "Email", "First name", "Status", "Subscribed"; status chips "Active" / "Unsubscribed"; a missing name reads "Not given"; dates read like "11 Aug 2026"
  • Under the table: "1-10 of N subscribers", "Rows per page", "Page X of Y" and previous / next buttons
  • Empty states "No subscribers yet" / "Newsletter subscribers will appear here once people sign up." and, when filtered, "No subscribers found matching your criteria."

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/newsletter
  2. 2. Search for a subscriber by email, then by first name
  3. 3. Try the "All", "Active" and "Unsubscribed" tabs
Screenshot for TC-A-13
PassedTC-A-14Export subscribers as CSV7.9s

Test script

Preconditions Logged in as an admin with subscribers

Steps

  1. Switch to the "Active" tab
  2. Click "Export CSV" and choose "Export Current View (Active)"
  3. Open the file
  4. Repeat with "Export all subscribers", "Export active only" and "Export Unsubscribed Only"

Expected

  • "Export CSV" is a dropdown, not a plain button; it offers "Export Current View (All|Active|Unsubscribed)", "Export all subscribers", "Export active only" and "Export unsubscribed only"
  • "Export Current View" respects the tab you are on; the other three ignore it
  • The file downloads as newsletter-subscribers-<filter>-<YYYY-MM-DD>.csv with the headers "Email", "First Name", "Subscribed At", "Status", "Unsubscribed At"
  • Toast "Export completed successfully" (failure: "Failed to export subscribers")

Notes The export filters by status only – the current search string is not applied to the export.

Automated run

  1. 1. Switch to the "Active" tab
  2. 2. Click "Export CSV" and choose "Export Current View (Active)"
  3. 3. Open the file
  4. 4. Repeat with "Export all subscribers", "Export active only" and "Export unsubscribed only"
Screenshot for TC-A-14
PassedTC-A-15Toggle a subscriber's status and delete a subscriber13.8s

Test script

Preconditions Logged in as an admin with at least one active subscriber

Steps

  1. Open the "⋯" menu on an active subscriber's row
  2. Click "Mark unsubscribed"
  3. Reopen the menu on the same row and click "Reactivate"
  4. Open the menu again and click "Delete", then confirm

Expected

  • The row menu is behind a "⋯" button labelled "Actions for <email>"; the toggle item reads "Mark unsubscribed" for an active subscriber and "Reactivate" for an unsubscribed one. It fires immediately with no confirmation
  • Toasts "Subscriber marked as unsubscribed" and "Subscriber reactivated" (failure: "Failed to update subscriber status")
  • Marking someone unsubscribed also emails them, subject "You're off the list"
  • Delete opens the dialog "Delete subscriber" / "Are you sure you want to delete this subscriber? This action cannot be undone."; toast "Subscriber deleted successfully"
  • The row moves between the Active and Unsubscribed tabs accordingly

Automated run

  1. Setup: subscribe from the public /journal newsletter strip
  2. 1. Open the "⋯" menu on an active subscriber's row
  3. 2. Click "Mark unsubscribed"
  4. Email "You're off the list" is sent to e2e+e2e-20261025-hb0hjc-a15@paxpsychology.dev
  5. 3. Reopen the menu on the same row and click "Reactivate"
  6. 4. Open the menu again and click "Delete", then confirm
Screenshot for TC-A-15

3E. Journal CMS (new)

6 passed
PassedTC-A-16Create, edit and publish a journal article24.9s

Test script

Preconditions Logged in as an admin, with at least one category and author

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/journal
  2. Click "New article"
  3. Enter a Title and click "Generate from title" next to "URL slug"
  4. Fill Excerpt and Body, upload a Cover image, pick a Category and Author
  5. Click "Save draft"
  6. Reopen the article from the list and click "Publish"
  7. Check /journal in a signed-out window
  8. Reopen the article, turn on "Feature on journal", and click "Update"

Expected

  • List: H1 "Journal" with "<n> articles: <n> published, <n> scheduled and <n> drafts" ("scheduled" counts Scheduled articles whose publish date is still in the future, and shows 0 when there are none); buttons "View live" (opens /journal in a new tab) and "New article"; search placeholder "Search articles"; status tabs "All", "Published", "Drafts", "Scheduled"; a category select starting with "All categories"
  • A table with columns "Article", "Category", "Author", "Status", "Views"; chips "Published" (green) / "Scheduled" (blue) / "Draft" (grey); featured rows carry a star; Views shows the count (0 for drafts). A footer reads "1-10 of <n> articles" with Rows per page and Previous/Next. On a phone the table becomes a list of article cards and nothing scrolls sideways
  • Editor: a "Journal" back link above the H1 "New article" (or "Edit article"), with "Save draft" and the primary button top right; fields "Title" (placeholder Give it a headline, with a live paxpsychology.com.au/journal/ slug preview), "URL slug", "Excerpt", "Cover image", a "Body" card with a footer that reads "0 words" while empty and "<n> words, a <n> min read" once there is text, and sidebar cards "Publish", "Details" (Category, Author) and "Live preview"
  • "Save draft" forces the status to Draft regardless of the radio selection; toast "Article created successfully"
  • "Publish" on a draft promotes it to Published immediately – this is the fix in this build. On an already-published article the primary button reads "Update"; with the Scheduled radio selected it reads "Schedule"
  • Both buttons show "Saving…" while submitting, and success returns you to the list
  • The published article is live at /journal/<slug>; featuring it pins it to the top of the journal index

Notes "Publish" is disabled until the Title has content.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/journal
  2. 2. Click "New article"
  3. 3. Enter a Title and click "Generate from title" next to "URL slug"
  4. 4. Fill Excerpt and Body, upload a Cover image, pick a Category and Author
  5. 5. Click "Save draft"
  6. 6. Reopen the article from the list and click "Publish"
  7. 7. Check /journal in a signed-out window
  8. 8. Reopen the article, turn on "Feature on journal", and click "Update"
Screenshot for TC-A-16Screenshot for TC-A-16Screenshot for TC-A-16
PassedTC-A-17Journal status radio and scheduled articles13.0s

Test script

Preconditions Logged in as an admin with a draft article

Steps

  1. Open the article and look at the "Publish" card in the right-hand sidebar
  2. Select "Scheduled", set a "Goes live" date/time in the near past, and save
  3. Wait past that time and reload /journal

Expected

  • The sidebar radio group (real radio buttons) offers "Draft" / "Only you can see it", "Published" / "Live on the journal" and "Scheduled" / "Goes live on a set date"
  • Choosing "Scheduled" reveals a "Goes live" datetime field, and the primary button becomes "Schedule"
  • A "Feature on journal" switch ("Pin to the top spot") sits in the same card
  • A SCHEDULED article does not go live on its own – there is no scheduled-publish job. It stays off /journal until someone reopens it and presses Publish/Update

Notes Flag this to the team if the intent is for scheduling to be automatic; today it is a manual reminder, not a scheduler.

Automated run

  1. Setup: write a draft article to schedule
  2. 1. Open the article and look at the "Publish" card in the right-hand sidebar
  3. 2. Select "Scheduled", set a "Goes live" date/time in the near past, and save
  4. 3. Wait past that time and reload /journal
Screenshot for TC-A-17Screenshot for TC-A-17
PassedTC-A-18Delete a journal article9.3s

Test script

Preconditions Logged in as an admin with a published article you can discard

Steps

  1. Open the article and scroll to the "Danger zone" card
  2. Click "Delete article" and confirm

Expected

  • Copy: "Deleting takes the article off the journal straight away. This can't be undone."
  • Confirmation dialog "Are you sure?" / "This article "<title>" will be permanently deleted." with "Delete" and "Cancel"
  • Toast "Article deleted"; the article disappears from /journal immediately (failure: "Couldn't delete the article. Try again.")

Automated run

  1. Setup: publish an article that can be discarded
  2. 1. Open the article and scroll to the "Danger zone" card
  3. 2. Click "Delete article" and confirm
  4. Expected: the article disappears from /journal immediately
Screenshot for TC-A-18Screenshot for TC-A-18
PassedTC-A-19Categories, Authors and Media (new)18.6s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to /dashboard/categories, add a category, edit it, then delete it
  2. Navigate to /dashboard/authors
  3. Navigate to /dashboard/media, upload an image, search for it by file name, then search for a name nothing has and click "Clear search"; then delete the image

Expected

  • Categories: H1 "Categories" with "<n> categories across the journal" and a "New category" button; columns "Category", "Slug", "Description", "Live articles"; the dialog is titled "New category" / "Edit category" with fields "Name" (placeholder e.g. Burnout), "URL slug" ("Leave blank to derive it from the name.") and "Description" ("Optional. Shown on the journal index."); each row has edit and delete icon buttons; empty state "No categories yet. Create one to organise the journal." A new category appears as a chip on /journal
  • Categories delete: the dialog is titled Delete "<name>"?. If the category has live articles, a "Move articles to" select sits under the text; the page loads without a hydration error either way
  • Authors: H1 "Authors" with "<n> contributors" and an "Invite author" button (which goes to /dashboard/users/add); each card has the avatar, the name and one line "<title or Contributor>. <n> articles, joined <year>", plus an edit button; empty state "No authors yet" / "Authors appear here once they publish an article."
  • Media: H1 "Media" with "<n> images for covers and in-article art", an "Upload" button, a "Search by file name" field, and a drop zone as the first tile; uploaded tiles have a delete control (it shows on hover on desktop, always on a phone); journal covers have none
  • Media search: typing part of a file name (any case) leaves only the tiles whose names match; a name nothing matches shows "No matches" with a "Clear search" button, which brings every tile back. The count in the subtitle does not change

Automated run

  1. 1. Navigate to /dashboard/categories, add a category, edit it, then delete it
  2. 2. Navigate to /dashboard/authors
  3. 3. Navigate to /dashboard/media, upload an image, then delete it
Screenshot for TC-A-19
PassedTC-A-20Admin settings and platform integrations (new)8.7s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings
  2. Step through each section in the left nav
  3. Click "Integrations" in the settings nav

Expected

  • Admin section nav: "Account", "Journal & site", "Integrations", "Notifications", "Account actions". All but Integrations are selected via ?section=<id>; there is no "System" section any more
  • "Account" behaves as for other roles (Your details / Password), with no Mobile field
  • "Journal & site" holds the journal and marketing-site settings in four cards: "General", "Journal defaults", "SEO & social" and "Syndication", then "Save changes"
  • "Integrations" opens /dashboard/settings/integrations. It keeps the Settings frame: the H1 "Settings" and the same section nav with "Integrations" highlighted. Tabs: "Video providers" and "Platform OAuth" (plus "Health funds" and "Health fund APIs" when insurance is on). Video providers shows a "Default provider" card (Video provider picker, "Save preference") and "Connected accounts", one card per provider with a status chip ("Connected", "Not connected" or "Not enabled in configuration") and Connect or Disconnect. It is the one admin integrations page, and the sidebar's Integrations item links to the same place

Automated run

  1. 1. Navigate to https://paxpsychology.dev/dashboard/settings
  2. 2. Step through each section in the left nav
  3. 3. Click "Integrations" in the settings nav
Screenshot for TC-A-20
PassedTC-A-21Retired dashboard URLs return not found (new)7.7s

Test script

Preconditions Logged in as an admin

Expected

  • Each one answers 404 and shows the not-found page ("This one's wandered off."). The address bar keeps the URL you typed: nothing redirects to the Journal.

Notes Removed pages are deliberately not redirected before launch. There are no public /blog redirects either (see TC-C-32).

Automated run

  1. Setup: pick a real article id for the /dashboard/blog/<id> row
  2. Visit each retired URL and note what you see
Screenshot for TC-A-21

3F. Correspondence (new)

1 passed
PassedTC-A-22Correspondence: delivery filter, template and resend (new)8.7s

Test script

Preconditions Logged in as an admin. Signing in sends a "New sign-in" email, so there is at least one recent email to work with

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/correspondence
  2. Click "Failed" in the delivery toggle, then "Sent", then "All"
  3. Search "New sign-in", click "Sent", and open the newest "New sign-in to your Pax Psychology account" row
  4. Click "Resend", read the dialog, then click "Resend" in it
  5. Open an "Appointment Confirmation" email sent after this release

Expected

  • Beside the search box sits a toggle with "All", "Sent" and "Failed". Each click updates ?status= (All clears it) and goes back to page 1
  • Failed shows only rows with a red "Failed" chip (and, for emails logged before this release, "Not sent"); the footer count matches. Sent shows only green "Sent" rows. All also shows grey "Skipped" rows on environments that do not send email
  • The item page's details card lists Sent, To, From and Template ("New sign-in"). Emails logged before this release say "Not recorded". A failed email also shows an Error row with the provider's message
  • Header buttons: "Resend" and "View user". The dialog reads "Resend this email?" and "It goes to <address> again, exactly as shown below, and is logged as a new email." with "Cancel" and "Resend"
  • After confirming: a toast "Email resent." (or, where sending is off, "Resend logged. Email delivery is off in this environment, so it was not sent."), and a Resends row appears with the new email's time and status; opening it shows a Resend of link back and Resent by your name
  • For the Appointment Confirmation (it carries a calendar invite), Resend is greyed out and a Resend row explains why: "Not available. This email had a calendar attachment, which isn't stored, so it can't be resent as it was." Password-reset and verification emails say their links were redacted. Emails logged before this release say it isn't known whether they had an attachment

Notes Resend is admin only and goes through the normal mail path, so on staging it really sends to the original recipient.

Automated run

  1. 1. Navigate to /dashboard/correspondence
  2. 2. Click "Failed", then "Sent", then "All"
  3. 3. Search "New sign-in", click "Sent" and open the newest one
  4. 4. Click "Resend" and confirm
Screenshot for TC-A-22

3H. Marketing (new)

2 passed
PassedTC-A-50A campaign landing and its booking reach the channels table (new)15.4s

Test script

Preconditions client@paxpsychology.dev has a saved card and no unpaid session. admin@paxpsychology.dev. Pick a campaign name nobody else is using, for example tc-a-50-<your initials>-<time>

Steps

  1. Sign in as the client, then open https://paxpsychology.dev/?utm_source=e2e-ads&utm_medium=cpc&utm_campaign=<campaign>&gclid=E2E123
  2. In the browser's developer tools (Application, Cookies), look at the cookies for the site
  3. Book a session with test@ using the saved card
  4. In another browser (or a private window), sign in as the admin and open /dashboard/marketing?period=7d&channel=paid. The numbers are cached for about a minute; reload if the row is not there yet
  5. Click "First touch", then "Last touch"
  6. Cancel the session booked in step 3

Expected

  • Step 2: pax_vid, pax_ft, pax_lt and pax_vs are set, all HttpOnly, SameSite Lax and Secure. pax_vid and the touch cookies expire in about 13 months, pax_vs in 30 minutes. No _ga or other third-party cookie
  • Step 4: the page is headed "Where people come from". The Channels table has a row "e2e-ads / cpc" with campaign <campaign>, at least 1 visitor and at least 1 booking. The Bookings tile counts it, and the Client funnel shows a "Booked" step
  • Step 5: "First touch" is highlighted and ?touch=first is in the URL; the client's row moves to wherever client@'s browser first arrived from (often "(direct) / (none)" under All channels). "Last touch" brings the <campaign> row back
  • Nothing in the page names a quiz answer, a condition or a URL query string other than the campaign fields

Notes The client account is a test account; test accounts are counted on staging and left out in production. Nothing is sent to Google or any ad platform: the click id is only stored in Pax's own database.

Automated run

  1. 1. As the client, open the home page from a campaign link
  2. 2. Book a session with the saved card
  3. 3. As the admin, open Marketing (last touch, 7 days, Paid ads)
  4. 4. Switch to First touch
Screenshot for TC-A-50Screenshot for TC-A-50
PassedTC-A-51Only admins can open Marketing (new)8.7s

Test script

Preconditions test@paxpsychology.dev (psychologist), client@paxpsychology.dev (client) and admin@paxpsychology.dev

Steps

  1. Signed out, visit /dashboard/marketing
  2. Sign in as the psychologist and visit /dashboard/marketing
  3. Repeat as the client
  4. Sign in as the admin, open "At a glance", then click "Marketing" in the sidebar (Audience). Go back and click the "Where people come from" card

Expected

  • Step 1: /auth/login?redirectTo=%2Fdashboard%2Fmarketing
  • Steps 2 and 3: sent back to their own dashboard; no Marketing heading, numbers or sidebar link at any point
  • Step 4: both lead to /dashboard/marketing with the tiles, "Client funnel", "Quiz drop-off", "Channels", "Psychologist supply" and "Newsletter and contact". The period picker (7 days, 30 days, 90 days, 12 months) and the channel filter (All channels, Paid ads, Search, Social, Email, Other sites, Direct) update the URL

Automated run

  1. 1. Signed out, visit /dashboard/marketing
  2. 2. As the psychologist, visit /dashboard/marketing
  3. 3. As the client, visit /dashboard/marketing
  4. 4. As the admin, open it from the sidebar
Screenshot for TC-A-51

3G. Access and route guards (new)

3 passed
PassedTC-A-25Non-admins are refused at admin URLs (new)55.0s

Test script

Preconditions test@paxpsychology.dev (psychologist) and client@paxpsychology.dev (client). The id of another user (for example test2@) and of a correspondence row, copied while signed in as the admin

Steps

  1. As the psychologist, visit /dashboard/users, /dashboard/users/add, /dashboard/users/<id>, /dashboard/users/<id>/edit, /dashboard/users/impersonation-log, /dashboard/journal/add, /dashboard/categories, /dashboard/authors, /dashboard/faqs, /dashboard/faqs/new, /dashboard/media, /dashboard/newsletter, /dashboard/correspondence, /dashboard/correspondence/<id>, /dashboard/settings/integrations, /dashboard/settings?section=journal-site, /dashboard/journal and /dashboard/journal/<an article id>
  2. Repeat as the client
  3. Sign out, visit /dashboard/users, then sign in as the admin

Expected

  • Every admin page sends a psychologist or client back to their own dashboard, except /dashboard/settings/integrations, which is the 404 page. No admin data appears at any point, including in the page's HTML: no other user's email, no correspondence subjects, no invite form
  • ?section=journal-site falls back to the role's own settings; there is no "Journal & site" link and no "SEO & social" panel
  • /dashboard/journal and /dashboard/journal/<an article id>: the psychologist gets the 403 screen ("That bit's not yours to see."), never their own dashboard (the address may stay put or read /forbidden), and their sidebar has no Journal item; the client gets their own private journal ("New entry"), never the CMS
  • Step 3: /auth/login?redirectTo=%2Fdashboard%2Fusers, and after the admin signs in they land on /dashboard/users

Automated run

  1. 1. As the psychologist, visit each admin URL
  2. (psychologist) Journal & site settings are not offered
  3. 2. As the client, visit each admin URL
  4. (client) Journal & site settings are not offered
  5. The psychologist is refused the Journal CMS; the client gets their own journal
  6. 3. Signed out, /dashboard/users goes to sign-in, and back after the admin signs in
Screenshot for TC-A-25
PassedTC-A-26Admins are kept out of psychologist and client pages (new)22.7s

Test script

Preconditions Logged in as admin@paxpsychology.dev

Steps

  1. Visit /dashboard, /dashboard/appointments, /dashboard/clients, /dashboard/clients/<a client id>, /dashboard/new-clients, /dashboard/actions, /dashboard/earnings, /dashboard/listing, /dashboard/invoices, /dashboard/reading, /dashboard/my-psychologist and /dashboard/settings/appointment-types/add
  2. Impersonate test@paxpsychology.dev and open /dashboard/clients, then stop impersonating

Expected

  • /dashboard lands on /dashboard/admin. /dashboard/earnings and /dashboard/invoices are the 404 page, and the admin's sidebar has no Earnings item. /dashboard/settings/appointment-types/add is the 403 screen ("That bit's not yours to see."): session types belong to a practitioner, so an admin never adds one. Every other page sends the admin to their own dashboard. None shows a client's details
  • Step 2: while impersonating, /dashboard/clients shows test@'s caseload (the impersonated session carries the psychologist's role)

Automated run

  1. 1. As the admin, visit each psychologist and client page
  2. 2. Impersonate test@ and open Clients
Screenshot for TC-A-26
PassedTC-A-27The Better Auth admin and two-step routes are closed (new)5.2s

Test script

Preconditions Logged in as admin@paxpsychology.dev. Note the number of rows in the impersonation log

Steps

  1. With the admin's session cookie, POST straight to each of: /api/auth/admin/impersonate-user (body { "userId": "<client id>" }), /api/auth/admin/stop-impersonating, /api/auth/admin/set-role, /api/auth/admin/ban-user, /api/auth/admin/revoke-user-sessions, /api/auth/admin/remove-user, /api/auth/admin/create-user, /api/auth/sign-up/email, /api/auth/sign-in/email, /api/auth/change-email, /api/auth/change-password, /api/auth/update-user, /api/auth/delete-user, /api/auth/request-password-reset, /api/auth/reset-password, /api/auth/revoke-sessions, and /api/auth/two-factor/enable, /disable, /send-otp, /verify-otp, /verify-totp, /verify-backup-code, /generate-backup-codes and /get-totp-uri
  2. GET /api/auth/admin/list-users, /api/auth/list-sessions and /api/auth/two-factor/get-totp-uri
  3. GET /api/auth/get-session; reload /dashboard/users and the impersonation log

Expected

  • Steps 1 and 2: every request answers a plain 404, with no Location header and no session cookie
  • Step 3: get-session answers 200 with the admin's own session (so the check is not a blanket block). The admin is still the admin, with no impersonation banner; the client's role and status are unchanged; the impersonation log has no new row

Notes Extends TC-C-39, which covers only the sign-in routes. The allowlist is ALLOWED_AUTH_ROUTES in lib/auth-guards.ts; a new plugin's routes stay closed until they are added there.

Automated run

  1. 1. With the admin's session cookie, POST each closed route
  2. 2. GET /api/auth/admin/list-users and /api/auth/list-sessions
  3. 3. The admin is unchanged, and the check is not a blanket block
Screenshot for TC-A-27

3H. Search and sharing settings (new)

1 passed
PassedTC-A-60The site description in settings sets the homepage description (new)7.4s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=journal-site and note the "Meta description" in "SEO & social"
  2. Change "Meta description" to Talk to a psychologist who gets it. and watch the "Share preview" card under the form
  3. Click "Save changes"
  4. In a private window, open https://paxpsychology.dev/ and view the page source
  5. Put the original description back and save

Expected

  • "SEO & social" also has "Default share image URL", "X / Twitter", "Instagram", "LinkedIn page URL", "Facebook page URL", "Google verification code" and "Bing verification code"
  • The share preview's description changes as you type, before saving, and its title reads "Find the right psychologist | Pax Psychology"
  • "Site settings updated" shows after saving
  • The homepage's <meta name="description">, og:description and twitter:description are the new text, without a redeploy
  • An invalid value is refused with a message under its field: a title template without %s, an X handle with a space, a LinkedIn URL on another site

Notes The same settings feed every public page: the title template, the site name in og:site_name, twitter:site from the X handle, the default share image for pages with no image of their own, the Organization sameAs links on the homepage, and the verification meta tags.

Automated run

  1. 1. Open Settings > Journal & site and note the Meta description
  2. 2. Change the Meta description and watch the share preview
  3. 3. Click Save changes
  4. 4. Open the homepage and read its description tags
  5. An invalid value is refused under its field
  6. 5. Put the original description back and save
Screenshot for TC-A-60

Mobile (375px)

19 cases18 passed 1 skipped by design

4A. Marketing pages

6 passed
PassedTC-M-01Homepage at phone width5.2s

Test script

Preconditions Cookie banner accepted (or accept it first)

Steps

  1. Navigate to https://paxpsychology.dev/ on a 375px wide screen
  2. Scroll through How this works and the coral band
  3. Scroll through the psychologist cards and the Journal
  4. Scroll through How we can help and the FAQs
  5. Scroll to the right-time block and the coral subscribe block

Expected

  • Dark header with "Pax Psychology" and a kebab (⋮) menu button; the desktop links (Stories, Psychologists, Journal) are not shown in the bar
  • Hero: the H1 "Shit happens. It's good to talk about it." set large (about 56px, over five lines), then the paragraph and a full-width white "Find my match" button
  • Every section is stacked in one column. Section titles ("How this works", "Journal", "FAQs") read across the page, not rotated sideways
  • How this works: the title, then a portrait photo, then the step title and text, centred, with dots under it
  • The coral band "When it's personal, you need the right person." has two full-width buttons: "Find my match" and, under it, an outlined "Search for a Psychologist" (→ /psychologists) that the desktop band does not have
  • "Breathe. There's no judgement here" goes straight into the psychologist cards, which swipe sideways inside their row (the page itself does not)
  • Journal: the title, the intro ("Our journal is designed to assist you…"), then three compact rows (square photo on the left, grey category and a bold title on the right, no excerpt) and a full-width "Read more" (→ /journal)
  • "How we can help": the intro, then three coloured pill links "Mental Health" (yellow), "Performance" (blue) and "Wellbeing" (green), each with a chevron and no photo, each going to its section of /our-story
  • FAQs on the blue band: the question rows, then a white "Find my match" button under them
  • "The right time is now. Take action." with its "Find my match" button, then a separate coral block: a photo running edge to edge, "Subscribe today", the sign-up form and "Sign up"

Automated run

  1. 1. Navigate to https://paxpsychology.dev/ on a 375px wide screen
  2. 2. Scroll through How this works and the coral band
  3. 3. Scroll through the psychologist cards and the Journal
  4. 4. Scroll through How we can help and the FAQs
  5. 5. Scroll to the right-time block and the coral subscribe block
Screenshot for TC-M-01
PassedTC-M-02Header and mobile menu2.8s

Test script

Preconditions Signed out, cookie banner accepted

Steps

  1. Navigate to https://paxpsychology.dev/journal on a 375px wide screen
  2. Tap the menu button
  3. Press Escape, then reopen the menu and tap Contact
  4. Navigate to https://paxpsychology.dev/ and open the menu

Expected

  • On /journal the header is light; on / it is dark. Both show "Pax Psychology" and a kebab (⋮) button (aria-label "Open menu") that is at least 44px square
  • The menu fills the whole screen edge to edge (no gap down either side), on dark ink, with a close cross (aria-label "Close menu")
  • It holds a white "Find my match" button (→ /onboarding) and large outlined links: "About" (→ /our-story), "Stories" (→ /journal?category=Stories), "Psychologists", "Journal", "Contact" (→ /contact) and "Sign in" (→ /auth/login). Each is easy to tap (at least 44px tall) and fills in white on hover or focus
  • The page behind does not scroll while the menu is open
  • Escape closes the menu; tapping Contact opens /contact and closes the menu

Automated run

  1. 1. Navigate to https://paxpsychology.dev/journal on a 375px wide screen
  2. 2. Tap the menu button
  3. 3. Press Escape, then reopen the menu and tap Contact
  4. 4. Navigate to https://paxpsychology.dev/ and open the menu
Screenshot for TC-M-02
PassedTC-M-03Footer at phone width903ms

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/our-story on a 375px wide screen and scroll to the footer
  2. Check the small links and contact details

Expected

  • A single column of large links, one under the other: "About" (→ /our-story), "Find my match", "Psychologists", "Journal" and "Contact" (→ /contact). There are no "About / Support / Contact / Subscribe" column headings and no sign-up form in the footer on a phone
  • Small spaced capitals under them: "Privacy policy | Terms of Use"
  • info@paxpsychology.com.au (a mail link), the copyright line and the Acknowledgement of Country

Notes From 640px wide the footer switches back to the columns with the Subscribe form (TC-C-01).

Automated run

  1. 1. Navigate to https://paxpsychology.dev/our-story on a 375px wide screen and scroll to the footer
  2. 2. Check the small links and contact details
Screenshot for TC-M-03
PassedTC-M-04Journal and Your stories at phone width1.2s

Test script

Preconditions At least two published journal articles

Steps

  1. Navigate to https://paxpsychology.dev/journal on a 375px wide screen
  2. Scroll to the sign-up band and the right-time block
  3. Navigate to https://paxpsychology.dev/journal?category=Stories

Expected

  • /journal: the H1 "Journal" and intro centred, the category chips wrapping onto several centred lines, then one full-width card per row (photo, coloured category tag, title, excerpt). A story in the feed is a story card instead (photo, name, excerpt, "Read Sarah's story")
  • "Get tips for your journal landed in your inbox." set large (about 56px) with the sign-up form under it
  • The mint photo panel (the flying man) comes before "The right time is now. Take action." on a phone
  • ?category=Stories: the H1 "Your stories" with "Our story" outlined under it (a link to /our-story), the story cards one per row (photo, name, excerpt and a full-width "Read Sarah's story" button), then the light blue "When it's personal, you need the right person." band with a full-width "Find my match"

Automated run

  1. 1. Navigate to https://paxpsychology.dev/journal on a 375px wide screen
  2. 2. Scroll to the sign-up band and the right-time block
  3. 3. Navigate to https://paxpsychology.dev/journal?category=Stories
Screenshot for TC-M-04
PassedTC-M-05Journal article at phone width1.1s

Test script

Preconditions At least two published journal articles

Steps

  1. Open the first article from https://paxpsychology.dev/journal on a 375px wide screen
  2. Scroll to See similar

Expected

  • The yellow header with the H1, photo, author, date and topic, and a row of share buttons under them (LinkedIn, X, Facebook, email), each easy to tap
  • The article body fits the screen with no sideways scrolling
  • "See similar" reads across the page, then up to three compact rows (square photo on the left, grey category and bold title on the right) and a full-width "See more" button (→ /journal)

Automated run

  1. 1. Open the first article from https://paxpsychology.dev/journal on a 375px wide screen
  2. 2. Scroll to See similar
Screenshot for TC-M-05
PassedTC-M-06Our Story at phone width1.0s

Test script

Preconditions None

Steps

  1. Navigate to https://paxpsychology.dev/our-story on a 375px wide screen
  2. Scroll through Wellbeing, Performance and Mental Health
  3. Scroll to the light blue band

Expected

  • "Your stories" outlined over the H1 "Our story", centred
  • "The founders" reads across the page above the founders photo, then the story heading "Pax Psychology started when two friends…" at a readable size (about 30px, not the 40px desktop size) and the two paragraphs
  • "Wellbeing", "Performance" and "Mental Health" each show the title and paragraph first, then a full-width photo panel under them
  • The light blue band "We'll help find a psychologist for you." with a full-width "Find my match"

Automated run

  1. 1. Navigate to https://paxpsychology.dev/our-story on a 375px wide screen
  2. 2. Scroll through Wellbeing, Performance and Mental Health
  3. 3. Scroll to the light blue band
Screenshot for TC-M-06

4B. Directory, profile and quiz

4 passed
PassedTC-M-07Psychologist directory at phone width1.9s

Test script

Preconditions Cookie banner accepted; at least two live psychologists

Steps

  1. Navigate to https://paxpsychology.dev/psychologists on a 375px wide screen
  2. Tap the sliders icon, then close the drawer
  3. Scroll through the search results
  4. Scroll to Popular choices

Expected

  • The H1 "Search psychologists" reads across the page with the sliders (filters) icon beside it, and the search field under it runs the full width of the screen. There is no "Filter by" column
  • The sliders icon is easy to tap (at least 44px square) and opens a dark full-screen "Filter by" panel that fits on the screen, with the rows "Gender", "Focus area", "Issue" and "Name" (plus "Session type" and "Availability"); there is no "Location" row. "Show <n> results" at its foot closes it
  • Each result is a full-width white row with the photo, name and location, a +/- shortlist icon and a black "Book" button (→ /book/<psychologist slug>); the sort dropdown is still shown
  • When there is more than one page of results, the page squares and arrows sit under the list, the current page filled black
  • "Popular choices" is a row of cards that swipes sideways inside itself, each with "Book appointment"
  • Nothing on the page scrolls sideways

Notes TC-C-30 covers applying filters inside the drawer and the drawer closing when the window is widened.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/psychologists on a 375px wide screen
  2. 2. Tap the sliders icon, then close the drawer
  3. 3. Scroll through the search results
  4. 4. Scroll to Popular choices
Screenshot for TC-M-07
PassedTC-M-08Psychologist profile at phone width2.3s

Test script

Preconditions Signed out (staff see a dashboard notice instead of the booking button); at least two live psychologists

Steps

  1. Open the first profile from https://paxpsychology.dev/psychologists on a 375px wide screen
  2. Scroll down through the bio
  3. Scroll through Availability, Fee and Specialities
  4. Tap "See more" under Specialities
  5. Scroll to Discover other Psychologists

Expected

  • The Practitioner page in one column: the header's back chevron, the name (H1), a full-width photo, then the title, location and highlights
  • A black "Book appointment" bar stays pinned to the bottom of the screen, edge to edge, while you scroll through the bio and the sections under it, and scrolls away with the end of the profile
  • "Bio", "Availability", "Fee" ("From $<cheapest active session type> per session"), "Details" and "Specialities" are stacked one under the other, each with a hairline above it
  • There is no Medicare copy in the profile's facts (title, highlights, availability, fee, details)
  • Specialities show about two and a half rows of chips fading out; when they don't all fit, "See more" shows the rest and turns into "See less"
  • "Discover other psychologists" reads across the page with a full-width "Search psychologists" button, then a row of practitioner cards ("Book appointment" on each) that swipes sideways inside itself
  • Nothing on the page scrolls sideways

Notes A profile whose specialities all fit in that space shows them all and has no "See more"; check step 4 on a profile with a long list if there is one.

Automated run

  1. 1. Open the first profile from https://paxpsychology.dev/psychologists on a 375px wide screen
  2. 2. Scroll down through the bio
  3. 3. Scroll through Availability, Fee and Specialities
  4. 4. Tap “See more” under Specialities
  5. 5. Scroll to Discover other Psychologists
Screenshot for TC-M-08
PassedTC-M-09Matching quiz at phone width2.5s

Test script

Preconditions No saved quiz progress (use a private window, or clear the site's storage)

Steps

  1. Navigate to https://paxpsychology.dev/onboarding on a 375px wide screen
  2. Tap "Let's go!"
  3. On "What should we call you?", tap the back arrow, then the next arrow
  4. Type a name and tap "Ok"
  5. Answer through to the tags and tap "Anxiety"

Expected

  • The welcome screen "When it's personal, you need the right person." with "Let's go!", and a back chevron beside "Pax Psychology" in the bar; headings on every screen are left aligned on a phone (centred only on wider screens)
  • From the first question, a row above the question holds a back arrow, the progress dots (the current one a short coral bar) and a next arrow; the answer rows run the width of the screen
  • The back arrow returns to "Is this your first time speaking with a psychologist?" and the next arrow comes back to the name question
  • The name field runs the width of the screen; "Ok" stays disabled until something is typed, and the "Press Enter ↵" hint is not shown on a phone
  • On "Do any of these tags reflect your Mental Health needs?" a tapped tag fills coral with a ×, and "Ok" is under the tags
  • Nothing scrolls sideways on any of these screens

Notes Stop at the tags; TC-C-07 covers the rest of the quiz and the booking steps.

Automated run

  1. 1. Navigate to https://paxpsychology.dev/onboarding on a 375px wide screen
  2. 2. Tap “Let’s go!”
  3. 3. On “What should we call you?”, tap the back arrow, then the next arrow
  4. 4. Type a name and tap “Ok”
  5. 5. Answer through to the tags and tap “Anxiety”
Screenshot for TC-M-09
PassedTC-M-17Booking steps at phone width (new)14.6s

Test script

Preconditions Logged in as client@paxpsychology.dev

Steps

  1. At 390px wide, navigate to https://paxpsychology.dev/book/emily-thompson, choose "Initial consultation", click "Pick a time", and pick a time
  2. Click "Continue to details" (the review), then "Continue to payment"
  3. Repeat at 375px

Expected

  • Nothing scrolls sideways on any step: the page is exactly the screen's width
  • The wizard's phone controls sit above each heading: a back arrow, the dots and a forward arrow ("Previous step", "Next step"); the forward arrow is off until a time is picked
  • Times show three to a row; on the payment step the button sits full width above "Back"

Notes The old stepper made the time and payment steps 401px wide on a 390px phone.

Automated run

  1. 1. (390px) Open the booking page and pick a day and time
  2. 2. (390px) Continue to the review
  3. 3. (390px) Continue to payment
  4. 1. (375px) Open the booking page and pick a day and time
  5. 2. (375px) Continue to the review
  6. 3. (375px) Continue to payment
Screenshot for TC-M-17

4C. The client portal at 390px (new)

4 passed
PassedTC-M-10Sign in and register at phone width (new)1.9s

Test script

Preconditions Signed out, 390 × 844

Steps

  1. Open /auth/login
  2. Tap the close (X)
  3. Open /auth/register, then /auth/forgot-password

Expected

  • No page scrolls sideways
  • Sign in: the close (X), Email, Password, the show/hide password toggle, "Sign in", "Forgot password" and "Continue with Google" are each at least 44px
  • Step 2 returns to /
  • Register: First name, Email, Password and "Create account" are at least 44px; Forgot password: Email and "Send reset link"

Notes Known defect (24 Oct 2026): the show/hide password toggle is 32 × 32px.

Automated run

  1. 1. Open /auth/login
  2. 2. Tap the close (X)
  3. 3. Open /auth/register and /auth/forgot-password
Screenshot for TC-M-10
PassedTC-M-13Client Home at phone width (new)3.6s

Test script

Preconditions Logged in as client@paxpsychology.dev, 390 × 844

Steps

  1. Open /dashboard
  2. Tap the avatar
  3. Tap "More", then press Escape
  4. Tap each bottom tab: Sessions, Journal, Reading list, Home

Expected

  • No sidebar; the top bar shows the brand, a "Notifications" bell and the avatar; the bell, the avatar menu button, the five bottom tabs (Home, Sessions, Journal, Reading list, More) and the check-in mood buttons are at least 44px; nothing scrolls sideways
  • Step 2: the menu offers Settings and Sign out
  • Step 3: the full-screen menu lists "Your psychologist" and "Settings", and Escape closes it
  • Step 4: each tab opens its page, and none scrolls sideways

Automated run

  1. 1. Open /dashboard
  2. 2. Tap the avatar
  3. 3. Tap "More", then close it with Escape
  4. 4. Tap each bottom tab
Screenshot for TC-M-13
PassedTC-M-14Sessions and a session at phone width (new)7.5s

Test script

Preconditions Logged in as client@paxpsychology.dev, 390 × 844, with an upcoming session (more than two days out) and a completed, paid one

Steps

  1. Open Sessions, then the Past tab
  2. Open the completed session
  3. Open the upcoming session; tap "Cancel session", then "Keep my session"

Expected

  • No screen scrolls sideways
  • Sessions: "Book a session", the Upcoming and Past tabs, "Reschedule" and "Cancel session" are at least 44px; on Past, "Book again" and "Receipt" too
  • Step 2: the receipt card comes first, above "Session details"; "View receipt" and "Book a follow-up session" are at least 44px
  • Step 3: "Reschedule" and "Cancel session" are at least 44px; cancel opens as a bottom sheet (full width, resting on the bottom edge) whose two buttons are at least 44px; "Keep my session" closes it

Notes Known defect (24 Oct 2026): "Book a session" is 42px tall, and each Past row's "Book again" and "Receipt" are 38px tall.

Automated run

  1. 1. Open Sessions, then the Past tab
  2. 2. Open the completed session
  3. 3. Open an upcoming session; tap "Cancel session", then "Keep my session"
Screenshot for TC-M-14
PassedTC-M-15Receipt and Settings at phone width (new)5.4s

Test script

Preconditions Logged in as client@paxpsychology.dev, 390 × 844, with a paid receipt

Steps

  1. Open the receipt
  2. Open Settings and swipe the section pills
  3. Tap "Delete account", then "Keep my account"
  4. Tap "Payment methods"

Expected

  • No screen scrolls sideways
  • Step 1: "Paid", and the download button is at least 44px
  • Step 2: the section pills scroll inside their own row while the page does not; the pills, the name field, "Save changes", "Sign out" and "Delete account" are at least 44px
  • Step 3: a bottom sheet "Delete your account?"; "Keep my account" closes it
  • Step 4: Payment methods opens and fits

Automated run

  1. 1. Open a receipt
  2. 2. Open Settings; the section pills scroll on their own
  3. 3. Tap "Delete account", then "Keep my account"
  4. 4. Open Payment methods
Screenshot for TC-M-15

4D. The psychologist's dashboard at 390px (new)

4 passed 1 skipped by design
PassedTC-M-18Today at phone width (new)3.2s

Test script

Preconditions Logged in as test@paxpsychology.dev, 390 × 844

Steps

  1. Open /dashboard
  2. Tap "More", then press Escape

Expected

  • No sidebar; the top bar shows the brand, a "Notifications" bell and the avatar; the bell, the avatar menu, the bottom tabs Today, Schedule, Clients, Earnings and More, the quick actions "Block time" and "Schedule", and "Full schedule" are at least 44px; nothing scrolls sideways
  • Step 2: the full-screen menu lists "Your listing" and "Settings"; Escape closes it

Notes Known defect (24 Oct 2026): the "Block time" and "Schedule" quick actions are 42px tall.

Automated run

  1. 1. Open /dashboard
  2. 2. Tap "More", then close it
Screenshot for TC-M-18
PassedTC-M-19Schedule at phone width (new)2.8s

Test script

Preconditions Logged in as test@paxpsychology.dev, 390 × 844

Steps

  1. Open /dashboard/appointments
  2. Tap "Week"
  3. Tap "Agenda", then "Book a session", then "Cancel"

Expected

  • The page never scrolls sideways
  • "Book a session", "Previous week", "Next week", "Today", the Agenda / Week / Month tabs and "Block time" are at least 44px
  • Step 2: the week grid scrolls sideways inside its own panel
  • Step 3: the "Schedule a session" modal fits the screen

Automated run

  1. 1. Open Schedule
  2. 2. The week grid scrolls inside its own panel
  3. 3. Switch to "Agenda" and open "Book a session", then close it
Screenshot for TC-M-19
PassedTC-M-20A session at phone width (new)4.3s

Test script

Preconditions Logged in as test@paxpsychology.dev, 390 × 844, with an upcoming CONFIRMED session and one that has ended

Steps

  1. Open the upcoming session
  2. Open the session that has ended, tap "Complete appointment", then press Escape

Expected

  • No screen scrolls sideways
  • Step 1: the top bar has a back arrow ("Back to schedule") to Schedule; it, "Message", "Profile", "Reschedule" and "Cancel appointment" are at least 44px
  • Step 2: "Complete appointment" is at least 44px; the completion dialog fits the screen, and its "They attended" option and "Continue" are at least 44px; Escape closes it without completing anything

Automated run

  1. 1. Open an upcoming session
  2. 2. Open a session that has ended; tap "Complete appointment", then close
Screenshot for TC-M-20
PassedTC-M-21Clients at phone width (new)3.7s

Test script

Preconditions Logged in as test@paxpsychology.dev, 390 × 844

Steps

  1. Open /dashboard/clients
  2. Tap a client, then press Escape

Expected

  • No screen scrolls sideways
  • The search box, the status filters, each client row and the paging buttons are at least 44px
  • Step 2: the client drawer sits inside the screen; "Book session" and "View full profile" are at least 44px

Notes Known defect (24 Oct 2026): "Go to previous page" and "Go to next page" are 32 × 32px.

Automated run

  1. 1. Open Clients
  2. 2. Tap a client: the drawer fits the screen
Screenshot for TC-M-21
Skipped by designTC-M-22Messages at phone width (new; flag-gated)2.9s

Messaging is off on this target (FEATURE_MESSAGING_ENABLED): /dashboard/messages sends the psychologist back to Today.

Test script

Preconditions FEATURE_MESSAGING_ENABLED=true on the target (off on staging). Logged in as test@paxpsychology.dev, 390 × 844, with a conversation

Steps

  1. Open /dashboard/messages
  2. Open a conversation

Expected

  • Neither screen scrolls sideways
  • A "Search conversations" box sits above the list and is at least 44px tall; typing part of a name narrows the list to matching people
  • The message box and "Send" are at least 44px

Notes With messaging off, /dashboard/messages sends the psychologist back to Today and the automated case is skipped by design.

Screenshot for TC-M-22

Two-step Verification

7 cases7 passed
PassedTC-C-40Sign in with an emailed code (new)8.1s

Test script

Preconditions Signed out.

Steps

  1. Sign in on /auth/login as 2fa-client@paxpsychology.dev / Test123!
  2. Try /dashboard in the address bar, then go back
  3. Click “Continue” with the field empty, then enter 000000 and click “Continue”
  4. Enter the code from the email “Your Pax Psychology sign-in code”
  5. Open Settings, Security

Expected

  • Step 1: “Signing in as 2•••@paxpsychology.dev”, then “Check your email.” with “We sent a 6-digit code to 2•••@paxpsychology.dev. It works for 10 minutes.” A disabled “Send a new code in 0:30” counting down, “Use a backup code”, and “Trust this browser for 30 days” with “We won't ask for a code here again until <date>. Skip this on a shared computer.” “Continue” is black and enabled
  • Step 1 (email): the code email names the device, the approximate place (“Near”, on staging only; nothing locally) and when, and says “Works for 10 minutes, once.”
  • Step 2: back to sign in. No session exists until the code is entered
  • Step 3: empty: “Enter your code.” Wrong: “That code didn't work. Check it and try again.”
  • Step 4: the dashboard
  • Step 5: “On since <date>” (or “On” for the seeded account); “Email codes, sent to 2•••@paxpsychology.dev.”; Recent sign-in activity has a table with When, What happened, Device, Near and Result, listing “Signed in, Password and email code” (Signed in) and “Code not accepted, Email code, wrong code” (Refused), with the line “We keep the nearest city with each sign-in to help you spot ones that aren't you. Our privacy policy explains this.” (linking /privacy-policy) above it

Notes “Send a new code” works once every 30 seconds and five times an hour; after the fifth, a panel says until when the newest code still works and when more can be asked for (“The newest one still works until 9:41 am. You can ask for more after 10:12 am, or use a backup code.”). Ten wrong codes in a row show “Let's pause for 15 minutes.” with the time it lifts, and send “Sign-in is paused for 15 minutes”. A sign-in from a browser this account hasn't used before sends “New sign-in to your Pax Psychology account” (Device, Near, When, How, “Review sign-in activity”); a trusted browser never does.

Automated run

  1. 1. Sign in as 2fa-client@paxpsychology.dev with Test123!
  2. 2. No session yet: /dashboard goes back to sign in
  3. Email "Your Pax Psychology sign-in code" is sent to 2fa-client@paxpsychology.dev
  4. 3. An empty and a wrong code are refused
  5. 4. Enter the code from the email: signed in
  6. 5. Settings, Security shows the method and the sign-in
Screenshot for TC-C-40
PassedTC-C-41Sign in with a backup code (new)8.5s

Test script

Preconditions Signed out.

Steps

  1. Sign in as 2fa-client@paxpsychology.dev, then click “Use a backup code”
  2. Enter aaaa2seed2 (the code AAAA2-SEED2, in lower case without the dash)
  3. Open Settings, Security
  4. Sign out, sign in again and try the same backup code

Expected

  • Step 1: “Use a backup code.” with the hint “10 characters, like ABCDE-23456. The dash is optional.” and “Lost your phone and your codes? Contact us …”
  • Step 2: the dashboard, and the email “A backup code was used on your account” (“Codes left: 9 of 10”, the device, and “Make new backup codes”)
  • Step 3: “9 of 10 left. Each one works once. Making new ones cancels the old set.”
  • Step 4: “That backup code didn't work. Check it and try again.”

Automated run

  1. 1. Sign in as 2fa-client@paxpsychology.dev, then choose “Use a backup code”
  2. 2. Enter AAAA2-SEED2 (lower case and without the dash works too)
  3. Email "A backup code was used on your account" is sent to 2fa-client@paxpsychology.dev
  4. 3. Settings, Security: 9 of 10 left
  5. 4. The same backup code is refused next time
Screenshot for TC-C-41
PassedTC-C-42Trust this browser for 30 days (new)10.3s

Test script

Preconditions Signed out.

Steps

  1. Sign in as 2fa-client@paxpsychology.dev, tick “Trust this browser for 30 days” and enter the emailed code
  2. Sign out and sign in again
  3. Settings, Security, Trusted browsers: click “Stop trusting”
  4. Sign out and sign in again

Expected

  • Step 2: straight to the dashboard, no code (and no “New sign-in” email)
  • Step 3: the browser was listed with a “This browser” tag (for example “Chrome on macOS”, “Trusted 24 Oct, until 23 Nov”), above “Stop trusting all browsers”; after “Stop trusting” the card says “None yet.”
  • Step 4: the code is asked for again

Automated run

  1. 1. Sign in as 2fa-client@, tick “Trust this browser for 30 days” and enter the code
  2. 2. Sign out and in again: no code asked for
  3. 3. Settings, Security lists the browser; “Stop trusting” it
  4. 4. Sign out and in again: the code is asked for
Screenshot for TC-C-42
PassedTC-C-43Booking sign-in with two-step verification (new)6.7s

Test script

Preconditions Signed out.

Steps

  1. From test@'s profile, book: pick a time, then "Continue to details"
  2. On "Your details." click "Sign in" and sign in as 2fa-client@paxpsychology.dev in the "Sign in to your account" panel ("Sign in and continue")
  3. Enter the emailed code in the panel and click "Continue"

Expected

  • Step 2: the panel opens in the page above the form (no dialog) and switches to "Check your email." with the 6-digit code field, without leaving the booking
  • Step 3: the panel closes and the booking carries on with the same time, signed in: "Is this all still right?" with the account's details (the "Already have an account?" card is gone)

Notes "Not now" closes the panel. The client banner suggesting two-step verification never shows on booking or payment screens. On the client's dashboard home, after a confirmed booking, it is a quiet white card with a thin border: "Add two-step verification to your account?", "We'll ask for a code when you sign in on a new browser. It's optional and takes about a minute.", "Turn it on" and "Not now".

Automated run

  1. 1. Open test@’s booking page, pick a time and continue
  2. 2. Click “Sign in” and sign in as 2fa-client@paxpsychology.dev
  3. 3. The code step shows in the sign-in panel; enter the emailed code
  4. 4. The panel closes and the booking carries on with the same time, signed in
Screenshot for TC-C-43
PassedTC-P-29Sign in with an authenticator app (new)9.2s

Test script

Preconditions Signed out. The psychologist key above added to an authenticator app.

Steps

  1. Go to /auth/login?redirectTo=/dashboard/settings and sign in as 2fa-psych@paxpsychology.dev
  2. Enter the 6-digit code from the app
  3. Sign out, sign in again and enter the same code before it changes
  4. Open Settings, Security

Expected

  • Step 1: “Enter your code.”, the hint “The code refreshes every 30 seconds.”, and under “Can't use your app?” the links “Email me a code instead” and “Use a backup code”
  • Step 2: Settings opens (the page asked for)
  • Step 3: “That code didn't work. Codes change every 30 seconds, so check you're using the newest one.” Each code works once; wait for the next one
  • Step 4: “Authenticator app. If you can't use it, we can email you a code.”; “Turn off” is shown but disabled, with “Psychologist accounts need two-step verification to keep client records safe, so it stays on.”

Notes Five wrong codes on one sign-in show “Let's start that again.”; a sign-in left for more than 10 minutes shows “That took a little long.” Both offer “Back to sign in”.

Automated run

  1. 1. Sign in as 2fa-psych@paxpsychology.dev with Test123!
  2. 2. Enter the code from the authenticator app: lands on the page asked for
  3. 3. The same code cannot be used again
  4. 4. Settings, Security: Turn off is shown but disabled, with why
Screenshot for TC-P-29
PassedTC-A-23Set up two-step verification from the gate (new)6.2s

Test script

Preconditions Signed out. 2fa-setup@ is reset to no 2FA by the seed (the acceptance run resets it).

Steps

  1. Sign in as 2fa-setup@paxpsychology.dev
  2. Try /dashboard
  3. Leave “Authenticator app” chosen and click “Continue”; open “Can't scan? Enter this key instead”
  4. Enter the code from the app and click “Confirm”
  5. Click “Continue” before and after ticking “I've saved these codes somewhere safe”
  6. Click “Go to your dashboard”

Expected

  • Step 1: the photo panel's headline reads “Your sessions stay between you and us.”; “Step 1 of 3”, “Set up two-step verification to continue.” with the note “Required for admin accounts. There's no way to skip this one.”, a radio choice of “Authenticator app” (Recommended) and “Email codes”, “Continue”, and “Sign out” and “Get help” but no “Not now”
  • Step 2: back on the setup page
  • Step 3: “Step 2 of 3”, “Scan this code.”, the key in groups of four with “Copy key”
  • Step 4: “Step 3 of 3”, “Save your backup codes.” with ten codes, “Copy”, “Download” and “Print”; the email “Two-step verification is on”
  • Step 5: “Continue” stays disabled until the box is ticked, then “You're all set.” with Codes from “Authenticator app”, Backup codes “10, saved”, If you're stuck “Email me a code”
  • Step 6: the admin dashboard

Notes “Print” opens the print dialog with a plain page of just the codes: “Pax Psychology” above the heading “Backup codes”, “For 2•••@paxpsychology.dev, made <date>”, the ten codes with tick boxes, and the footer “Pax Psychology, printed <date>”; “Download” saves pax-psychology-backup-codes.txt. At phone width “Can't scan? Enter this key instead” starts open. A psychologist in grace sees a banner in the dashboard's content column (“Set up two-step verification in N days.”, “Set it up”, and a cross to hide it until tomorrow; at phone width the cross sits beside the title, the body reads “From <date> you'll need it to open your dashboard. It takes about two minutes, and your bookings carry on either way.” and a full-width “Set it up now” follows), and on the setup page “Remind me later” with “N days left, until <date>.” Once the grace ends, the setup page says “Your 14 days to set this up ended on <date>. Your bookings, reminders and payouts carry on as normal.”

Automated run

  1. 1. Sign in as 2fa-setup@paxpsychology.dev: sent to setup, not the dashboard
  2. 2. /dashboard still goes to setup
  3. 3. Continue with “Authenticator app”: a QR code and a key in fours, with Copy
  4. 4. Enter the app’s code and confirm: ten backup codes, shown once
  5. Email "Two-step verification is on" is sent to 2fa-setup@paxpsychology.dev
  6. 5. Continue needs “I've saved these codes”; then the summary
  7. 6. Go to your dashboard
Screenshot for TC-A-23
PassedTC-A-24Admin resets a client's two-step verification (new)8.4s

Test script

Preconditions Signed in as admin@paxpsychology.dev.

Steps

  1. Users: open Robin Reset (2fa-reset@paxpsychology.dev)
  2. In “Two-step verification” click “Reset two-step verification” (confirm it's you if asked), type a reason such as “Lost phone, confirmed by phone”, then click “Reset two-step verification” in the dialog
  3. Open Ari Admin (2fa-admin@paxpsychology.dev)
  4. Sign out and sign in as 2fa-reset@paxpsychology.dev

Expected

  • Step 1: “On”, Codes from “Email codes”, Backup codes left “10”, and “Recent sign-ins” when there are any
  • Step 2: the dialog lists what the reset does and has “Reason (optional)” with the hint “Saved to the audit log with your name and the time.”; then “Two-step verification reset for Robin Reset”, the section shows “Off” with the button disabled (“… so there's nothing to reset.”); Robin gets “Two-step verification was reset on your account”; the reason is on the 2FA_RESET row in auth_audit_logs.note
  • Step 3: “Reset two-step verification” is shown but disabled, with “Admin accounts can't be reset here. A developer resets them with the reset script, so no admin can remove another admin's protection.”
  • Step 4: straight in with the password

Notes The reason is optional; leaving it empty resets all the same. If the admin's last code (or sign-in) is more than 10 minutes old, “Confirm it's you.” asks for a code or the password first (the password has a “Forgot your password?” link under it) and names the change (“You're about to reset Robin Reset's two-step verification. …”), then says “We won't ask again for 10 minutes.” The same applies to impersonating, connecting or disconnecting a sign-in provider, Stripe payout changes and changing an email address, each with its own reason.

Automated run

  1. 1. Sign in as admin@ and open Robin Reset’s user page
  2. 2. “Reset two-step verification”, give a reason, confirm: it shows Off
  3. Email "Two-step verification was reset on your account" is sent to 2fa-reset@paxpsychology.dev
  4. 3. An admin's page shows the reset button disabled, with why
  5. 4. The client now signs in with just the password
Screenshot for TC-A-24

Emails

130 sent during this run
Time (UTC)CaseToSubjectStatusScreenshot
03:26:44TC-A-29e2e-client+e2e-20261025-hb0hjc-a29@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
03:27:55TC-A-42test@paxpsychology.devPlease review Avery's request for their records by Sunday 8 NovemberSentView
03:27:56TC-A-22e2e-client+e2e-20261025-hb0hjc-a29@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
03:28:09TC-A-44test@paxpsychology.devPlease review Avery's request for their records by Sunday 8 NovemberSentView
03:28:30TC-A-45test@paxpsychology.devPlease review Avery's request for their records by Sunday 8 NovemberSentView
03:28:49TC-A-50client@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:28:49TC-A-50test@paxpsychology.devNew appointment: Initial consultation with Sam TaylorSentView
03:28:56TC-A-50client@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:28:56TC-A-50test@paxpsychology.devAppointment cancellation: Initial consultation with Sam TaylorSentView
03:29:22TC-A-15e2e+e2e-20261025-hb0hjc-a15@paxpsychology.devYou're on the listSentView
03:29:22TC-A-15Pax Psychology Support <support@paxpsychology.dev>Newsletter subscription: TesterSentView
03:29:24TC-A-15e2e+e2e-20261025-hb0hjc-a15@paxpsychology.devYou're off the listSentView
03:29:46TC-A-03e2e-client+e2e-20261025-hb0hjc-a03@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:29:55TC-A-04e2e-psych+e2e-20261025-hb0hjc-a04@paxpsychology.devWelcome to Pax Psychology: your psychologist account is readySentView
03:29:56TC-C-57resets@paxpsychology.devReset your Pax Psychology passwordSentView
03:29:59TC-C-57resets@paxpsychology.devYour Pax Psychology password's been changedSentView
03:30:05TC-A-05e2e-client+e2e-20261025-hb0hjc-a05@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:30:09TC-C-58e2e+e2e-20261025-hb0hjc-c58@paxpsychology.devVerify your email address for Pax PsychologySentView
03:30:13TC-C-58e2e+e2e-20261025-hb0hjc-c58@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
03:30:31TC-C-14client@paxpsychology.devReset your Pax Psychology passwordSentView
03:30:46TC-C-34e2e+e2e-20261025-hb0hjc@paxpsychology.devVerify your email address for Pax PsychologySentView
03:30:47TC-C-34e2e+e2e-20261025-hb0hjc@paxpsychology.devVerify your email address for Pax PsychologySentView
03:31:10TC-C-90confirms@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:31:11TC-C-90proposes@paxpsychology.devCam Confirms confirmed: Initial consultationSentView
03:31:19TC-C-91proposes@paxpsychology.devDrew Declines declined: Initial consultationSentView
03:31:34TC-C-110suggested@paxpsychology.devAppointment confirmation: Standard sessionSentView
03:31:35TC-C-110rebooks@paxpsychology.devNew appointment: Standard session with Sky SuggestedSentView
03:31:38TC-C-17e2e+e2e-20261025-hb0hjc-c17@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:31:38TC-C-17test@paxpsychology.devNew appointment: Initial consultation with Test ClientSentView
03:31:39TC-C-17e2e+e2e-20261025-hb0hjc-c17@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:31:39TC-C-17test@paxpsychology.devNew client booked inSentView
03:31:43TC-C-111bookagain@paxpsychology.devAppointment confirmation: Standard sessionSentView
03:31:43TC-C-111rebooks@paxpsychology.devNew appointment: Standard session with Bea AgainSentView
03:31:56TC-C-36e2e+e2e-20261025-hb0hjc-c36@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:31:56TC-C-36test@paxpsychology.devNew appointment: Initial consultation with Test ClientSentView
03:31:56TC-C-36e2e+e2e-20261025-hb0hjc-c36@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:31:57TC-C-36test@paxpsychology.devNew client booked inSentView
03:31:58TC-C-113bookagain@paxpsychology.devAppointment confirmation: Standard sessionSentView
03:31:58TC-C-113rebooks@paxpsychology.devNew appointment: Standard session with Bea AgainSentView
03:32:02TC-C-114twopsychs@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
03:32:10TC-C-114twopsychs@paxpsychology.devAppointment confirmation: Standard sessionSentView
03:32:10TC-C-37e2e+e2e-20261025-hb0hjc-c37@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:32:10TC-C-114rebooks@paxpsychology.devNew appointment: Standard session with Tess TwopsychsSentView
03:32:10TC-C-37test@paxpsychology.devNew appointment: Initial consultation with Test ClientSentView
03:32:11TC-C-37e2e+e2e-20261025-hb0hjc-c37@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:32:11TC-C-37test@paxpsychology.devNew client booked inSentView
03:32:14TC-C-115movesagain@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
03:32:17TC-C-115movesagain@paxpsychology.devAppointment rescheduled: Standard sessionSentView
03:32:18TC-C-115rebooks@paxpsychology.devAppointment rescheduled: Standard session with Max MovesagainSentView
03:32:20TC-C-18client@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:32:20TC-C-18test@paxpsychology.devNew appointment: Initial consultation with Sam TaylorSentView
03:32:25TC-C-18client@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:32:25TC-C-18test@paxpsychology.devAppointment cancellation: Initial consultation with Sam TaylorSentView
03:32:47TC-C-35client@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:32:47TC-C-35test@paxpsychology.devNew appointment: Initial consultation with Sam TaylorSentView
03:32:51TC-C-35client@paxpsychology.devAppointment rescheduled: Initial consultationSentView
03:32:52TC-C-35test@paxpsychology.devAppointment rescheduled: Initial consultation with Sam TaylorSentView
03:32:54TC-C-35client@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:32:54TC-C-35test@paxpsychology.devAppointment cancellation: Initial consultation with Sam TaylorSentView
03:33:03TC-C-27e2e+newsletter-e2e-20261025-hb0hjc@paxpsychology.devYou're on the listSentView
03:33:03TC-C-27Pax Psychology Support <support@paxpsychology.dev>Newsletter subscription: TesterSentView
03:33:09TC-C-28e2e+newsletter-e2e-20261025-hb0hjc@paxpsychology.devYou're off the listSentView
03:33:15TC-C-44latefee@paxpsychology.devLate cancellation fee invoice for your session with Dr Penny PaymentsSentView
03:33:15TC-C-44payments@paxpsychology.devA late cancellation from Lou LatefeeSentView
03:33:17TC-C-23client@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:33:17TC-C-23test@paxpsychology.devNew appointment: Initial consultation with Sam TaylorSentView
03:33:21TC-C-23client@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:33:22TC-C-23test@paxpsychology.devAppointment cancellation: Initial consultation with Sam TaylorSentView
03:33:34TC-C-04Pax Psychology Support <support@paxpsychology.dev>Contact form (Psychologist joining Pax): Test UserSentView
03:33:34TC-C-04e2e+contact@paxpsychology.devThank you for contacting Pax PsychologySentView
03:33:48TC-C-94e2e+e2e-20261025-hb0hjc-c94@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:33:48TC-C-94test@paxpsychology.devNew appointment: Initial consultation with Test MinorSentView
03:33:49TC-C-94e2e+e2e-20261025-hb0hjc-c94@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:33:49TC-C-94test@paxpsychology.devNew client booked inSentView
03:34:42TC-C-07e2e+e2e-20261025-hb0hjc-c07@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:34:42TC-C-07listing@paxpsychology.devNew appointment: Initial consultation with Test ClientSentView
03:34:43TC-C-07e2e+e2e-20261025-hb0hjc-c07@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
03:34:44TC-C-07listing@paxpsychology.devNew client booked inSentView
03:34:56TC-C-52test@paxpsychology.devJules flagged a tough daySentView
03:35:02TC-C-82swapper@paxpsychology.devAppointment rescheduled: Initial consultationSentView
03:35:02TC-C-82swaps@paxpsychology.devAppointment rescheduled: Initial consultation with Jamie SwapperSentView
03:35:02TC-C-75client@paxpsychology.devAppointment confirmation: Initial consultationSentView
03:35:03TC-C-75test@paxpsychology.devNew appointment: Initial consultation with Sam TaylorSentView
03:35:05TC-C-75client@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:35:06TC-C-75test@paxpsychology.devAppointment cancellation: Initial consultation with Sam TaylorSentView
03:35:12TC-C-70test@paxpsychology.devNone of the suggested times worked for SamSentView
03:35:24TC-C-38unpaid@paxpsychology.devWe couldn't process your paymentSentView
03:35:33TC-C-38unpaid@paxpsychology.devInvoice and payment confirmation for your session with Dr Emily ThompsonSentView
03:35:33TC-C-38test@paxpsychology.devYou've been paid: $195.00SentView
03:35:33TC-C-38test@paxpsychology.devYour payout statement for your session with Jordan UnpaidSentView
03:35:47TC-P-80held@paxpsychology.devPiper withdrew a booking requestSentView
03:36:03TC-P-83held@paxpsychology.devPiper withdrew a booking requestSentView
03:36:03TC-P-83proposes@paxpsychology.devWithdrawn: Hollis Held's Initial consultationSentView
03:37:06TC-P-10client@paxpsychology.devInvoice and payment confirmation for your session with Dr Emily ThompsonSentView
03:37:06TC-P-10test@paxpsychology.devYou've been paid: $195.00SentView
03:37:06TC-P-10test@paxpsychology.devYour payout statement for your session with Sam TaylorSentView
03:37:36TC-P-11client@paxpsychology.devMissed appointment: Initial consultationSentView
03:37:36TC-P-11test@paxpsychology.devYou've been paid: $195.00SentView
03:37:37TC-P-11test@paxpsychology.devYour payout statement for your session with Sam TaylorSentView
03:38:36TC-P-33pcancel@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:38:36TC-P-33payments@paxpsychology.devAppointment cancellation: Initial consultation with Parker CancelSentView
03:38:39TC-P-33pcancel@paxpsychology.devAppointment cancellation: Initial consultationSentView
03:38:40TC-P-33payments@paxpsychology.devAppointment cancellation: Initial consultation with Parker CancelSentView
03:38:42TC-P-24client@paxpsychology.devA note from Emily about your first sessionSentView
03:38:47TC-P-34moves@paxpsychology.devAppointment cancelled: Initial consultation (psychologist unavailable)SentView
03:38:47TC-P-34blocks@paxpsychology.devAppointment auto-cancelled: Initial consultation with Casey MovesSentView
03:38:53TC-P-56client@paxpsychology.devEmily suggested some timesSentView
03:38:56TC-P-35retry@paxpsychology.devWe couldn't process your paymentSentView
03:39:00TC-P-35retry@paxpsychology.devInvoice and payment confirmation for your session with Dr Penny PaymentsSentView
03:39:00TC-P-35payments@paxpsychology.devYou've been paid: $195.00SentView
03:39:00TC-P-35payments@paxpsychology.devYour payout statement for your session with Robin RetrySentView
03:39:05TC-P-56client@paxpsychology.devAppointment rescheduled: Initial consultationSentView
03:39:06TC-P-56test@paxpsychology.devAppointment rescheduled: Initial consultation with Sam TaylorSentView
03:39:09TC-P-74amounts@paxpsychology.devInvoice and payment confirmation for your session with Dr Penny PaymentsSentView
03:39:09TC-P-74payments@paxpsychology.devYou've been paid: $195.00SentView
03:39:10TC-P-74payments@paxpsychology.devYour payout statement for your session with Avery AmountsSentView
03:39:44TC-P-75shifted@paxpsychology.devAppointment rescheduled: Initial consultationSentView
03:39:44TC-P-75shifts@paxpsychology.devAppointment rescheduled: Initial consultation with Rowan ShiftedSentView
03:40:00TC-P-31repeats@paxpsychology.devWren booked sessions for you: please confirmSentView
03:40:53TC-P-12moves@paxpsychology.devAppointment rescheduled: Initial consultationSentView
03:40:53TC-P-12reschedule@paxpsychology.devAppointment rescheduled: Initial consultation with Casey MovesSentView
03:40:59TC-C-402fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:17TC-C-412fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:19TC-C-412fa-client@paxpsychology.devA backup code was used on your accountSentView
03:41:21TC-C-412fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:26TC-C-422fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:31TC-C-422fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:38TC-C-432fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
03:41:44TC-A-232fa-setup@paxpsychology.devTwo-step verification is onSentView
03:41:52TC-A-242fa-reset@paxpsychology.devTwo-step verification was reset on your accountSentView