Files
libra/docs/tasks/manual-tests/24-5.md
T
2026-10-31 19:23:46 +02:00

23 lines
2.2 KiB
Markdown

# Manual tests — 24-5 Home Booking Card
> **QA 2026-10-31:** every acceptance criterion for this task was verified by command or in-browser measurement and the task is Done. The items below are visual-impression checks for Naser, not outstanding criteria.
Automated (passed 2026-10-31, `tests/Feature/Design/HomeBookingCardTest.php`, 11 tests): strip variant lists ≤14 bookable days,
selects the first and loads its slots, other days load theirs; none-message when nothing is bookable; the default `month`
variant is unchanged; compact form order (name, phone, email, day strip, slots, summary, captcha, submit, note); a guest booking
through the compact card creates one pending guest consultation and redirects to `/booking/success`; short summary, wrong
captcha, missing slot and a second booking for the same email/day each error and create nothing; logged-in client sees the
logged-in message and no form; `/` has `#book` with the finale balance; `/booking` is not compact; all keys in ar and en.
Existing suites run: `tests/Feature/Client`, `GuestBookingTest` (one pre-existing stale-copy failure: "guest booking page shows calendar").
UI loop (libra.test `/`): no horizontal scroll at 390/1440; the day strip scrolls inside the card (intended). After a
grid fix the 1440 render shows the form fully inside the cream panel.
- [ ] `/` bottom: forest card with title, text, phone, email, address and the balance on one side, cream form on the other.
- [ ] Click another day in the strip: its times appear; click a time: it turns gold.
- [ ] Complete a real booking from the card on a test day (fill all fields, captcha, Request, Confirm): lands on success page, email arrives. (Creates a real pending consultation — cancel it after.)
- [ ] Try a short summary, a wrong captcha answer, and no time: each shows an error, nothing is booked.
- [ ] Log in as a client and open `/`: the card shows the logged-in message and a link to the dashboard booking page.
- [ ] `/booking` and the client dashboard booking page still show the month calendar.
- [ ] Balance in the card: tipped at the top of the page, level when you scroll to the end.
- [ ] 390px: card is one column, day strip scrolls sideways inside the card, page does not.