ucsb-cs156-w24 / proj-gauchoride-w24-7pm-4

https://ucsb-cs156-w24.github.io/proj-gauchoride-w24-7pm-4/
0 stars 0 forks source link

FEATURE: Create DriverAvailabilityForm (Driver Availability) #16 #39

Closed dhwang154 closed 6 months ago

dhwang154 commented 6 months ago

I added the DriverAvailabilityForm.js, DriverAvailabilityForm.test.js, and storybook entries. Below includes screenshots of the tests.

Storybook:

Screenshot 2024-03-05 at 9 42 46 PM Screenshot 2024-03-05 at 9 42 54 PM

npm test:

npm test

npm run coverage:

npm run coverage

npx stryker run -m src/main/components/DriverAvailability/DriverAvailabilityForm.test.js:

mutation

This closes #16.

dhwang154 commented 6 months ago

Missing input regex for day and times

added regex for days and time (AM, PM) in form and test.

dhwang154 commented 6 months ago

image Message is confusing, should be different when the input is wrong, rather than just say that input is required

added new error message for both day, and start time and end time when the input is invalid.

Screenshot 2024-03-08 at 12 21 12 PM
notaryaman commented 6 months ago

LGTM