Pax Psychology acceptance run

Target CI (isolated) Started 2026-10-27 04:19:48 UTC Duration 16m 56s Emails 148 sent

Runs

DateRunBranchCommitPassFailManualNot automated
2026-10-27 04:36:44 UTCThis run e2e-20261027-gh40448182355feat/ci-acceptance1fddb041634060
2026-10-26 07:23:44 UTCe2e-20261026-gh40282885246feat/ci-acceptance32d2b5b1473850
2026-10-26 06:48:31 UTCe2e-20261026-gh40277203659feat/ci-acceptance74be7161503650
2026-10-25 06:04:33 UTCe2e-20261025-avxuzoredesign-ui-kitscebba2e173040
2026-10-25 03:43:48 UTCe2e-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

72 cases48 passed 16 fixture missing 2 manual 2 retired 4 skipped by design

1A. Marketing & Public Pages

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

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 Psychology 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 page7.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 page4.4s

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.5s

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 Psychology", 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 Psychology” 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 Psychology", "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 Psychology): Test User to support, with a "Topic" row reading "I'm a psychologist and want to join Pax Psychology" (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 Psychology): 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 load4.2s

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 "Pax Psychology Pty Ltd (ABN 85 643 512 305, ACN 643 512 305), 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 footer1ms

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 wizard48.4s

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 Psychology" 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 Psychology 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-20261027-gh40448182355-c07@paxpsychology.dev
Screenshot for TC-C-07
PassedTC-C-08Match wizard progress persistence22.3s

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)8.1s

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 fixture missing
Fixture missingTC-C-09Browse the directory and use the desktop filters28.8s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('link', { name: /Emily/i }).first()
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('link', { name: /Emily/i }).first() with timeout 25000ms
  - waiting for getByRole('link', { name: /Emily/i }).first()
Screenshot for TC-C-09Screenshot for TC-C-09
Fixture missingTC-C-10View an individual psychologist profile page10.0s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: 'Specialities', exact: true })
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: 'Specialities', exact: true }) with timeout 5000ms
  - waiting for getByRole('heading', { name: 'Specialities', exact: true })
Screenshot for TC-C-10Screenshot for TC-C-10

1D. Authentication

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

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, a "Forgot password" link (there is no "Remember me" checkbox), 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 OAuth5ms

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 OAuth1ms

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 flow7.1s

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 › Sign-in and security (TC-C-123).

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)32.1s

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)27.8s

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-20261027-gh40448182355-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-20261027-gh40448182355-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 credentials7.3s

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 out12.9s

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 Psychology on this device.") and, below it, "Delete account"

Notes No role has an "Account actions" settings section: Sign out is on Settings › Account for everyone, and only clients have "Delete account" there.

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)3.4s

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

8 passed 10 fixture missing 1 skipped by design
Fixture missingTC-C-75Rebook a past session (new)28.8s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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” – failed
TimeoutError: locator.click: Timeout 15000ms exceeded.
Call log:
  - waiting for getByTestId('book-again').visible().getByRole('link', { name: 'More times or another type' })
Screenshot for TC-C-75Screenshot for TC-C-75
PassedTC-C-110Home suggests a time and books it in one tap (new)15.9s

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)10.8s

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 this session we start with Rory's usual follow-up. Rory's next free times: pick one and you're booked." (Rory's Initial consultation is set to "After this session, book again as: Standard session"; TC-P-05 covers the setting)
  • 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)10.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)17.5s

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)16.0s

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)13.3s

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
Fixture missingTC-C-17Complete a full booking (card saved, charged later)35.9s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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” – failed
Error: expect(locator).toBeVisible() failed

Locator: locator('a[href="/book/emily-thompson"]').first()
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" locator('a[href="/book/emily-thompson"]').first() with timeout 25000ms
  - waiting for locator('a[href="/book/emily-thompson"]').first()
Screenshot for TC-C-17Screenshot for TC-C-17
Fixture missingTC-C-36Booking with a card that needs 3-D Secure28.8s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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) – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-36Screenshot for TC-C-36
Fixture missingTC-C-37Booking with a declined card, then a working one32.6s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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) – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-37Screenshot for TC-C-37
Fixture missingTC-C-38An unpaid session blocks booking until the client pays it27.5s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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" – failed
Error: Fixture missing: No session for Jordan Unpaid in test@'s queue. The acceptance seeder creates it, but only with a Stripe TEST key (STRIPE_SECRET_KEY locally, STAGING_STRIPE_SECRET_KEY in CI): run `pnpm test:acceptance:seed` with one set.
Screenshot for TC-C-38Screenshot for TC-C-38
Fixture missingTC-C-18Booking as a signed-in client (review step)32.4s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-18Screenshot for TC-C-18
Fixture missingTC-C-19Booking details validation28.7s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-19Screenshot for TC-C-19
Fixture missingTC-C-102Pick a date and Leave for now on the time step (new)36.6s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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” – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-102Screenshot for TC-C-102
Fixture missingTC-C-93A booking for someone under 18 is refused, with support services (new)35.2s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 Psychology", "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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-93Screenshot for TC-C-93
Fixture missingTC-C-94Someone who turns 18 today can book (new)35.6s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-94Screenshot for TC-C-94
PassedTC-C-95Signing up under 18 is refused, with support services (new)9.2s

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 Psychology" 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
Skipped by designTC-C-124A client with recording consent sees the "won't be recorded" note on a Meet session (new)–

Test script

Preconditions AI notes on (off on staging). A client who has agreed to session recording, booking a Google Meet (or Teams) session

Steps

  1. Book and pay
  2. Open the confirmation email

Expected

  • The booked screen and the confirmation email say the session won't be recorded for AI session notes (they only work on Zoom sessions). Nothing is shown for Zoom sessions or without recording consent.

Notes Manual in the automated run; unit-tested.

PassedTC-C-125Clients see only bookable session types (new)10.0s

Test script

Preconditions Signed out. gate@ (Dr Gale Gate) offers "Initial consultation" on Zoom (connected) and "Meet session" on Google Meet (no Google calendar)

Steps

  1. Open /book/gale-gate
  2. Open /book/gale-gate/meet-session
  3. Open /psychologists/gale-gate

Expected

  • Step 1 offers "Initial consultation" only
  • Step 2 is the not-found page
  • Step 3 shows the profile without "Meet session". A psychologist with no bookable session type at all is hidden from the directory and profile, as without payouts (TC-P-111)

Automated run

  1. 1. Open /book/gale-gate
  2. 2. Open /book/gale-gate/meet-session
  3. 3. Open /psychologists/gale-gate
  4. 1. Open /book/gale-gate
  5. 2. Open /book/gale-gate/meet-session
  6. 3. Open /psychologists/gale-gate

1F. Client Portal

15 passed 4 fixture missing
PassedTC-C-20Client Home7.4s

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." with a line about when the link comes, the psychologist's avatar and name, and buttons "Join early" / "Reschedule" (a link to /dashboard/book?move=<id>) / "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”
Screenshot for TC-C-20
PassedTC-C-21Sessions list (Upcoming / Past)8.4s

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, 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
  • Past lists sessions that happened first (completed, no-show, or ended and awaiting completion), newest first, then a "Cancelled" group at the bottom under a small "Cancelled" heading, also newest first. A session cancelled for a date still ahead (say 30 Oct when today is 25 Oct) is in the Cancelled group, not at the top of the list
  • A cancelled session carries a "Cancelled" chip (or "Cancelled: not the right fit"), no number ("Session with Emily") and no "Book again" button; sessions that happened keep their number and "Book again"
  • The two groups page as one list: with 14 sessions that happened and 9 cancelled, page 2 shows the last 4 that happened, the "Cancelled" heading and the first 6 cancelled
  • 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”
  3. 3. Click a session title
Screenshot for TC-C-21
Fixture missingTC-C-35Reschedule and cancel from the Sessions list31.3s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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).

Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-35Screenshot for TC-C-35
PassedTC-C-82A client reschedules and both sides see the new time (new)15.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
PassedTC-C-22View appointment detail (client)10.9s

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]
Screenshot for TC-C-22
Fixture missingTC-C-23Cancel an upcoming appointment37.2s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-23Screenshot for TC-C-23
Fixture missingTC-C-44Late cancellation inside 24 hours charges the full fee (new)1.3s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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.

Error: Fixture missing: latefee@paxpsychology.dev has no CONFIRMED session inside the next 24 hours. Run `pnpm test:acceptance:seed`, which books one about 12 hours out.

Emails (3 sent)

  • Email: New sign-in to your Pax Psychology account
    New sign-in to your Pax Psychology account
    To latefee@paxpsychology.dev at 04:26:38 UTC
  • Email: Late cancellation fee invoice for your session with Dr Penny Payments
    Late cancellation fee invoice for your session with Dr Penny Payments
    To latefee@paxpsychology.dev at 04:26:41 UTC
  • Email: A late cancellation from Lou Latefee
    A late cancellation from Lou Latefee
    To payments@paxpsychology.dev at 04:26:41 UTC
Screenshot for TC-C-44Screenshot for TC-C-44
PassedTC-C-24Receipts (client invoices)9.2s

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)22.4s

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
Fixture missingTC-C-51Shared and private session documents (new)13.2s

Needs the CI_BLOB_READ_WRITE_TOKEN GitHub secret (the CI Vercel Blob store, for uploads), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(received).toBe(expected) // Object.is equality

Expected: 200
Received: 500
Screenshot for TC-C-51Screenshot for TC-C-51
PassedTC-C-25Client settings – Account11.8s

Test script

Preconditions Logged in as a client (the acceptance run uses account@paxpsychology.dev, so renaming never touches the shared 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 sign in and what reaches you, then how you pay."
  • Client section nav: "Account", "Sign-in and security", "Notifications" (the Account group every role has), then "Payment methods" (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 a "Timezone" select set to "Automatic (this device)" with the hint "Follows this device. Currently <your zone>."
  • Save button "Save changes"; toast "Account updated" on success
  • No "Password" card here: it is in Sign-in and security, with the sign-in methods (TC-C-123)
  • Card "Account" with "Sign out" and an outlined red "Delete account" ("Close your account and sign out. Records the law requires us to keep are kept, then securely destroyed."); the confirmation "Delete your account?" says campaign data is deleted straight away, the shortlist, reading list, private journal entries, matching answers and settings 12 months after closing, and that clinical records are kept for 7 years after the last session and payment records for 7 years, with a link to the privacy policy. It offers "Delete account" and "Keep my account" (a bottom sheet on a phone)
  • The new name persists after reload

Notes Timezone follows the browser unless one is chosen here (TC-C-116). 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-123Sign-in methods are under Sign-in and security (new)5.6s

Test script

Preconditions Logged in as a client

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/settings?section=security
  2. Open the old /dashboard/settings?section=connected-accounts

Expected

  • "Sign-in and security" is current in the nav. It holds, in order: "Password" ("Change password" → /auth/forgot-password), "Sign-in methods" (Google, Microsoft and Apple, each with Connect or Disconnect), two-step verification, passkeys, trusted browsers and "Recent sign-in activity"
  • Step 2 shows Account (no redirect, the URL stays); there is no "Connected accounts" anywhere
  • Psychologists and admins have the same section with the same sign-in methods, for the first time

Notes Connecting a sign-in method asks you to confirm it's you first, and comes back to this section. "Connections" now means only a psychologist's calendars and video accounts.

Automated run

  1. 1. Navigate to /dashboard/settings?section=security
  2. 2. Open the old ?section=connected-accounts
Screenshot for TC-C-123
PassedTC-C-83A client clears their mobile (new)8.9s

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 Psychology 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-116The timezone follows the browser, and can be chosen (new)15.6s

Test script

Preconditions A browser (or a device) set to the Australia/Perth timezone. timezone@paxpsychology.dev is saved as Australia/Sydney, Automatic (the acceptance seeder resets it every run). Ideally, first sign in and out once in the same tab as another account of yours (it moves to Perth too): one sync per tab used to stop the second account syncing. The automated run leaves that tab state behind instead.

Steps

  1. Sign in as timezone@paxpsychology.dev and wait for the dashboard
  2. Navigate to https://paxpsychology.dev/dashboard/settings?section=account
  3. Choose "Tokyo (JST)" under "Timezone" and click "Save changes"
  4. Sign out, sign in again as timezone@, and open Settings > Account
  5. Choose "Automatic (this device)" and click "Save changes"

Expected

  • Step 2: "Timezone" shows "Automatic (this device)" with the hint "Follows this device. Currently Perth (AWST)." (the dashboard saved the browser's zone on the first load, with no second sign-in and no reload)
  • Step 3: the hint becomes "Stays as chosen, whatever timezone your device is in."; toast "Account updated"
  • Step 4: still "Tokyo (JST)": a chosen zone is not replaced by the browser's
  • Step 5: toast "Account updated"; after a reload, "Automatic (this device)" and "Currently Perth (AWST)."

Notes A new account also starts in the browser's zone: registering with email, signing up with Google, Microsoft or Apple, or booking as a new client from the public booking page. Times across the dashboard and in emails use the saved zone. An admin viewing as the user never changes it.

Automated run

  1. 1. Sign in as timezone@ and wait for the dashboard
  2. 2. Navigate to /dashboard/settings?section=account
  3. 3. Choose “Tokyo (JST)” and click “Save changes”
  4. 4. Sign out, sign in again, open Settings > Account
  5. 5. Choose “Automatic (this device)” and click “Save changes”
Screenshot for TC-C-116
PassedTC-C-26Client settings – Payment methods and Medicare22.1s

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)17.4s

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)6.7s

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.4s

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)5.9s

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 signup20.4s

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 one of our psychologists 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-20261027-gh40448182355@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 unsubscribe4.0s

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-20261027-gh40448182355@paxpsychology.dev
  3. 2. Then open /newsletter/unsubscribe with no token
Screenshot for TC-C-28
RetiredTC-C-29For Psychologists landing page (new)1ms

The For Psychologists page has been removed for now.

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

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 page4.7s

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 pages8.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
  3. Navigate to /journal/definitely-not-a-real-article
  4. Navigate to /book/definitely-not-a-real-psychologist

Expected

  • 404 page: the 500 screen's layout on a mint band. An outlined "404" mark, H1 "This one's wandered off." with nothing above it, a line that the page doesn't exist or has moved, buttons "Back to home" and "Find a psychologist", then "Or pick up where you left off" with a pill row (How Pax Psychology works, The Journal, Sign in, Get in touch). There is no separate Lifeline crisis band above the footer. The marketing header and footer are present, and the page is noindex
  • An unknown psychologist slug also 404s, with the same screen inside the normal header and footer
  • An unknown journal article and an unknown booking URL also show the 404 screen. Every one of these is a real 404 status (check the Network tab), on the first visit too, not a 200 that shows the 404 screen

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 no separate Lifeline crisis band) you need an induced server error, so treat it as optional. The maintenance page (/maintenance) shares the 500 screen's layout on a yellow band: the Pax Psychology wordmark with no links, H1 "We're giving Pax Psychology a tune-up." with nothing above it, a line that we'll be back soon, a "Check again" button, "Need us before then? Email info@paxpsychology.com.au" as a mailto link, and under it, in the yellow band, "If you need support right now, call Lifeline on 13 11 14, or 000 in an emergency." with both numbers as call links. There is no crisis band or footer below. It is noindex. It only shows while MAINTENANCE_MODE=true (otherwise /maintenance redirects to /), so it can't be checked on staging; check it locally with the flag set.

Automated run

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

1H. Other new surfaces

3 passed
PassedTC-C-33Your psychologist and Reading list (new client Care pages)8.4s

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 with <First>" (→ /dashboard/book?psychologist=<slug>); 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
  2. 2. Click “Reading list”
  3. 3. Open a reading and mark it read
Screenshot for TC-C-33
PassedTC-C-52Journal entries stay private unless shared (new)58.7s

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.9s

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"
  • Three social buttons, in this order: "Sign up with Google", "Sign up with Apple", "Sign up with Microsoft" (the same three as sign in), 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-20261027-gh40448182355@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)–

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.3s

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)3.2s

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)7.9s

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 article card (new)5.0s

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 Pax Psychology journal article card: an /api/og?template=article&…&sig=… URL whose image is the header's cover and whose category is the article's category. Open it: a 1200 by 630 card with the cover photo on the right, and on the left a panel in the category's colour (Anxiety, Burnout, Depression and ADHD sun yellow, Performance cobalt, everything else mint) with "Pax Psychology Journal", the title (at most three lines) and the category as a tag; og:image:width 1200 and og:image:height 630; 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 The other generated cards, all signed /api/og URLs in the same style: a psychologist's profile shares a profile card (their photo beside a cobalt panel with their name and title, for example "Dr Emily Thompson", their professional title and their headline), and the other public pages (FAQs, Search Psychologists, Our story, Contact, the journal list and so on) share a page card, the page title on the cobalt band with the white logo. The homepage keeps the designed Pax Psychology card (/og/pax-share.png, see TC-A-60). The site's default share image (TC-A-60) replaces the page cards and the homepage card, and an article or profile card only when the article has no cover or the psychologist no photo; with a cover or photo the card always wins. A card only ever draws a photo from our own site or our Blob store; a cover elsewhere is left out and the card shows the colour panel alone. Every card URL ends in a sig signature: change its title (or image, or template) in the address bar and the image returns 404 (no Pax Psychology card with made-up text), while /api/og with no parameters shows a plain card with the site name.

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

71 cases43 passed 4 failed 11 fixture missing 2 manual 1 retired 10 skipped by design

2A. Onboarding

3 passed 1 fixture missing 1 manual
ManualTC-P-01Connect the Stripe Connect payout account6.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 Psychology

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
PassedTC-P-02Complete profile / account details9.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 "Your account, how you sign in and what reaches you, then your practice: registration, payouts, session types and hours." The nav starts with the Account group ("Account", "Sign-in and security", "Notifications"), then "Registration", "Payouts", "Session types", "Availability"
  • Account card headed "Your details" (an H2): 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" (a select, "Automatic (this device)" by default; see TC-C-116). 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
  2. 2. Upload a profile picture, change "Full name", click "Save changes"
  3. 3. Switch to ?section=registration and fill the professional fields
  4. 4. Open /dashboard/listing and check the public-facing profile editor
  5. Notes: the old /dashboard/settings/profile URL is not found
Screenshot for TC-P-02
PassedTC-P-03Set weekly availability14.4s

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)24.1s

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
Fixture missingTC-P-05Create a session type9.5s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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"
  5. Click "Edit" on the new type, choose another of your types under "After this session, book again as", click "Save session type", then open "Edit" again

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
  • The details card ends with "After this session, book again as" (a select, first option "The same session type", then your other session types, never the one being edited) with the hint "Book again and the client's Home suggestion start on this type. They can still pick another." It starts on "The same session type"; after saving, the edit form shows the type you chose. The field is left out while you have no other session types

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" – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 })
Expected: visible
Error: strict mode violation: getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 }) resolved to 2 elements:
    1) <h3 id="session-type-f0b08184-e1ed-4cd7-a53d-7af584e937b5" class="font-display text-ink m-0 text-xl leading-[26px] font-black tracking-[-0.2px] break-words lg:text-[22px] lg:leading-7">E2E e2e-20261027-gh40448182355</h3> aka getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355' }).first()
    2) <h3 id="session-type-e4221613-4df8-430c-bc2a-e7ab39cb2989" class="font-display text-ink m-0 text-xl leading-[26px] font-black tracking-[-0.2px] break-words lg:text-[22px] lg:leading-7">E2E e2e-20261027-gh40448182355</h3> aka locator('#session-type-e4221613-4df8-430c-bc2a-e7ab39cb2989')

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 }) with timeout 5000ms
  - waiting for getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 })
Screenshot for TC-P-05Screenshot for TC-P-05

2B. Dashboard

1 passed 1 fixture missing
Fixture missingTC-P-06Psychologist Today page12.4s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toHaveAttribute(expected) failed

Locator: getByRole('link', { name: 'Settings', exact: true }).first()
Expected: "/dashboard/settings"
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toHaveAttribute" getByRole('link', { name: 'Settings', exact: true }).first() with timeout 5000ms
  - waiting for getByRole('link', { name: 'Settings', exact: true }).first()
Screenshot for TC-P-06Screenshot for TC-P-06
PassedTC-P-07Pending completions alert18.1s

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

8 passed 6 fixture missing
PassedTC-P-08Schedule views23.6s

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)10.0s

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
Fixture missingTC-P-10Complete an appointment (client attended)13.2s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: Fixture missing: No CONFIRMED appointment with a past end time and a saved card was left in test@paxpsychology.dev's 'Sessions to complete' queue. Unblock with `pnpm tsx scripts/seed-completable-appointment.ts`, which creates exactly one past CONFIRMED session for test@ with a real 4242 test card attached to client@paxpsychology.dev.
Screenshot for TC-P-10Screenshot for TC-P-10
Fixture missingTC-P-11Mark an appointment as No-Show10.0s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: Fixture missing: No CONFIRMED appointment with a past end time and a saved card was left in test@paxpsychology.dev's queue (TC-P-10 consumes one per run). Run `pnpm test:acceptance:seed` before the run: it tops the queue back up to four.
Screenshot for TC-P-11Screenshot for TC-P-11
PassedTC-P-27Complete an appointment for a client with no saved card (new)40.4s

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
Fixture missingTC-P-33Psychologist cancels an upcoming session (new)28.6s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: locator('dialog[open][role=\'alertdialog\']').getByRole('heading', { name: 'Cancel appointment?' })
Expected: visible
Timeout: 15000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" locator('dialog[open][role=\'alertdialog\']').getByRole('heading', { name: 'Cancel appointment?' }) with timeout 15000ms
  - waiting for locator('dialog[open][role=\'alertdialog\']').getByRole('heading', { name: 'Cancel appointment?' })
Screenshot for TC-P-33Screenshot for TC-P-33
PassedTC-P-34Block time over a booked session, then "Block and cancel" (new)19.0s

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
Fixture missingTC-P-35Completion when the card declines, then retry (new)15.0s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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% – failed
Error: expect(received).toEqual(expected) // deep equality

Expected: {"grossAmount": 25000, "netPayoutAmount": 19500}
Received: null
Screenshot for TC-P-35Screenshot for TC-P-35
Fixture missingTC-P-74A completed session charges the fee and pays out 78% (new)3.7s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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". The psychologist gets one email, "You've been paid: $195.00", carrying the breakdown: client "Avery", the session date, type and length, "Session fee" $250.00, "Pax Psychology fee (22% inc GST)" -$55.00 and "Net to you (78%)" $195.00, then "Tax invoice for the platform fee": supplier Pax Psychology Pty Ltd, ABN 85 643 512 305, the tax invoice number, today's date, a description, "Platform fee (inc GST)" $55.00 and "Includes GST of" $5.00. No separate "Your payout statement" email is sent
Error: Fixture missing: amounts@paxpsychology.dev has no past CONFIRMED session with payments@. Run `pnpm test:acceptance:seed`.

Emails (1 sent)

  • Email: Invoice and payment confirmation for your session with Dr Penny Payments
    Invoice and payment confirmation for your session with Dr Penny Payments
    To amounts@paxpsychology.dev at 04:22:36 UTC
Screenshot for TC-P-74Screenshot for TC-P-74
PassedTC-P-12Reschedule an appointment20.0s

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)14.5s

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 workspace12.0s

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)33.2s

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
Fixture missingTC-P-61Upload, share, unshare and delete an appointment document (new)43.7s

Needs the CI_BLOB_READ_WRITE_TOKEN GitHub secret (the CI Vercel Blob store, for uploads), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(received).toBe(expected) // Object.is equality

Expected: "closed"
Received: "failed: Upload failed. Please check your connection and try again."

Call Log:
- Timeout 30000ms exceeded while waiting on the predicate
Screenshot for TC-P-61Screenshot for TC-P-61

2D. Client Management

2 passed 1 skipped by design
PassedTC-P-14View the clients list15.0s

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 page18.6s

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)20.0s

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-62Screenshot for TC-P-62

2E. Invoices

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

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 resend19.0s

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 and Connections

10 passed 3 failed 1 fixture missing 1 manual 1 retired 9 skipped by design
Fixture missingTC-P-18Edit a session type11.5s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: locator.click: Error: strict mode violation: getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 }).locator('xpath=ancestor::section[.//a[starts-with(normalize-space(), "Edit")]][1]').getByRole('link', { name: 'Edit' }) resolved to 2 elements:
    1) <a href="/dashboard/settings/appointment-types/f0b08184-e1ed-4cd7-a53d-7af584e937b5" class="inline-flex items-center justify-center gap-2 whitespace-nowrap border 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-focus focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&_svg]:size-[1.1em] [&_svg]:shrink-0 border-ink bg-paper text-ink hover:bg-ink hover:text-…>…</a> aka getByRole('link', { name: 'Edit E2E e2e-20261027-' }).first()
    2) <a href="/dashboard/settings/appointment-types/e4221613-4df8-430c-bc2a-e7ab39cb2989" class="inline-flex items-center justify-center gap-2 whitespace-nowrap border 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-focus focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&_svg]:size-[1.1em] [&_svg]:shrink-0 border-ink bg-paper text-ink hover:bg-ink hover:text-…>…</a> aka getByRole('link', { name: 'Edit E2E e2e-20261027-' }).nth(1)

Call log:
  - waiting for getByRole('heading', { name: 'E2E e2e-20261027-gh40448182355', level: 3 }).locator('xpath=ancestor::section[.//a[starts-with(normalize-space(), "Edit")]][1]').getByRole('link', { name: 'Edit' })
Screenshot for TC-P-18Screenshot for TC-P-18
PassedTC-P-19Connect a calendar9.2s

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 stand-in hosted by Pax Psychology consent screen with Allow and Deny links

Steps

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

Expected

  • Connections is in the sidebar under Practice. The "Calendars" card says "Connect the calendar you already use, and we'll keep your booking page in step with it.", with "Busy times block bookings, automatically." and "Pax Psychology 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 Psychology only sees when you're busy." Zoom, Google Meet and Microsoft Teams are in the "Video" card below it (TC-P-100)
  • Step 2 opens "Connect Google Calendar." listing what "Pax Psychology will be able to" do and what "We won't" do ("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 Connections with an inline alert (not a toast): "Google didn't give Pax Psychology access." and "Try again". An account already linked to another Pax Psychology login shows "That Google account is already connected to another Pax Psychology account." with "Use another account" and "Contact us"
  • Step 4 shows the toast "Google Calendar connected. Tick the calendars we 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 Psychology 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/connections
  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 conflicts9.6s

Test script

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

Steps

  1. Open Connections 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 time6.4s

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 "We don'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 clash11.2s

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. We 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 Psychology 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 Psychology sessions to a calendar11.9s

Test script

Preconditions TC-P-19 done

Steps

  1. In "Your Pax Psychology sessions", check nothing has been added yet
  2. Turn on "Add to my calendar" and choose the main calendar under "Add your sessions to"
  3. Look at the calendar (fake: GET /api/dev/calendar-fake?provider=GOOGLE, written)
  4. Choose "“Busy” only"
  5. Choose "“Pax Psychology” 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: "Your sessions will be added to that calendar". The upcoming session appears in the calendar as "Pax Psychology: 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 Psychology 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 Psychology: <first name>
  4. 4. Choose "Busy" only
  5. 5. Back to "Pax Psychology" and the first name
Screenshot for TC-P-93
PassedTC-P-94A broken calendar connection shows on Today until reconnected11.0s

Test script

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

Steps

  1. Make Google refuse Pax Psychology'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 Connections
  4. On Today click the X ("Hide this until tomorrow") and reload
  5. On Connections 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 Connections item carries 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 Psychology 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 Psychology's access (fake: expired token, refresh refused)
  2. 2. Open Today
  3. 3. Connections shows the dot and Needs reconnecting
  4. 4. Today: "Hide this until tomorrow", reload
  5. 5. Connections: "Reconnect Google", "Continue to Google", "Allow"
Screenshot for TC-P-94
PassedTC-P-95Connect iCloud with an app-specific password, then disconnect8.6s

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 fake-fake-fake-fake, click "Connect iCloud" (the fake refuses a wrong email; another password would go to the real 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 we 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 Psychology 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 Psychology 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
  3. 3. Email cara@icloud.com, password fake-fake-fake-fake
  4. 4. Disconnect iCloud: "Manage", "Disconnect", "Keep it connected"
  5. 5. Disconnect iCloud and confirm
  6. 6. Disconnect Google, ticking "Also remove"
Screenshot for TC-P-95
FailedTC-P-103Google Meet uses the Google calendar connection, makes one real event, and never a made-up link (new)1m 19s

Test script

Preconditions proposes@ with no Google calendar connected, and the fake Google on (CALENDAR_FAKE_PROVIDERS=true). A Google Meet session type for proposes@ (the automated run adds one, not offered publicly, and removes it after). confirms@ with its saved card

Steps

  1. Book confirms@ into a Google Meet session and confirm it as the client
  2. As proposes@, open Connections and connect Google (fake consent, "Allow")
  3. Book and confirm a second Google Meet session the same way
  4. Look at the calendar (fake: GET /api/dev/calendar-fake?provider=GOOGLE, written)

Expected

  • After step 1 the session has no video link at all (never a meet.google.com address that isn't a meeting). proposes@ gets "Action required: video call setup failed for Cam Confirms", which says "Connect Google Calendar in Connections to create Google Meet links." with a button to that page. Ops get the "Video call setup failed" Slack alert
  • Signing in with Google (without connecting the calendar) doesn't make Meet work: Meet reads only the Google calendar connection
  • After step 3 the session's link is the Meet on its calendar event (fake: https://fake-meet.paxpsychology.dev/…)
  • Step 4 shows exactly one event for that session, carrying the Meet, with no guests (Pax Psychology's own emails carry the link). With "Add to my calendar" on for a Google calendar, the Meet is on that same event, never a second one. Rescheduling moves the event; cancelling deletes it

Automated run

  1. 1. With no Google calendar connected, a Google Meet session gets no link – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /^You['’]re booked\.$/ })
Expected: visible
Timeout: 60000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /^You['’]re booked\.$/ }) with timeout 60000ms
  - waiting for getByRole('heading', { name: /^You['’]re booked\.$/ })
Screenshot for TC-P-103Screenshot for TC-P-103Screenshot for TC-P-103Screenshot for TC-P-103
PassedTC-P-99Connections is in the sidebar; Settings has no Calendars or Account actions (new)13.4s

Test script

Preconditions Logged in as test@paxpsychology.dev

Steps

  1. Click "Connections" in the sidebar
  2. Open Settings

Expected

  • Connections (/dashboard/connections) has the "Calendars" card and the "Video" card (Zoom, Google Meet and, when offered, Microsoft Teams, each with its state)
  • The Settings nav has no "Calendars" and no "Account actions"

Automated run

  1. 1. Open the dashboard and click Connections in the sidebar
  2. 2. Open Settings
  3. 1. Open the dashboard and click Connections in the sidebar
  4. 2. Open Settings
Screenshot for TC-P-99Screenshot for TC-P-99
Skipped by designTC-P-100Connect Zoom from Connections and land back there (new)–

Test script

Preconditions Logged in as gate@paxpsychology.dev with no Zoom connected (the automated run removes the stand-in Zoom first). A real Zoom account for the consent screen

Steps

  1. Open Connections and click "Connect Zoom"
  2. Approve on Zoom's screen

Expected

  • Before connecting, Zoom reads "Not connected. Connect your own Zoom account to offer Zoom sessions."
  • Step 1 goes to Zoom's consent screen (zoom.us/oauth/authorize, returning to /api/integrations/callback/zoom)
  • Back on Connections: the toast "Zoom connected" and Zoom reads "Connected (<account>). Zoom sessions get a meeting link from your own account."

Notes The automated run checks the hand-off and puts the stand-in Zoom back for the second half (Zoom's own screen needs a real account).

Skipped by designTC-P-101Zoom consent refused shows Didn't connect and Try again (new)–

Test script

Preconditions Logged in as gate@paxpsychology.dev

Steps

  1. Click "Connect Zoom" (or "Reconnect Zoom") and press Cancel on Zoom's screen (the automated run opens /api/integrations/callback/zoom?error=access_denied, which is where Zoom sends you)
  2. Click "Try again"

Expected

  • Back on Connections, an inline alert (not a toast): "Zoom didn't connect." "You may have pressed Cancel on Zoom's screen. Nothing was changed." with "Try again" and "Dismiss"
  • "Try again" goes back to Zoom's consent screen
Skipped by designTC-P-102A broken Zoom connection shows Needs reconnecting; reconnecting adds missing links (new)–

Test script

Preconditions gate@'s Zoom stops working (the automated run marks the stand-in Zoom expired) and its upcoming session has no link

Steps

  1. Open Connections
  2. Click "Reconnect Zoom" and approve on Zoom's screen

Expected

  • Zoom reads "Needs reconnecting. Zoom stopped letting Pax Psychology make meetings, so your Zoom sessions aren't taking bookings." with "1 upcoming session has no link yet. Reconnecting adds them." and "Reconnect Zoom"
  • After reconnecting, the session gets its Zoom link without anyone rebooking

Notes The automated run checks the count and the hand-off to Zoom; adding the missing links is unit-tested (lib/video-call/backfill.ts). Google Meet and Teams do the same when their calendar is reconnected.

Skipped by designTC-P-104The session type form only offers connected video providers (new)–

Test script

Preconditions Logged in as gate@paxpsychology.dev (Zoom connected, no Google calendar)

Steps

  1. Navigate to /dashboard/settings/appointment-types/add
  2. Edit "Meet session"

Expected

  • Under "Video call", Zoom can be chosen; Google Meet is greyed out and marked "(not connected)", with "Only providers you've connected can be chosen. Connect another in Connections"
  • With nothing connected the form says "Connect a video provider first, so clients can book this session type. Open Connections", and saving a provider that isn't connected is refused
  • "Meet session" keeps Google Meet, with "Google Meet isn't connected, so clients can't book this session type until you connect it in Connections."
Skipped by designTC-P-105Default for new session types is set in Connections (new)–

Test script

Preconditions Logged in as gate@paxpsychology.dev

Steps

  1. Open Connections and, under "Default for new session types", choose Zoom and click "Save"
  2. Add a session type

Expected

  • "New session types use" lists only providers that are connected (here, Zoom); the toast "Default saved"
  • The new session type form starts on Zoom. Nothing is chosen for you when nothing is connected (there is no silent default)
Skipped by designTC-P-106The calendar email links to Connections (new)–

Test script

Preconditions TC-P-94 (a broken Google calendar) sent "Your Google calendar disconnected"

Steps

  1. Open the email and click its button

Expected

  • The button opens Connections (/dashboard/connections), where "Reconnect Google" is.

Notes Manual in the automated run (it needs the real inbox); the link is unit-tested.

Skipped by designTC-P-108A Teams session type makes a real Teams link from a work account; a personal Microsoft account is refused clearly (new)–

Test script

Preconditions Microsoft Teams offered (teams in VIDEO_PROVIDERS_ENABLED). A Microsoft 365 work or school account, and a personal Microsoft account (outlook.com)

Steps

  1. Connect the work account's calendar on Connections, set a session type to Microsoft Teams and book it
  2. Repeat with the personal account

Expected

  • With the work account the session gets a real Teams link on its calendar event (one event, not two)
  • With the personal account, Teams reads "Microsoft Teams needs a work or school Microsoft account. The Microsoft calendar connected above is a personal one." and Teams session types don't take bookings

Notes Manual: needs a real Microsoft tenant.

Skipped by designTC-P-109The session type form and Connections show the AI notes disclaimer for Meet and Teams (new)–

Test script

Preconditions AI notes on (off on staging), logged in as gate@

Steps

  1. Open Connections
  2. Edit "Meet session"

Expected

  • Zoom reads "AI session notes: sessions can be recorded"; Google Meet "AI session notes: not available. AI session notes can't record Google Meet sessions." and Teams "AI session notes: not yet."
  • The form shows the same disclaimer under "Video call" for Google Meet and Teams
FailedTC-P-111A psychologist with no working video provider isn't bookable (new)18.7s

Test script

Preconditions Logged in as gate@paxpsychology.dev (stand-in Zoom connected)

Steps

  1. Open Connections
  2. In a signed-out window, search the directory for "Gale Gate"
  3. Click "Disconnect Zoom"
  4. Open Today
  5. In a signed-out window, search the directory again and open /book/gale-gate

Expected

  • Step 1: Zoom is connected and "Not taking bookings" lists "Meet session (Google Meet)"; no banner
  • Step 2: Dr Gale Gate is listed
  • Step 3: Zoom reads "Not connected…" and "Initial consultation (Zoom)" joins "Not taking bookings"
  • Step 4: a banner "Connect a video provider so clients can book you" ("Every session is by telehealth, so until a session type's video provider (Zoom, Google Meet or Microsoft Teams) is connected, clients can't book you.") with "Open Connections", and an orange dot on Connections in the sidebar
  • Step 5: Dr Gale Gate isn't listed, and the booking page is the not-found page, exactly as for a psychologist without payouts

Notes In-person sessions are off, so a working video connection is required alongside payouts. The automated run puts the stand-in Zoom back.

Automated run

  1. 1. Open Connections
  2. 2. In a signed-out window, search the directory
  3. 3. Click "Disconnect Zoom" – failed
Error: expect(locator).toContainText(expected) failed

Locator: getByRole('region', { name: 'Not taking bookings' })
Expected substring: "Initial consultation (Zoom)"
Received string:    "Not taking bookingsClients can't book these session types until their video provider is ready:Initial consultation (Zoom Meeting)Meet session (Google Meet)"
Timeout: 5000ms

Call log:
  - Expect "toContainText" getByRole('region', { name: 'Not taking bookings' }) with timeout 5000ms
  - waiting for getByRole('region', { name: 'Not taking bookings' })
    14 × locator resolved to <section aria-labelledby="blocked-types-heading" class="bg-paper flex flex-col gap-1 rounded-2xl p-5 lg:p-6">…</section>
       - unexpected value "Not taking bookingsClients can't book these session types until their video provider is ready:Initial consultation (Zoom Meeting)Meet session (Google Meet)"
Screenshot for TC-P-111Screenshot for TC-P-111
Skipped by designTC-P-112A broken video connection stops new bookings; booked sessions keep their links (new)–

Test script

Preconditions gate@'s Zoom stops working (the automated run marks the stand-in Zoom expired). Its upcoming session with Casey Moves has a Zoom link

Steps

  1. As gate@, open Connections
  2. Open Today
  3. In a signed-out window, open /book/gale-gate/initial-consultation
  4. Open the upcoming session

Expected

  • Step 1: Zoom reads "Needs reconnecting…" with "Reconnect Zoom"
  • Step 2: the banner from TC-P-111
  • Step 3: the not-found page; a booking already under way is refused with "This session can't be booked right now. The psychologist needs to connect their video provider first."
  • Step 4: the session still has its Zoom link (nothing booked is changed)
ManualTC-P-20Open the Stripe Express dashboard27.3s

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 – failed
Screenshot for TC-P-20Screenshot for TC-P-20
PassedTC-P-21Settings › Availability (new)10.8s

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)21.4s

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=notifications). Calendars moved to Connections (/dashboard/connections) and Account actions went (pause and resume on Your listing, Sign out on Account): ?section=calendar and ?section=actions open Account, with no redirect. /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
  10. Notes: ?section=calendar and ?section=actions open Account
Screenshot for TC-P-22
RetiredTC-P-23Account actions, pause and resume the listing (new)1ms

Replaced by TC-P-107: Pause and resume moved to Your listing, Sign out to Account

FailedTC-P-107Pause and resume your listing from Your listing (new)13.9s

Test script

Preconditions Logged in as listing@paxpsychology.dev

Steps

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

Expected

  • Below the listing form, a "Pause or resume" card 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; resumed, they're back
  • Sign out is on Settings › Account ("Sign out of Pax Psychology 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/listing
  2. 2. Click "Pause"
  3. 3. Check /psychologists in a signed-out window
  4. 4. Return and click "Resume" – failed
Error: expect(locator).toHaveAttribute(expected) failed

Locator: getByRole('switch', { name: 'Taking new clients' })
Expected: "true"
Error: strict mode violation: getByRole('switch', { name: 'Taking new clients' }) resolved to 2 elements:
    1) <button type="button" role="switch" aria-checked="true" aria-label="Taking new clients" class="relative h-5 w-9 shrink-0 cursor-pointer rounded-full border p-0 transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus border-paper bg-mint">…</button> aka getByRole('complementary', { name: 'Dashboard' }).getByRole('switch', { name: 'Taking new clients' })
    2) <button type="button" role="switch" aria-checked="false" aria-labelledby="_R_2kfmlubpfqbqjb_" aria-describedby="_R_2kfmlubpfqbqjbH1_" class="group focus-visible:outline-focus flex min-h-11 min-w-11 shrink-0 cursor-pointer items-center justify-center rounded focus-visible:outline-2">…</button> aka getByRole('switch', { name: 'Taking new clients', description: 'Turn off to show a not taking clients badge instead.' })

Call log:
  - Expect "toHaveAttribute" getByRole('switch', { name: 'Taking new clients' }) with timeout 5000ms
  - waiting for getByRole('switch', { name: 'Taking new clients' })
Screenshot for TC-P-107Screenshot for TC-P-107

2G. New surfaces

2 passed 2 fixture missing
PassedTC-P-24New clients queue (new)27.8s

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.3s

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
Fixture missingTC-P-26Your listing (new)57.6s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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
Error: expect(locator).toBeVisible() failed

Locator: getByText('E2E-e2e-20261027-gh40448182355').first()
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText('E2E-e2e-20261027-gh40448182355').first() with timeout 30000ms
  - waiting for getByText('E2E-e2e-20261027-gh40448182355').first()
Screenshot for TC-P-26Screenshot for TC-P-26
Fixture missingTC-P-28Choose specialties on your listing (new)53.2s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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
Error: expect(locator).toBeVisible() failed

Locator: getByText('Mental health', { exact: true }).first()
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText('Mental health', { exact: true }).first() with timeout 30000ms
  - waiting for getByText('Mental health', { exact: true }).first()
Screenshot for TC-P-28Screenshot for TC-P-28

2H. AI session notes (flag)

10 passed 1 failed
PassedTC-P-70AI notes need the client's consent first (new)51.0s

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

Emails (4 sent)

  • Email: New sign-in to your Pax Psychology account
    New sign-in to your Pax Psychology account
    To test@paxpsychology.dev at 04:20:18 UTC
  • Email: Dr Emily Thompson would like to use AI to help with their notes
    Dr Emily Thompson would like to use AI to help with their notes
    To client@paxpsychology.dev at 04:20:24 UTC
  • Email: New sign-in to your Pax Psychology account
    New sign-in to your Pax Psychology account
    To client@paxpsychology.dev at 04:20:26 UTC
  • Email: Dr Emily Thompson would like to use AI to help with their notes
    Dr Emily Thompson would like to use AI to help with their notes
    To client@paxpsychology.dev at 04:22:35 UTC
Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70Screenshot for TC-P-70
PassedTC-P-71Dictate and draft a session note (new)1m 45s

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
Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71Screenshot for TC-P-71
PassedTC-P-72Recording needs consent before the session is joined (new)47.8s

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

Emails (2 sent)

  • Email: Dr Emily Thompson would like to record your next session
    Dr Emily Thompson would like to record your next session
    To client@paxpsychology.dev at 04:21:23 UTC
  • Email: Dr Emily Thompson would like to record your next session
    Dr Emily Thompson would like to record your next session
    To client@paxpsychology.dev at 04:23:46 UTC
Screenshot for TC-P-72Screenshot for TC-P-72Screenshot for TC-P-72Screenshot for TC-P-72
FailedTC-P-73A recorded Zoom session is imported and drafted (new)46.6s

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. Open Connections
  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
  • Connections shows Zoom "Connected" with "AI session notes: sessions can be recorded" (connecting Zoom from scratch is TC-P-100)
  • The validation challenge is answered; a webhook whose signature does not match is rejected
  • The sweep cancels abandoned recordings and deletes expired audio
Error: expect(locator).toBeVisible() failed

Locator: getByText(/^Connected \(.*\)\. Zoom sessions get a meeting link/)
Expected: visible
Timeout: 20000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText(/^Connected \(.*\)\. Zoom sessions get a meeting link/) with timeout 20000ms
  - waiting for getByText(/^Connected \(.*\)\. Zoom sessions get a meeting link/)

Emails (4 sent)

  • Email: Your draft note for Alex is ready
    Your draft note for Alex is ready
    To test@paxpsychology.dev at 04:21:42 UTC
  • Email: Your draft note for Alex is ready
    Your draft note for Alex is ready
    To test@paxpsychology.dev at 04:21:45 UTC
  • Email: Your draft note for Alex is ready
    Your draft note for Alex is ready
    To test@paxpsychology.dev at 04:24:07 UTC
  • Email: Your draft note for Alex is ready
    Your draft note for Alex is ready
    To test@paxpsychology.dev at 04:24:10 UTC
Screenshot for TC-P-73Screenshot for TC-P-73Screenshot for TC-P-73Screenshot for TC-P-73Screenshot for TC-P-73Screenshot for TC-P-73
PassedTC-P-60Book a session from Schedule and from a client's drawer (new)8.7s

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)18.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)15.5s

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)11.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)17.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.6s

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)287ms

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 Psychology: 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 your sessions to"), 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)18.1s

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)28.4s

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)11.0s

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)14.5s

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/manual-sql-archive/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)32.6s

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

49 cases40 passed 2 failed 3 fixture missing 1 manual 2 retired 1 skipped by design

3A. Dashboard

2 passed
PassedTC-A-01Admin landing page11.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, Marketing, Correspondence under "Audience"; Site settings, Integrations under "Site"; Your settings under "Account". (Claims, Health funds 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)17.8s

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 Our 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, Our 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 our 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 our cut
  4. 4. The psychologist and the client get the 403 screen
Screenshot for TC-A-31

3B. User Management

18 passed
PassedTC-A-02View all users11.2s

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 user11.3s

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-20261027-gh40448182355-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)14.2s

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-20261027-gh40448182355-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.8s

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 user29.8s

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 client22.2s

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 psychologist19.0s

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 log31.4s

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)34.0s

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)45.6s

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)24.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)22.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)27.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)24.8s

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)31.9s

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)45.9s

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 Psychology 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)39.5s

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 Psychology 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
PassedTC-A-52An admin can audit what the retention job destroyed (new)12.2s

Test script

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

Steps

  1. As the admin, open /dashboard/users and click "Destruction log"
  2. Set Category to "Financial"
  3. Sign in as the psychologist and visit /dashboard/users/retention-log

Expected

  • Step 1: /dashboard/users/retention-log with H1 "Destruction log" and the sub-line "Records destroyed at the end of their retention period: what kind, whose and when. Never their content." A notice reads "Destruction is off. The daily job only counts what is due." (or, once RETENTION_DESTRUCTION_ENABLED=true is set on the deployment, "The retention job is destroying records that are due."). Three cards, Clinical, Closed account and Financial, each with a record count. The table has the columns Destroyed, Record, Client id, Count, Records dated and Why; with no rows it shows "Nothing has been destroyed yet."
  • Step 2: the URL gains ?category=FINANCIAL
  • Step 3: sent back to the psychologist's dashboard; no "Destruction log" heading

Notes The log holds a client id, the kind of record, the count, the dates and the reason, never names or content. Dry runs write nothing, so on staging the log stays empty until destruction is turned on. A row reads like "Client documents, Clinical, cm..., 2 (2 files), 1 Mar 2017 to 4 May 2018, 7 years after the last service or entry on 4 May 2018, Kept until 4 May 2025".

Automated run

  1. 1. As the admin, open Users, then "Destruction log"
  2. Expected: the mode, the totals and the log
  3. 2. Set Category to "Financial"
  4. 3. As the psychologist, visit the destruction log
Screenshot for TC-A-52

3C. Content Management

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

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 FAQ32.6s

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 subscribers9.0s

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 CSV8.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 subscriber16.7s

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-20261027-gh40448182355-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 2 fixture missing 1 skipped by design
Fixture missingTC-A-16Create, edit and publish a journal article1m 15s

Needs the CI_BLOB_READ_WRITE_TOKEN GitHub secret (the CI Vercel Blob store, for uploads), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).not.toHaveValue(expected) failed

Locator:  locator('input[name="featuredImage"]')
Expected: not ""
Received: ""
Timeout:  60000ms

Call log:
  - Expect "not toHaveValue" locator('input[name="featuredImage"]') with timeout 60000ms
  - waiting for locator('input[name="featuredImage"]')
    118 × locator resolved to <input value="" type="hidden" name="featuredImage"/>
        - unexpected value ""
Screenshot for TC-A-16Screenshot for TC-A-16
PassedTC-A-17Journal status radio and scheduled articles43.9s

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 article16.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
Fixture missingTC-A-19Categories, Authors and Media (new)1m 32s

Needs the CI_BLOB_READ_WRITE_TOKEN GitHub secret (the CI Vercel Blob store, for uploads), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByText('Uploaded e2e-e2e-20261027-gh40448182355.png').visible()
Expected: visible
Timeout: 60000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText('Uploaded e2e-e2e-20261027-gh40448182355.png').visible() with timeout 60000ms
  - waiting for getByText('Uploaded e2e-e2e-20261027-gh40448182355.png').visible()
Screenshot for TC-A-19Screenshot for TC-A-19
PassedTC-A-20The admin sidebar's Site and Account groups (new)15.1s

Test script

Preconditions Logged in as an admin

Steps

  1. Open the dashboard and look at the sidebar
  2. Click "Site settings", then "Integrations"

Expected

  • The "Site" group is "Site settings" (/dashboard/admin/site) and "Integrations" (/dashboard/admin/integrations), plus "Claims", "Health funds" and "Compliance" with the insurance flag on. A new "Account" group has "Your settings" (/dashboard/settings)
  • "Integrations" carries the coral dot while the last scheduled health check found a service that needs attention (TC-A-68)
  • Each page opens with its own heading: "Site settings", "Integrations"

Automated run

  1. 1. Open the dashboard and look at the sidebar
  2. 2. Click "Site settings", then "Integrations"
Screenshot for TC-A-20
PassedTC-A-64Admin Settings is your own account only (new)14.9s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to /dashboard/settings
  2. Open Account, then Notifications
  3. Visit /dashboard/settings?section=journal-site, ?section=integrations and ?section=actions

Expected

  • The settings nav is "Account", "Sign-in and security", "Notifications", nothing else. No "Journal & site", "Integrations", "System" or "Account actions"
  • Account has "Your details", "Password" and an "Account" card with "Sign out". No Mobile field
  • Notifications has "Platform problems" ("When a service the platform runs on needs attention, like payments or email."), on
  • Each old section id opens Account; nothing redirects elsewhere

Automated run

  1. 1. Navigate to /dashboard/settings
  2. 2. Account has your details and Sign out
  3. 3. Notifications has Platform problems, on
  4. 4. The old section ids fall back to Account
Screenshot for TC-A-64
PassedTC-A-21Retired dashboard URLs return not found (new)27.1s

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
PassedTC-A-69Platform OAuth and admin video connect are gone (new)12.6s

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to /dashboard/settings/integrations
  2. Look through the sidebar and every Settings section

Expected

  • Step 1 is the 404 page ("This one's wandered off."), with no redirect
  • Nowhere offers "Platform OAuth", "Configure new" (a client id and secret form), "Video providers", "Default provider" or a Zoom, Google Meet or Teams connect button for the admin's own account. No client secret appears in any admin page's HTML

Notes The OAuth apps behind sign-in, calendars, Zoom, Meet and Teams are configured in Vercel environment variables; psychologists connect their own accounts.

Automated run

  1. 1. Navigate to /dashboard/settings/integrations
  2. 2. Look through the sidebar and every Settings section
Screenshot for TC-A-69
Skipped by designTC-A-70Health funds live under Claims (new)8.0s

FEATURE_INSURANCE_ENABLED is off on this deployment, so the health fund registry is hidden

Test script

Preconditions Logged in as an admin, with FEATURE_INSURANCE_ENABLED=true (off on staging: the automated run skips this case by design)

Steps

  1. In the sidebar's Site group, click "Health funds"
  2. Open the "Health fund APIs" tab, edit one fund's HICAPS code and save

Expected

  • /dashboard/admin/health-funds with the H1 "Health funds" and two tabs, "Health funds" and "Health fund APIs", working as they did on the old integrations page. The sidebar item sits after "Claims"
  • The save shows "Integration settings updated successfully" and the code is kept on reload
  • With the insurance flag off, the page is the 404 page and the sidebar has no "Health funds" item
Screenshot for TC-A-70

3F. Correspondence (new)

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

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)

1 passed 1 fixture missing
Fixture missingTC-A-50A campaign landing and its booking reach the channels table (new)33.1s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 our 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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-A-50Screenshot for TC-A-50
PassedTC-A-51Only admins can open Marketing (new)14.1s

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)2m 31s

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/admin/health-funds, /dashboard/admin/site, /dashboard/admin/site?section=features, /dashboard/admin/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 or to the 403 screen (/dashboard/admin/... pages check for themselves and show the 403 screen). 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", "Site settings" or "Integrations" link and no "SEO & social" panel
  • The feature flag action refuses them too (unit-tested: tests/unit/actions/feature-flags.test.ts); Site settings and Integrations HTML never reaches them (no STRIPE_SECRET_KEY, no "Recent changes")
  • /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) Site settings are not offered in their own Settings
  3. 2. As the client, visit each admin URL
  4. (client) Site settings are not offered in their own Settings
  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)52.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)8.3s

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

3I. Site settings and Integrations (new)

4 passed 2 failed 1 manual
FailedTC-A-65Site settings: Site and search and Journal save (new)34.8s

Test script

Preconditions Logged in as an admin

Steps

  1. Open Site settings (/dashboard/admin/site), change the "Tagline", click "Save changes", reload, then put it back
  2. Open "Journal", switch "Show read time", save, reload, then switch it back

Expected

  • The nav is "Site and search", "Journal", "Features", "Business rules"
  • Site and search has "General", "SEO & social" and "Syndication" (the RSS feed). Saving shows "Site settings updated" and the value is kept
  • Journal has "Default author", "Default category" and "Show read time". Saving shows "Journal settings updated" and saves only those
  • "Allow comments" and "Auto-add to newsletter" are gone (nothing read them)

Automated run

  1. 1. Site and search: change the tagline and save
  2. 2. Journal: toggle Show read time and save, then back – failed
TimeoutError: locator.click: Timeout 15000ms exceeded.
Call log:
  - waiting for getByRole('switch', { name: /Show read time/ })
    - locator resolved to <input checked role="switch" type="checkbox" name="showReadTime" class="peer sr-only"/>
  - attempting click action
    2 × waiting for element to be visible, enabled and stable
      - element is visible, enabled and stable
      - scrolling into view if needed
      - done scrolling
      - <span class="relative inline-flex shrink-0">…</span> intercepts pointer events
    - retrying click action
    - waiting 20ms
Screenshot for TC-A-65Screenshot for TC-A-65
PassedTC-A-66Business rules are read only; locked flags say why (new)6.1s

Test script

Preconditions Logged in as an admin

Steps

  1. Open Site settings, "Business rules"
  2. Open "Features"

Expected

  • Business rules lists Money (Pax Psychology's fee, GST, invoices due, currency), Booking and cancelling (late cancellation, how far ahead, the hold on a session a psychologist books, minimum client age) and Security (two-step verification, step-up window, idle sign-out, clinical access), each with the config/ file it comes from. Nothing is editable: "Business rules change by release, as a reviewed change to the code."
  • In Features, the locked flags (AI session notes, Insurance and Medicare and the Medicare sub-features, Medicare test mode, Push notifications, Text message notifications) show "Locked" and why, for example "Needs AWS set up and the AI notes privacy review signed off. Changed by release.", and have no "Change" button

Automated run

  1. 1. Open Business rules
  2. 2. Open Features and look at a locked flag
Screenshot for TC-A-66
FailedTC-A-67Integrations health shows statuses and counts, never a secret or a name (new)37.7s

Test script

Preconditions Logged in as an admin

Steps

  1. Open Integrations (/dashboard/admin/integrations)
  2. View the page source
  3. Click "Check again"

Expected

  • One card per service (Stripe, Resend, Google, Microsoft, Apple, Zoom, Cloudflare Turnstile, Vercel Blob, Redis, Scheduled jobs, Encryption keys, Sentry, Slack, GitHub, AI session notes, Push notifications, Medicare and PRODA, HICAPS and Tyro), each with what it's for, a status ("Working", "Set", "Needs attention", "Not set" or "Off by flag") and the NAMES of its environment variables, marked "(not set)" when missing
  • "Psychologists' connections" is a table of counts per provider: "Connected" and "Needs reconnecting". No psychologist's name or email
  • The page source has no secret value, prefix or length, and no provider error text
  • "Check again" runs the checks now (they are otherwise cached for a few minutes); a check that doesn't answer in time says "Set, not checked"

Automated run

  1. 1. Open Integrations
  2. 2. The page source holds no secret value and no email
  3. 3. Click "Check again" – failed
Error: expect(locator).toBeVisible() failed

Locator: getByText(/^Checked /).first()
Expected: visible
Timeout: 30000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByText(/^Checked /).first() with timeout 30000ms
  - waiting for getByText(/^Checked /).first()
Screenshot for TC-A-67Screenshot for TC-A-67
ManualTC-A-68A failing service shows Needs attention, the sidebar dot, and the Platform problems email reaches every admin (new)2ms

Needs a platform service to fail on the deployment (for example an invalid RESEND_API_KEY on a throwaway preview), which the automated run must not do to staging.

Test script

Preconditions A throwaway preview (never staging or production) where one service is broken on purpose, for example RESEND_API_KEY set to an invalid key. By hand: the automated run lists it as "Manual"

Steps

  1. Call the scheduled check (GET /api/cron/platform-health with the cron secret), or wait for it (every 30 minutes)
  2. As an admin, open the dashboard, then Integrations
  3. Call the check again
  4. Fix the key and call it once more

Expected

  • The broken service shows "Needs attention" with our own words ("The check failed (HTTP 401).") and the sidebar's Integrations item has the coral dot
  • Every active admin with "Platform problems" on gets "Platform problem: Resend" once; step 3 sends nothing more
  • After step 4 the service is "Working", the dot is gone, and a later failure emails again
PassedTC-A-71Switching an editable flag takes effect without a deploy and is recorded (new)11.1s

Test script

Preconditions Logged in as an admin whose last sign-in or step-up is more than 10 minutes old (to see the step-up)

Steps

  1. In Site settings, Features, click "Change" on "How did you hear about us?"
  2. Choose "On", leave the reason empty and save; then write a reason ("Testing a switch on staging.") and save
  3. Open /booking-success in a private window
  4. Back in Features, look at "Recent changes"
  5. Put it back: "Use the environment value" (TC-A-72)

Expected

  • The dialog has "On", "Off" and "Use the environment value (off)", and "Why are you changing it?". Saving with no reason says "Say why in at least 10 characters."
  • Saving asks "You're about to turn How did you hear about us? on for everyone. We check it's you first." Then the toast "How did you hear about us? is on"
  • The booking confirmation now asks "How did you hear about us?", with no deploy
  • Recent changes has a row: when, who, "How did you hear about us?", "Off to On" and the reason. Ops get a Slack message "<admin> turned How did you hear about us? on: <reason>"

Automated run

  1. 1. In Features, switch How did you hear about us? on with a reason
  2. 2. The booking confirmation follows on its next load
  3. 3. Recent changes lists it with the reason
Screenshot for TC-A-71
PassedTC-A-72The environment value removes the override; a locked flag can't be switched (new)7.1s

Test script

Preconditions TC-A-71 done

Steps

  1. "Change" on "How did you hear about us?", "Use the environment value", a reason, save
  2. Open /booking-success
  3. Look for a "Change" button on a locked flag

Expected

  • The row's "Override" reads "None" and its status follows the environment again; Recent changes gets "On to Off (environment)"
  • The booking confirmation no longer asks "How did you hear about us?"
  • "In-person sessions" is locked, with why: sessions are telehealth only for now (a session type needs a video provider)
  • Locked flags have no "Change" button, and the action refuses one even from a tampered form (unit-tested)
  • Saving a setting that changes nothing says "Nothing changed" and records nothing

Automated run

  1. 1. Switch How did you hear about us? to Use the environment value
  2. 2. The booking confirmation is back to the environment value (off)
  3. 3. Locked flags have no Change button
Screenshot for TC-A-72
PassedTC-A-73An admin can turn off the Platform problems email (new)5.6s

Test script

Preconditions Logged in as an admin

Steps

  1. Settings, Notifications: switch "Platform problems" off and click "Save changes"
  2. Reload, then switch it back on and save

Expected

  • It stays off after the reload; while off, that admin gets no Platform problems email (other admins still do)
  • It's on by default for every admin

Automated run

  1. 1. Turn Platform problems off and save
Screenshot for TC-A-73

3H. Search and sharing settings (new)

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

Test script

Preconditions Logged in as an admin

Steps

  1. Navigate to https://paxpsychology.dev/dashboard/admin/site?section=site (Site settings, Site and search) 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"
  • With "Default share image URL" empty, the share preview shows the Pax Psychology card: "Shit happens. It's good to talk about it." in white on the cobalt band, with the Pax Psychology wordmark and a yellow, green and coral stripe along the bottom
  • "Site settings updated" shows after saving
  • The homepage's <meta name="description">, og:description and twitter:description are the new text, without a redeploy
  • With "Default share image URL" empty, the homepage's og:image and twitter:image are https://paxpsychology.dev/og/pax-share.png, with og:image:width 1200, og:image:height 630 and og:image:alt "Shit happens. It's good to talk about it. Pax Psychology"
  • 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 (empty, the homepage uses the Pax Psychology card and other pages a generated card headed with their title; set, it replaces both, but a journal article with a cover or a psychologist with a photo keeps its own generated card, see TC-C-101), the Organization sameAs links on the homepage, and the verification meta tags.

Automated run

  1. 1. Open Site settings, Site and search 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 cases16 passed 2 fixture missing 1 skipped by design

4A. Marketing pages

6 passed
PassedTC-M-01Homepage at phone width9.5s

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 menu6.6s

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 width3.0s

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 width5.9s

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 width6.2s

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 width4.7s

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

2 passed 2 fixture missing
PassedTC-M-07Psychologist directory at phone width3.4s

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
Fixture missingTC-M-08Psychologist profile at phone width23.1s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 15000ms exceeded.
Call log:
  - waiting for getByRole('heading', { name: 'Specialities', exact: true, level: 2 })
Screenshot for TC-M-08Screenshot for TC-M-08
PassedTC-M-09Matching quiz at phone width6.6s

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
Fixture missingTC-M-17Booking steps at phone width (new)29.4s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-M-17Screenshot for TC-M-17

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

4 passed
PassedTC-M-10Sign in and register at phone width (new)3.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)6.2s

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)12.8s

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.9s

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)9.9s

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)8.3s

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)5.5s

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)8.1s

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)8.6s

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

8 cases6 passed 1 fixture missing 1 manual
PassedTC-C-40Sign in with an emailed code (new)7.6s

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, Sign-in and 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, Sign-in and security shows the method and the sign-in
Screenshot for TC-C-40
PassedTC-C-41Sign in with a backup code (new)8.3s

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, Sign-in and 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, Sign-in and 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)13.5s

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, Sign-in and 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, Sign-in and security lists the browser; “Stop trusting” it
  4. 4. Sign out and in again: the code is asked for
Screenshot for TC-C-42
Fixture missingTC-C-43Booking sign-in with two-step verification (new)29.3s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

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 – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-43Screenshot for TC-C-43
PassedTC-P-29Sign in with an authenticator app (new)9.8s

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, Sign-in and 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, Sign-in and 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)8.1s

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)11.8s

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
ManualTC-A-63An admin's Microsoft sign-in needs Microsoft MFA (new)405ms

Microsoft Entra's hosted sign-in cannot be driven from Playwright, and the check needs a real tenant account with MFA turned off and on. The refusal, the audit row and the error page are covered by unit tests (tests/unit/lib/better-auth-config.test.ts, tests/unit/lib/provider-mfa.test.ts). Verify by hand as the script describes.

Test script

Preconditions Signed out. A Microsoft account in the staging tenant whose Pax Psychology account is an ADMIN, with the amr optional claim on the app registration (docs/better-auth-cutover.md, Entra step 4). Manual only: Microsoft's hosted sign-in can't be driven from Playwright.

Steps

  1. With MFA off for that Microsoft account (or a Conditional Access exclusion), click “Continue with Microsoft” on /auth/login and sign in with just the password
  2. Turn MFA on for that account (or remove the exclusion), sign out of Microsoft, then repeat step 1 and complete the second step
  3. Sign out of Pax Psychology and sign in with Microsoft as a client or psychologist account with MFA off

Expected

  • Step 1: /auth/error with “Two-step verification needed.”, “Your Microsoft sign-in needs two-step verification. Turn on multi-factor authentication for your Microsoft account (or ask your IT admin), then try again.” and “Added a passkey to Pax Psychology? You can use it to sign in instead.”; not signed in; an OAUTH_MFA_REQUIRED_REFUSED row in auth_audit_logs with method microsoft, reason amr_without_mfa and a note like role=ADMIN; action=sign-in; amr=pwd
  • Step 2: the admin dashboard
  • Step 3: the dashboard, as before

Notes Reason missing_amr (note amr=none) means the token had no amr claim: the optional claim isn't on the app registration. An admin can still sign in with their password and Pax Psychology two-step verification, or a passkey. Google and Apple sign-ins aren't checked (neither sends a reliable MFA claim). The test exemption never applies to provider sign-ins.

Passkeys and idle sign-out

10 cases9 passed 1 fixture missing
PassedTC-C-117Add a passkey, then sign in with it (new)12.3s

Test script

Preconditions Signed out.

Steps

  1. Sign in as passkey-client@paxpsychology.dev with the password
  2. Open Settings, Sign-in and security
  3. In “Passkeys” click “Add a passkey”, name it “Test laptop”, click “Continue” and accept the browser's prompt
  4. Sign out. On /auth/login click “Sign in with a passkey” (or pick the passkey from the email field's suggestions)
  5. Open Settings, Sign-in and security

Expected

  • Step 2: a “Passkeys” card under Two-step verification: “Sign in with your face, fingerprint or device PIN, with no password or code. A passkey only works on the Pax Psychology website, so nobody can trick you into using it somewhere else.”, “None yet.”, “Add a passkey” and “We'll check it's you first.”
  • Step 3: the dialog “Add a passkey.” (“Your device will ask for your face, fingerprint or PIN, then save the passkey on this device or in your password manager.”, “Name it (optional)”, “Cancel”, “Continue”); if the sign-in is more than 10 minutes old, “Confirm it's you.” asks for the password first. Then the toast “Passkey added: Test laptop”, the row “Test laptop” with “Added <date>, not used yet.” and “Synced across your devices.” or “On one device.”, “Rename” and “Remove”, and the email “A passkey was added to your account” (Passkey, When, Device, Near, “Review security settings”)
  • Step 4: the dashboard, with no password or code
  • Step 5: the passkey says “last used <date>”; Recent sign-in activity lists “Signed in, With a passkey” and “Added a passkey, Test laptop”

Notes The sign-in page shows “Sign in with a passkey” only in a browser that supports passkeys. A device without a passkey for this site says “No passkey was used. If this device doesn't have one for Pax Psychology yet, sign in with your email and password.” A new browser signing in with a passkey sends “New sign-in to your Pax Psychology account” with How “With a passkey”.

Automated run

  1. 1. Sign in as passkey-client@ with the password
  2. 2. Settings, Sign-in and security shows Passkeys with none yet
  3. 3. Add a passkey named Test laptop
  4. Email "A passkey was added to your account" is sent to passkey-client@paxpsychology.dev
  5. 4. Sign out, then Sign in with a passkey
  6. 5. The activity says how, and the passkey was used
Screenshot for TC-C-117
PassedTC-C-118Rename and remove a passkey (new)24.3s

Test script

Preconditions TC-C-117 steps 1 to 3 done with the name “Old phone”, still signed in.

Steps

  1. Click “Rename” beside “Old phone”, change it to “Work phone” and click “Save”
  2. Click “Remove”, then “Remove passkey” in the dialog
  3. Sign out and try “Sign in with a passkey” with that passkey

Expected

  • Step 1: “Rename passkey.” with the name filled in; then “Passkey renamed” and the row reads “Work phone”
  • Step 2: “Remove this passkey?” with ““Work phone” won't sign you in any more. If it's saved in a password manager, you can delete it there too.”; confirm it's you if asked; then “Removed “Work phone””, the card says “None yet.”, and the email “A passkey was removed from your account”
  • Step 3: “We don't recognise that passkey. It may have been removed from your account. Sign in another way, then add it again.” and no sign-in

Notes An account holds at most 10 passkeys (“That's the most an account can have. Remove one to add another.”). While an admin views as someone, adding and removing are refused.

Automated run

  1. 1. Rename it to Work phone
  2. 2. Remove it, confirming in the dialog
  3. Email "A passkey was removed from your account" is sent to passkey-client@paxpsychology.dev
  4. 3. The removed passkey no longer signs in
Screenshot for TC-C-118
PassedTC-C-119Still there? Stay signed in (new)10.2s

Test script

Preconditions Signed out.

Steps

  1. Sign in as idle@paxpsychology.dev and open Sessions
  2. Leave the tab alone for 58 minutes
  3. Click “Stay signed in”, then leave it for another 30 minutes

Expected

  • Step 2: the dialog “Still there?” with “We'll sign you out in 2:00 to keep your information safe.”, counting down each second, and “Sign out” and “Stay signed in” (focused). Moving the mouse alone doesn't close it
  • Step 3: the dialog closes and Sessions stays open; no warning 30 minutes later

Notes Escape or the close button also means “Stay signed in”. A client's limit is 60 minutes; using the page at all (a click, typing, scrolling) restarts it.

Automated run

  1. 1. Sign in as idle@ and open Sessions
  2. 2. Leave it for 58 minutes: the warning
  3. 3. Stay signed in: still here half an hour later
Screenshot for TC-C-119
PassedTC-C-120Signed out after an hour, then back where you were (new)12.7s

Test script

Preconditions Signed out.

Steps

  1. Sign in as idle@paxpsychology.dev, open Settings, Account, and open the dashboard in a second tab
  2. Leave both tabs for an hour
  3. In the second tab, try /dashboard
  4. In the first tab sign in again

Expected

  • Step 2: after the warning, both tabs go to the sign-in page with “We signed you out after a while without activity, to keep your information safe. Sign in again to carry on where you left off.”
  • Step 3: the sign-in page (the session is gone on the server too)
  • Step 4: back on Settings, Account

Notes A laptop closed for longer than the limit is signed out when it wakes, without a warning. A session ended any other way (signed out elsewhere, the 12-hour limit for staff) lands with “For your security, you were signed out. Sign in again to carry on where you left off.” The trail records SESSION_TIMEOUT in auth_audit_logs (reason idle, method browser or server).

Automated run

  1. 1. Sign in as idle@, open Settings and a second tab
  2. 2. Leave both for an hour: both land on sign-in
  3. 3. The session is gone: the dashboard asks to sign in
  4. 4. Sign in again: back on Settings
Screenshot for TC-C-120
Fixture missingTC-C-121Sign in with a passkey while booking (new)45.3s

Needs the STRIPE_TEST_CONNECT_ACCOUNTS GitHub secret (existing Stripe test Connect accounts for test@ and the bookable psychologists), which this run does not have. See docs/ci-acceptance-plan.md.

Test script

Preconditions Signed out. TC-C-117 steps 1 to 3 done (a passkey for passkey-client@paxpsychology.dev on this browser), then signed out.

Steps

  1. From test@'s profile, book: pick a time, then “Continue to details”
  2. On “Your details.” click “Sign in”
  3. In the “Sign in to your account” panel click “Sign in with a passkey” and accept the browser's prompt

Expected

  • Step 2: the panel opens in the page above the form, with “Sign in and continue”, then an “or” divider, “Sign in with a passkey”, “Continue with Google” and “Continue with Microsoft”
  • Step 3: no password and no code; the panel closes and the booking carries on with the same time, signed in as passkey-client@: “Is this all still right?” with the account's details (the “Already have an account?” card is gone)

Notes “Sign in with a passkey” shows only in a browser that supports passkeys. Cancelling the prompt leaves the panel open with the password form. A passkey counts as two-step verification, so an account with 2FA on is not asked for a code after it.

Automated run

  1. 1. Open test@’s booking page, pick a time and continue – failed
Error: expect(locator).toBeVisible() failed

Locator: getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Expected: visible
Timeout: 25000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" getByRole('heading', { name: /Which session would you like\?/, level: 1 }) with timeout 25000ms
  - waiting for getByRole('heading', { name: /Which session would you like\?/, level: 1 })
Screenshot for TC-C-121Screenshot for TC-C-121
PassedTC-P-96A psychologist's first passkey turns on two-step verification (new)28.2s

Test script

Preconditions Signed out.

Steps

  1. Sign in as passkey-psych@paxpsychology.dev and open Settings, Sign-in and security
  2. Add a passkey named “Clinic laptop”, tick “I've saved these codes somewhere safe” and click “Done”
  3. Sign out and sign in with the password; on the code step click “Use a passkey instead”
  4. Sign out, sign in with the password again and enter the emailed code

Expected

  • Step 1: Two-step verification “Off” with “… Adding a passkey below turns it on too.”; the Passkeys card says “None yet. Adding one also turns on two-step verification, with email codes for when you sign in with your password.”
  • Step 2: “Your passkey is ready.” explains that two-step verification is now on with emailed codes, which the passkey skips, and shows ten backup codes once; “Done” stays disabled until the box is ticked. Then Two-step verification is “On”, “Email codes, sent to p•••@paxpsychology.dev.” The email “A passkey was added to your account” says two-step verification was turned on too
  • Step 3: the code step offers “Use a passkey instead”, which signs in to the dashboard with no code
  • Step 4: the dashboard

Notes An admin, or a psychologist who already has 2FA, keeps their method; only a password account without 2FA gets email codes turned on, so a password alone never signs in. A client's 2FA is left as it was.

Automated run

  1. 1. Settings, Sign-in and security says a passkey turns 2FA on too
  2. 2. Add a passkey: backup codes, then 2FA is on
  3. Email "A passkey was added to your account" is sent to passkey-psych@paxpsychology.dev
  4. 3. A password sign-in now asks for a code, or the passkey
  5. 4. And the emailed code still works
Screenshot for TC-P-96
PassedTC-P-97Confirm it's you with a passkey (new)11.9s

Test script

Preconditions TC-P-96 steps 1 and 2 done; the sign-in more than 10 minutes old.

Steps

  1. Settings, Sign-in and security: click “Make new codes”
  2. Click “Use my passkey” and accept the browser's prompt

Expected

  • Step 1: “Confirm it's you.” names the change and offers the passkey first: “Use your passkey. Your device will ask for your face, fingerprint or PIN.”, “Use my passkey”, then “Email me a code instead” and “Use a backup code”
  • Step 2: “Your new backup codes.”

Notes A passkey confirms any sensitive change the same way (connecting a sign-in provider, payouts, an admin's reset or impersonation). An account that signs in only with Google, Microsoft or Apple and has a passkey can confirm with it instead of signing in again. Never while viewing as someone.

Automated run

  1. 1. Make new backup codes: the passkey comes first
  2. 2. Use my passkey: the change goes ahead
Screenshot for TC-P-97
PassedTC-P-98A psychologist is signed out after 30 minutes, or chooses to (new)6.0s

Test script

Preconditions Signed out.

Steps

  1. Sign in as idle-psych@paxpsychology.dev
  2. Leave the tab for 28 minutes
  3. Click “Sign out”, then try /dashboard

Expected

  • Step 2: “Still there?” with about two minutes left
  • Step 3: signed out at once (the home page), and /dashboard asks to sign in

Notes Not signed out while a card is being confirmed (the booking or card form is waiting on Stripe), while a dictation is recording, or after “Join video call” until 15 minutes after the session's scheduled end (the call runs in another app).

Automated run

  1. 1. Sign in as idle-psych@
  2. 2. 28 minutes: the warning
  3. 3. Sign out: the session ends at once
Screenshot for TC-P-98
PassedTC-A-61An admin sent to two-step setup can use a passkey (new)5.5s

Test script

Preconditions Signed out.

Steps

  1. Sign in as passkey-admin@paxpsychology.dev
  2. Choose “A passkey” and click “Continue”, then accept the browser's prompt
  3. Tick “I've saved these codes somewhere safe”, click “Continue”, then “Go to your dashboard”
  4. Sign out and click “Sign in with a passkey”

Expected

  • Step 1: the setup page asks “How would you like to confirm it's you?” with “A passkey” (“Sign in with your face, fingerprint or device PIN, with no code to type. We'll email a code if you sign in with your password.”), “Authenticator app” (Recommended) and “Email codes”
  • Step 2: “Step 3 of 3”, “Save your backup codes.”
  • Step 3: “You're all set.” with Passkey “Added” and Codes from “Email codes”; then the admin dashboard
  • Step 4: the dashboard with no password or code

Notes Clients don't see “A passkey” on the setup page (it wouldn't add a step to their password sign-in); they add one in Settings, Sign-in and security.

Automated run

  1. 1. Sign in as passkey-admin@: sent to setup
  2. 2. Choose A passkey and continue
  3. 3. Save the codes: all set, with the passkey
  4. 4. Next time, the passkey alone signs in
Screenshot for TC-A-61
PassedTC-A-62An admin viewing as a client gets the admin's 30 minutes (new)8.5s

Test script

Preconditions Signed in as admin@paxpsychology.dev.

Steps

  1. Users: open Ida Idle (idle@paxpsychology.dev) and impersonate her (reason “Support request”)
  2. Leave the tab for 28 minutes
  3. Leave it for 2 more minutes

Expected

  • Step 2: “Still there?” (a client on her own would get it at 58 minutes)
  • Step 3: the sign-in page with the idle note; the impersonation session is gone

Notes The SESSION_TIMEOUT row names the admin as the actor.

Automated run

  1. 1. Sign in as admin@ and view as idle@
  2. 2. 28 minutes: the warning (a client alone gets 58)
  3. 3. Two more minutes: signed out, back to sign-in
Screenshot for TC-A-62

Accessibility

1 cases1 passed

7A. Automated checks

1 passed
PassedTC-C-122Automated accessibility scan of public and signed-in pages (new)3m 28s

Test script

Preconditions Signed out. The seeded accounts (client@, test@, admin@) and Dr Emily Thompson's listing (/psychologists/emily-thompson).

Steps

  1. Scan the public pages signed out: /, /psychologists, /psychologists/emily-thompson, /journal, the first article on it, /our-story, /contact, /auth/login, /auth/register, /onboarding, /book/emily-thompson, /this-page-does-not-exist and /maintenance (only while maintenance mode is on; otherwise it redirects home)
  2. Sign in as the client and scan the portal: /dashboard, /dashboard/appointments, /dashboard/appointments?tab=past, the first receipt listed there (/dashboard/invoices/<id>), /dashboard/settings
  3. Sign in as the psychologist and scan the dashboard: /dashboard, /dashboard/appointments, /dashboard/clients, /dashboard/earnings, /dashboard/listing, /dashboard/settings
  4. Sign in as the admin and scan the admin pages: /dashboard/admin (an admin's home; /dashboard sends them there), /dashboard/users, /dashboard/journal, /dashboard/correspondence

Expected

  • Every page: no serious or critical axe violations, and an axe-<page>.json attachment with the full results
  • Every page stays on the URL it was opened at; a page that redirects elsewhere fails, naming where it went, and is not scanned
  • Step 1: the unknown URL answers 404

Notes By hand, run the axe DevTools browser extension on the same pages, then the manual checklist in docs/accessibility.md (keyboard only, VoiceOver or NVDA, 200% zoom and 320px reflow, reduced motion, colour-only information).

Automated run

  1. 1. Scan the public pages signed out
  2. Scan Home (/)
  3. Scan Directory (/psychologists)
  4. Scan Psychologist profile (/psychologists/emily-thompson)
  5. Scan Journal (/journal)
  6. Scan Journal article (/journal/the-performing-okayness-loop)
  7. Scan Our story (/our-story)
  8. Scan Contact (/contact)
  9. Scan Sign in (/auth/login)
  10. Scan Sign up (/auth/register)
  11. Scan Match wizard, first step (/onboarding)
  12. Scan Booking entry (/book/emily-thompson)
  13. Scan Not found (/this-page-does-not-exist)
  14. Scan Maintenance (/maintenance) if it is on
  15. 2. Sign in as the client and scan the portal
  16. Scan Client home (/dashboard)
  17. Scan Client sessions (/dashboard/appointments)
  18. Scan Client past sessions (/dashboard/appointments?tab=past)
  19. Scan Client receipt (/dashboard/invoices/cmvq6aqp50007sy2i6xp9clza)
  20. Scan Client settings (/dashboard/settings)
  21. 3. Sign in as the psychologist and scan the dashboard
  22. Scan Psychologist home (/dashboard)
  23. Scan Psychologist schedule (/dashboard/appointments)
  24. Scan Psychologist clients (/dashboard/clients)
  25. Scan Psychologist earnings (/dashboard/earnings)
  26. Scan Psychologist listing (/dashboard/listing)
  27. Scan Psychologist settings (/dashboard/settings)
  28. 4. Sign in as the admin and scan the admin pages
  29. Scan Admin home (/dashboard/admin)
  30. Scan Admin users (/dashboard/users)
  31. Scan Admin journal (/dashboard/journal)
  32. Scan Admin correspondence (/dashboard/correspondence)
Screenshot for TC-C-122

Emails

148 sent during this run
Time (UTC)CaseToSubjectStatusScreenshot
04:19:56TC-A-25test@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:11TC-C-110suggested@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:17TC-C-110suggested@paxpsychology.devAppointment confirmation: Standard sessionSentView
04:20:17TC-C-110rebooks@paxpsychology.devNew appointment: Standard session with Sky SuggestedSentView
04:20:17TC-P-33payments@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:18TC-P-70test@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:22TC-C-38test@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:22TC-C-111bookagain@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:24TC-P-70client@paxpsychology.devDr Emily Thompson would like to use AI to help with their notesSentView
04:20:25TC-C-70client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:26TC-P-70client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:26TC-C-70test@paxpsychology.devNone of the suggested times worked for AlexSentView
04:20:28TC-C-111bookagain@paxpsychology.devAppointment confirmation: Standard sessionSentView
04:20:28TC-C-111rebooks@paxpsychology.devNew appointment: Standard session with Bea AgainSentView
04:20:35TC-C-112owes@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:35TC-C-38unpaid@paxpsychology.devWe couldn't process your paymentSentView
04:20:42TC-C-119idle@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:47TC-C-38unpaid@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:20:54TC-C-113bookagain@paxpsychology.devAppointment confirmation: Standard sessionSentView
04:20:54TC-C-113rebooks@paxpsychology.devNew appointment: Standard session with Bea AgainSentView
04:21:00TC-A-25client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:01TC-C-114twopsychs@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:02TC-P-98idle-psych@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:07TC-A-62admin@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:11TC-C-114twopsychs@paxpsychology.devAppointment confirmation: Standard sessionSentView
04:21:11TC-C-114rebooks@paxpsychology.devNew appointment: Standard session with Tess TwopsychsSentView
04:21:18TC-C-115movesagain@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:19TC-P-34blocks@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:22TC-C-115movesagain@paxpsychology.devAppointment rescheduled: Standard sessionSentView
04:21:22TC-C-115rebooks@paxpsychology.devAppointment rescheduled: Standard session with Max MovesagainSentView
04:21:23TC-P-72client@paxpsychology.devDr Emily Thompson would like to record your next sessionSentView
04:21:26TC-P-34moves@paxpsychology.devAppointment cancelled: Initial consultation (psychologist unavailable)SentView
04:21:26TC-P-34blocks@paxpsychology.devAppointment auto-cancelled: Initial consultation with Casey MovesSentView
04:21:31TC-C-20client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:42TC-P-73test@paxpsychology.devYour draft note for Alex is readySentView
04:21:45TC-P-73test@paxpsychology.devYour draft note for Alex is readySentView
04:21:51TC-C-117passkey-client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:21:55TC-C-117passkey-client@paxpsychology.devA passkey was added to your accountSentView
04:22:07TC-P-80proposes@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:22:09TC-P-35retry@paxpsychology.devWe couldn't process your paymentSentView
04:22:13TC-P-80held@paxpsychology.devPiper withdrew a booking requestSentView
04:22:13TC-P-35retry@paxpsychology.devInvoice and payment confirmation for your session with Dr Penny PaymentsSentView
04:22:13TC-C-118passkey-client@paxpsychology.devA passkey was added to your accountSentView
04:22:19TC-C-118passkey-client@paxpsychology.devA passkey was removed from your accountSentView
04:22:19TC-A-25admin@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:22:35TC-P-70client@paxpsychology.devDr Emily Thompson would like to use AI to help with their notesSentView
04:22:36TC-P-74amounts@paxpsychology.devInvoice and payment confirmation for your session with Dr Penny PaymentsSentView
04:22:39TC-C-121passkey-client@paxpsychology.devA passkey was added to your accountSentView
04:22:48TC-P-83held@paxpsychology.devPiper withdrew a booking requestSentView
04:22:48TC-P-83proposes@paxpsychology.devWithdrawn: Hollis Held's Initial consultationSentView
04:22:52TC-P-19calendar@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:23:06TC-P-24client@paxpsychology.devA note from Emily about your first sessionSentView
04:23:28TC-P-56client@paxpsychology.devEmily suggested some timesSentView
04:23:32TC-C-121passkey-client@paxpsychology.devA passkey was added to your accountSentView
04:23:45TC-P-56client@paxpsychology.devAppointment rescheduled: Initial consultationSentView
04:23:45TC-P-56test@paxpsychology.devAppointment rescheduled: Initial consultation with Alex JohnsonSentView
04:23:46TC-P-72client@paxpsychology.devDr Emily Thompson would like to record your next sessionSentView
04:24:07TC-P-73test@paxpsychology.devYour draft note for Alex is readySentView
04:24:10TC-A-29e2e-client+e2e-20261027-gh40448182355-a29@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:24:10TC-P-73test@paxpsychology.devYour draft note for Alex is readySentView
04:24:11TC-P-96passkey-psych@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:24:21TC-P-96passkey-psych@paxpsychology.devA passkey was added to your accountSentView
04:24:27TC-P-96passkey-psych@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:24:31TC-P-96passkey-psych@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:24:35TC-A-42test@paxpsychology.devPlease review Avery's request for their records by Tuesday 10 NovemberSentView
04:24:43TC-P-97passkey-psych@paxpsychology.devA passkey was added to your accountSentView
04:24:48TC-A-61passkey-admin@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:24:49TC-A-61passkey-admin@paxpsychology.devA passkey was added to your accountSentView
04:24:53TC-P-39privacy@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:25:02TC-A-44test@paxpsychology.devPlease review Avery's request for their records by Tuesday 10 NovemberSentView
04:25:18TC-P-01test2@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:25:28TC-P-10eulah.jones@paxpsychology.devInvoice and payment confirmation for your session with Dr Emily ThompsonSentView
04:25:33TC-P-03hours@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:25:34TC-P-111gate@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:25:47TC-A-45test@paxpsychology.devPlease review Avery's request for their records by Tuesday 10 NovemberSentView
04:25:49TC-P-04timeoff@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:10TC-A-22e2e-client+e2e-20261027-gh40448182355-a29@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:14TC-P-75shifts@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:18TC-P-75shifted@paxpsychology.devAppointment rescheduled: Initial consultationSentView
04:26:18TC-P-75shifts@paxpsychology.devAppointment rescheduled: Initial consultation with Rowan ShiftedSentView
04:26:22TC-P-75shifted@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:23TC-C-27e2e+newsletter-e2e-20261027-gh40448182355@paxpsychology.devYou're on the listSentView
04:26:23TC-C-27support@paxpsychology.devNewsletter subscription: TesterSentView
04:26:31TC-C-28e2e+newsletter-e2e-20261027-gh40448182355@paxpsychology.devYou're off the listSentView
04:26:35TC-P-31weekly@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:38TC-C-44latefee@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:26:40TC-P-31repeats@paxpsychology.devWren booked sessions for you: please confirmSentView
04:26:41TC-C-44latefee@paxpsychology.devLate cancellation fee invoice for your session with Dr Penny PaymentsSentView
04:26:41TC-C-44payments@paxpsychology.devA late cancellation from Lou LatefeeSentView
04:27:16TC-C-04support@paxpsychology.devContact form (Psychologist joining Pax Psychology): Test UserSentView
04:27:16TC-C-04e2e+contact@paxpsychology.devThank you for contacting Pax PsychologySentView
04:27:45TC-P-63test2@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:28:28TC-A-15e2e+e2e-20261027-gh40448182355-a15@paxpsychology.devYou're on the listSentView
04:28:28TC-A-15support@paxpsychology.devNewsletter subscription: TesterSentView
04:28:30TC-A-15e2e+e2e-20261027-gh40448182355-a15@paxpsychology.devYou're off the listSentView
04:28:31TC-C-76shared@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:29:07TC-P-12reschedule@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:29:18TC-P-12moves@paxpsychology.devAppointment rescheduled: Initial consultationSentView
04:29:18TC-P-12reschedule@paxpsychology.devAppointment rescheduled: Initial consultation with Casey MovesSentView
04:29:32TC-P-103confirms@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:29:47TC-C-52journal@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:29:55TC-C-51privacy@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:30:10TC-C-52test@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:30:28TC-P-21availability@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:30:40TC-C-52test@paxpsychology.devJules flagged a tough daySentView
04:30:58TC-C-07e2e+e2e-20261027-gh40448182355-c07@paxpsychology.devAppointment confirmation: Initial consultationSentView
04:30:58TC-C-07listing@paxpsychology.devNew appointment: Initial consultation with Test ClientSentView
04:30:58TC-C-07e2e+e2e-20261027-gh40448182355-c07@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
04:30:58TC-C-07listing@paxpsychology.devNew client booked inSentView
04:31:01TC-P-107listing@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:35TC-C-402fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:31:36TC-C-82swapper@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:37TC-C-402fa-client@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:39TC-C-82swapper@paxpsychology.devAppointment rescheduled: Initial consultationSentView
04:31:39TC-C-82swaps@paxpsychology.devAppointment rescheduled: Initial consultation with Jamie SwapperSentView
04:31:43TC-P-292fa-psych@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:46TC-C-82swaps@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:51TC-C-25account@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:31:52TC-C-412fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:31:53TC-C-412fa-client@paxpsychology.devA backup code was used on your accountSentView
04:31:56TC-C-412fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:32:00TC-C-422fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:32:03TC-C-83mobile@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:32:10TC-C-422fa-client@paxpsychology.devYour Pax Psychology sign-in codeSentView
04:32:11TC-C-26cards@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:32:34TC-C-116timezone@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:32:37TC-A-03e2e-client+e2e-20261027-gh40448182355-a03@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
04:32:52TC-A-04e2e-psych+e2e-20261027-gh40448182355-a04@paxpsychology.devWelcome to Pax Psychology: your psychologist account is readySentView
04:33:02TC-A-05e2e-client+e2e-20261027-gh40448182355-a05@paxpsychology.devWelcome to Pax Psychology: set up your accountSentView
04:33:18TC-A-232fa-setup@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:33:20TC-A-232fa-setup@paxpsychology.devTwo-step verification is onSentView
04:33:25TC-A-24admin@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:33:28TC-A-242fa-reset@paxpsychology.devTwo-step verification was reset on your accountSentView
04:33:33TC-A-242fa-reset@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:34:34TC-C-57resets@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:34:40TC-C-57resets@paxpsychology.devReset your Pax Psychology passwordSentView
04:34:44TC-C-57resets@paxpsychology.devYour Pax Psychology password's been changedSentView
04:35:05TC-C-58e2e+e2e-20261027-gh40448182355-c58@paxpsychology.devVerify your email address for Pax PsychologySentView
04:35:05TC-C-14client@paxpsychology.devReset your Pax Psychology passwordSentView
04:35:09TC-C-58e2e+e2e-20261027-gh40448182355-c58@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:35:36TC-C-34e2e+e2e-20261027-gh40448182355@paxpsychology.devVerify your email address for Pax PsychologySentView
04:35:36TC-C-34e2e+e2e-20261027-gh40448182355@paxpsychology.devVerify your email address for Pax PsychologySentView
04:35:41TC-C-90confirms@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:35:44TC-C-90confirms@paxpsychology.devAppointment confirmation: Initial consultationSentView
04:35:44TC-C-90proposes@paxpsychology.devCam Confirms confirmed: Initial consultationSentView
04:35:47TC-C-91declines@paxpsychology.devNew sign-in to your Pax Psychology accountSentView
04:35:52TC-C-91proposes@paxpsychology.devDrew Declines declined: Initial consultationSentView
04:35:57TC-C-92linked@paxpsychology.devNew sign-in to your Pax Psychology accountSentView