Time:10-25
as described with comment, need to change value of var inside cypress function
CodePudding user response:
because of asynchronous nature of Cypress, the last statement should be written as follows:
cy.then(() => { cy.contains(`${total}`); })
Page link:https//www.codepudding.com/net/587896.html