Replies: 1 comment 4 replies
-
I think @LFDanLu might bight be interested in this since he has been working on aria test utils (Related: #7145) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm upgrading our date/time fields & pickers to use React Aria Component underneath, and they're much nicer to use.
The only issue is knowing how is best to input data during tests. We use Testing Library both within Jest and within Cypress.
What I've got down to is selecting each segment by
spinbutton
role, but that feels brittle because it doesn't account for different date formats.What I'd love it some way of selecting the overall field by its label, and then passing a
CalendarDateTime
instance to input it.I've tried looking in the
test-utils
package, but that doesn't look like it has anything to do with dates in.What would you reocmmend in my case?
Beta Was this translation helpful? Give feedback.
All reactions