Writing disabled-state tests for a cascading form — and what I found when one failed
I wrote the test. It passed. And it lied to me.
The form
Booking form: specialty → doctor → day → time. A classic cascading select. Each step unlocks the next.
The mental model writes itself: pick a specialty, the doctor dropdown enables. Pick a doctor, the day selector enables. Pick a day — and only then — the time slot selector enables.






