describe('dropdown select', () => {
it('open dropdown and check if 24hr rate is positive', () => {
Cypress.on('uncaught:exception', (err, runnable) => {return false}) //it was throwing expections for me for unknown reason so I had to ignore it
cy.visit('link')
cy.get('[data-cy=accept-btn]').click()
cy.get('#currency-select').should('be.visible').click()
cy.get('[class=" css-zkvt1b-menu"]').should('be.visible').contains('EUR').click()
cy.get('[class="Yq Zq"]').each((el) => {
const text = el.text();
expect(text).to.be.greaterThan(0);
})
});
})
I am getting error checking of the number is greaterThan 0. Adding a picture of the error below: NOTE: the numbers are different in screenshots because they were taken few minutes apart.
Chrome code: