Unwanted test dependency with RAC Table #7853
Replies: 2 comments 3 replies
-
Thanks for the issue, unfortunately, I cannot get your test repo running the tests at all. I just ran
and got that the role=button could not be found. Can you either check that the repo runs or include more information about how the second test fails? |
Beta Was this translation helpful? Give feedback.
-
I updated package.json with forced versions of dependencies and remake package-lock.json. I have node version 22.14.0 and npm version 11.1.0
And after uncommenting lines 14, 15 and 16 in first test in Table.test.tsx the second text failed previously is passed also.
|
Beta Was this translation helpful? Give feedback.
-
I am not sure if this is a bug in RAC but I found a dependency that a test is dependent of another test.
I was able to reproduce this and created a public github repo for it:
https://github.com/henkkasoft/ractestdependency/blob/main/src/components/Table.test.tsx
So the first test is passing but the second is failing.
But if the first test's last 3 lines are uncommented the second test pass also.
This repo use RAC nightly build, so it is not official and with 1.6.0 this does not reproduce but I started to dig this because weird freezing test problems after testing RAC virtualizer and colspan.
Either I do something wrong or then there might be some async problem in RAC?
The idea was to get the test to fail because the freezing problems were even harder to reproduce / understand. So I am not sure if this failing problem here is the same as the freezing problem I originally started to investigate but this is at least some reproducible issue.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions