I have some amounts which I need to display. The amounts needs to be hovered and then they would show.
For example an amount may be +123 456,33
but in the code it is showing as like +123NNSP456,33
.
Now when I write my test, I am having to put
cy.get('.total-month').should('contain.text','+123NNSP456,33')
so that the test passed. If I test for what is being showed in the GUI like this
cy.get('.total-month').should('contain.text','+123 456,33')
it is not identifying the amount.
This is the html:
What am i doing wrong?