# Booking Flow Regression Matrix

Run this matrix after every release. Complete it on desktop and at 390px mobile width.

| Flow | Required result |
| --- | --- |
| Single / Any Staff | Service, options, Any Staff, date/time and confirmation complete without guest UI. |
| Single / named staff | Only valid times for that staff member are offered. |
| Multiple services for Me | Step 4 groups services under Me; reorder, edit and remove remain available. |
| Group / add service for Me | Returns to Add guests and services, preserving group intent. |
| Group / add guest | Each person retains their own service and staff selection; shared start time remains enforced. |
| Duplicate service | Add Anyway adds exactly one duplicate; Cancel adds none. |
| Back navigation | Existing choices are restored and an obsolete selected time is cleared when dependencies change. |
| Refresh/session restore | A recent in-progress booking restores safely; expired or incompatible state is discarded. |
| No availability | Clear recovery actions are offered for another date or staff. |
| Customer Portal | Upcoming/Past/Rebook work; Wallet displays only records belonging to the verified account. |
| Account actions | Pay now and Invoice appear only when a signed server action exists; Profile saves only to the verified client. |
| Loyalty redemption | Insufficient points fail; a successful redemption deducts once and writes a claim ledger entry. |
| Accessibility | Tab order is logical, focus is visible, controls have labels and reduced motion is respected. |

## Payment release gate (Pro)

Run every enabled gateway from the public booking form in its provider test environment. Interface/API tests alone do not satisfy this gate.

| Gateway scenario | Required result |
| --- | --- |
| Stripe successful deposit | Payment Element opens, confirms once, booking is created once, and the provider reference is stored. |
| Square successful deposit/full payment | Enabled wallet/card method captures the server-calculated amount and creates one booking. |
| PayPal successful deposit | PayPal button opens, the server creates and captures the order, and one booking is created with order/capture references. |
| Customer cancellation | Closing/cancelling the provider UI creates no booking and records no paid state. |
| Provider decline | A clear error is shown; no booking or paid state is created. |
| Timeout/retry | Retrying does not double-capture, create duplicate bookings, or reuse a payment reference. |
| Amount/currency tampering | Server verification rejects any browser-modified total, deposit, order ID, or currency. |
| Already-used reference | Reusing a Stripe intent, Square payment, or PayPal order is rejected. |
| Full and partial refund | Provider accepts the refund once and Yatoon updates the ledger and booking payment status. |

Before packaging, verify that every enqueued local asset exists and that no unreferenced build artifact duplicates an active production bundle byte-for-byte.

## 4.5.0 clock regression

- Create public, REST, staff-portal, recurring and Square-imported appointments while WordPress and MySQL use different timezones. Every row must contain PHP-written site-local `created_at` and UTC `created_at_gmt`; no live booking creation path may rely on MySQL `DEFAULT CURRENT_TIMESTAMP`.
- With `yatoon_schema_version=4.5.0`, remove two fields from the shared required-booking-column manifest and load WordPress. Confirm the independent audit restores them and records its completion marker only after every required field exists.

## 4.4.5 executed result

On the LocalWP release build, the automated browser journey passed Group appointment -> Add service for Me -> Add Anyway -> Add guests and services -> Continue -> Step 4. The two services remained grouped under Me, Add guest together remained available, technical timing offsets and orphan Yes text were absent, edit actions had accessible names, the 390px viewport had no horizontal overflow, the desktop-only Booking steps accordion was hidden on mobile, and no browser console errors were recorded.
