lundi 30 décembre 2019

Cypress contains and cy.wait()

I've got some problem with Cypress and wait command: I am using similar to this code:

 const counter = cy.get('something')
        counter.contains('0') //OK
        const container = cy.xpath('something multiple').children()
        container.click({multiple:true})
        //cy.wait(200)
       counter.contains('3') //NOK

Only when I am using cy.wait() this code works. I've tried to use the internaltimeout for this code and it's not working. Only works when using cy.wait.

Aucun commentaire:

Enregistrer un commentaire