Missing root element prevents tests from working. #15792
-
I'm trying to write component tests for a React app with the following plugin setup; module.exports = (on, config) => {
require('@cypress/react/plugins/react-scripts')(on, config)
return config
} When I try to run my tests, I get an error message indicating that a root element is missing. Digging into the I'm not sure what's going on, nor how I can fix this. It seems like the Cypress suite isn't providing an element, and I don't know how to provide it myself. The only thing I can think of is that I'm using the wrong plugin, as my app is technically running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey! Sorry for the slow reply. I'll be focusing on answering discussions on a daily basis from now on. That line of code looks fine. How did you configure everything? Did you follow this blog post? I have a working example here. You could take a look at that. Alternatively, if you can share your repo, I can take a look and see what's going on. I'd recommend updating all the dependencies first, we've done a few releases in the last couple of weeks, fixing some bugs and improving performance. |
Beta Was this translation helpful? Give feedback.
Hey! Sorry for the slow reply. I'll be focusing on answering discussions on a daily basis from now on.
That line of code looks fine. How did you configure everything? Did you follow this blog post?
I have a working example here. You could take a look at that. Alternatively, if you can share your repo, I can take a look and see what's going on. I'd recommend updating all the dependencies first, we've done a few releases in the last couple of weeks, fixing some bugs and improving performance.