Closed ashleyryan closed 2 years ago
Fixes #5985
Fixes #6525:
Signed-off-by: Ashley Ryan asryan@vmware.com
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
Issue #5985 When rendering CdsSelect in jsdom (via react-testing-library), an exception will be thrown on render and all tests will fail.
CdsSelect
Issue #6525 The aria-reflect polyfill doesn't run in node because of jsdom exceptions, meaning react unit tests can't target elements by role
role
I repurposed the repo-clarity-proxy-set-disabled repo to test the fixes using RTL and they work now with yalc: https://github.com/ashleyryan/repro-clarity-proxy-set-disabled/blob/main/test.test.tsx
Fixes #5985
Fixes #6525:
Signed-off-by: Ashley Ryan asryan@vmware.com
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue #5985 When rendering
CdsSelect
in jsdom (via react-testing-library), an exception will be thrown on render and all tests will fail.Issue #6525 The aria-reflect polyfill doesn't run in node because of jsdom exceptions, meaning react unit tests can't target elements by
role
What is the new behavior?
Does this PR introduce a breaking change?
Other information