fix(e2e): mock reports API with shaped responses in navigation tests #47

Merged
ghost merged 1 commits from fix/e2e-reports-mock into main 2026-03-18 03:26:54 +00:00

1 Commits

Author SHA1 Message Date
Groom Book CTO 1bfa4a23cc fix(e2e): mock reports endpoints with shaped responses in navigation tests
The Reports page expects structured objects from the API (e.g. summary
with nested revenue/appointments fields, revenue with byPeriod/byGroomer,
etc.). Returning a bare [] caused runtime errors when the component
accessed properties like apptData.byPeriod, crashing the React tree and
making "Groom Book" disappear from the DOM on retries.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-18 03:20:58 +00:00