fix(booking): refresh date filter on calendar input
This commit is contained in:
parent
da3b074c98
commit
64ee909b3e
@ -93,7 +93,7 @@ try {
|
||||
|
||||
await act(async () => root.render(null));
|
||||
await render();
|
||||
await act(async () => Simulate.change(container.querySelector('input[type="date"]'), { target: { value: '2070-10-24' } }));
|
||||
await act(async () => Simulate.input(container.querySelector('input[type="date"]'), { target: { value: '2070-10-24' } }));
|
||||
assert.deepEqual([...container.querySelector('select').options].map((option) => option.value), ['', '2'], 'Only doctors free on the selected date appear');
|
||||
await chooseDoctor(2);
|
||||
await reply(pending.at(-1), [free('09:00'), { ...free('14:15'), start: '2070-10-24T14:15:00+03:00' }]);
|
||||
|
||||
@ -248,6 +248,7 @@ export default function LeadModal({ form = 'appointment', doctor, slot, service,
|
||||
type="date"
|
||||
min={todayKey()}
|
||||
value={date}
|
||||
onInput={changeDate}
|
||||
onChange={changeDate}
|
||||
/>
|
||||
<span className="lead-modal__subtitle">Можно выбрать дату и увидеть только свободных в этот день врачей.</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user