I am working on a progress bar.
I click on a button that initiates the progress bar Then I used waitUntill to wait till the progress bar (cyElement) is not visible I verify that a second control (cyElement2) is now visible
cy.waitUntil(()=> {
cy.get(cyElement).should('not.be.visible')
}).then(()=>{ cy.get(cyElement2).should('be.visible') });
The below code waits only 400ms to check if the progress bar (cyElement) is not visible. How do I make it wait longer ? Adding timeout=40000 will destroy the purpose of waitUntill.