This function mounts the provided component in a PIP window. Caveats:
// On your test render the component
const chain = cy.mountPip((var1: any, var2: any) =>
<YourComponent propA={var1} propB={var2}/>
)
chain.remount("x", "pto");
// ... Do your cypress assertions
// If necessary, rerender with different props, keeping state
chain.remount("hello", "world");
Generated using TypeDoc
Checks if an element is visible in the viewport
OVERFLOW ELEMENTS CAN BE DETECTED AS VISIBLE IN THE VIEWPORT. TAKE CARE WHEN USING THIS FUNCTION