Reactjs – How to test if React component is returning null using Cypress component tests?
I'm trying to test a React component that conditionally renders null using Cypress component testing. Here's a simplified version of my component: const MyComponent = () => { if (someCondition) { return null; } return ( <div> {/* UI content…