You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.
What happened?
UI testing of iX components is not working with React Testing Library and Jest.
For example, testing text displayed by IxContentHeader did not work and produces following error: TestingLibraryElementError: Unable to find an element with the text:
After following instructions in code to produce this issue, you can see that:
Test case on text displayed with IxContentHeader is failed
Test case on text displayed with IxTypography is passed
What type of frontend framework are you seeing the problem on?
Please check your testing environment, the react components are no pure react components they use web components to render the content. You have to pierce through this layer IMO it is not necessary to test the internals of the ix components this should not be a part of your unit test.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What happened?
UI testing of iX components is not working with React Testing Library and Jest.
For example, testing text displayed by
IxContentHeader
did not work and produces following error:TestingLibraryElementError: Unable to find an element with the text:
After following instructions in code to produce this issue, you can see that:
IxContentHeader
is failedIxTypography
is passedWhat type of frontend framework are you seeing the problem on?
React
Which version of iX do you use?
v2.2.1
Code to produce this issue.
npm install
npm test
The text was updated successfully, but these errors were encountered: