Dedicated automated testing page #810
andy-hook
started this conversation in
Documentation
Replies: 1 comment
-
Slider continues to have an issue using vitest even with the mock setup:
Clicking on a thumb will respond fine but still throws the
Mocking it:
in that setup prevents any callbacks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be helpful to provide some type of documentation regarding automated testing and primitives, especially with suites running
testing-library
anduser-event
. There are quite a few gotchas, especially common are pointer event firing problems and mocking layout specific browser apis asjsdom
struggles with these.Examples of common questions:
radix-ui/primitives#1382
radix-ui/primitives#1220
radix-ui/primitives#1207
radix-ui/primitives#1036
radix-ui/primitives#856
radix-ui/primitives#765
radix-ui/primitives#420
Document null during testing
radix-ui/primitives#1707
Beta Was this translation helpful? Give feedback.
All reactions