-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DatePicker] Add test for textbox aria-invalid #1955
[DatePicker] Add test for textbox aria-invalid #1955
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/mui-org/material-ui-pickers/7j4y5wbne |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this test case is definitely nice to have. Added a couple of comments how to make tests more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start :)
63cc2d5
to
295bfa0
Compare
@dmtrKovalenko, During a revert to an earlier commit my local git became out of sync and would not pull in changes from the next branch. I was unable to merge and ran a reset. While running tests with luxon and moment the test for valid after invalid fails with locale de. I can look into this further if you'd like. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left a few comments, we are almost there :).
60429fc
to
571a2a5
Compare
5ff363b
to
717ffd3
Compare
717ffd3
to
667397e
Compare
@@ -60,7 +60,7 @@ | |||
"test": "jest", | |||
"test:typescript": "yarn rimraf src/__tests__/dist && tsc -p src/__tests__/tsconfig.json", | |||
"test:date-fns": "UTILS=date-fns yarn test", | |||
"test:dayjs": "UTILS=datejs yarn test", | |||
"test:dayjs": "UTILS=dayjs yarn test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmtrKovalenko Dayjs tests were running with date-fns
28b8469
to
55976a5
Compare
55976a5
to
f109d6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this awesome tests!
Tests aria-invalid attribute on the DatePicker's input element when the locale is updated and the date becomes invalid through incorrect text input.
Add test test for Wrong value of isValid() when using DE #1895 (Fix/add locale to parse dmtrKovalenko/date-io#406)