Add hours validation and test - #2488
Conversation
902f3a2 to
08f75c1
Compare
SAUMILDHANKAR
left a comment
There was a problem hiding this comment.
Thanks @junjun107 for the tests. This is my next learning assignment. 👍
Nit picky: For longitude validation, when I type 500 I get longitude must be less than or equal to -117.6462 and then I enter -500 to get longitude must be greater than or equal to -118.9517. It could be just me but if we prompt the user the limits every time maybe that can be easier?
Playwright tests as part of workflow seem to be passing. I will look into if we can run these tests manually as well.
|
Good point. @SAUMILDHANKAR I think error message with a range is more clear. Like this screenshot below |
|
Thank you. Looks good to me. |
|
Going to add a warning toast when there is any error on the page when user click on save progress button. |
|
Thanks @junjun107 This was much needed. Some places I have seen that once you click save it takes you to the place on the screen with the first validation error. Will that be helpful? We can discuss in the meeting and I can create an issue for that if we want or maybe there is already an issue for that I will check. |
|
Team Request: Change color of toast to warning |
|
Added info" | "warning" | "success" | "error" type to toast/Alert and matched them with theme color. |
916e81a to
96a6cf8
Compare
96a6cf8 to
fe3d499
Compare





Also updated test for longitude and latitude fail cases (long too low, too high, and lat too low, too high)