it('displays the total amount', () => {
cy.get('#total-amount').contains('$100.00');
});
And here is what finally worked:
it('displays the total amount', () => {
cy.get('#total-amount').then(($elem) => {
assert($elem.text() === '$100.00');
});
});
0 comments:
Post a Comment