-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(component-testing): ensure to call unmount after each test #15385
Conversation
Thanks for taking the time to open a PR!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
You would not want to do this in a |
@@ -52,15 +52,13 @@ export const AUT_IFRAME_MARGIN = { | |||
|
|||
const App: React.FC<AppProps> = observer( | |||
function App (props: AppProps) { | |||
const searchRef = React.createRef<HTMLInputElement>(null) | |||
const searchRef = React.useRef<HTMLInputElement>(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are those changes related to this fix?
Closes cypress-io.atlassian.net/browse/CT-318
User facing changelog
N/A
Additional details
We need to unmount the previous node when using Vite or strange things happen. We do this in beforeEach.
How has the user experience changed?
It works properly now.
PR Tasks
N/A