Story 43.3. Restrict pick-up booking based on time and day

General info

User story

As Saclàb,
I want to automatically block unavailable pick-up times,
So that customers can only select valid dates and avoid potential scheduling conflicts.

Acceptance criteria

01

Scenario: Blocking next-day pick-up when booking after 1:30 PM

Given the user is booking a pick-up and the current time is after 1:30 PM

Then the next day should be blocked on the calendar window And the user should not be able to select it.

Screenshot 2024-10-08 at 02.29.21.png

(let’s say it’s monday the 7th at 14:00, I’m booking a pickup => the 8th should be blocked)

02

Scenario: Blocking Monday pick-up when booking on the weekend

Given the user is booking a pick-up and today is Friday after 3 PM, Saturday, or Sunday,
Then Monday should be blocked on the calendar window,
And the user should not be able to select it.

Comments

Leave a Reply