Quantcast
Channel: Active questions tagged strikethrough - Stack Overflow
Viewing all articles
Browse latest Browse all 86

How do I test text is struck out on the page

$
0
0

On my ecommerce page the price of an item is reduced.

It shows the old price struck out (600.00€) and the new price not struck out (499.00€).

But when I query the page, I just get the text value

cy.get('#normalprice span')  .invoke('text')  .should('eq', '600.00€`)

How do I test the text is struck out? I was expecting <s>600.00€</s> but cy.get('#normalprice span s') fails.


Viewing all articles
Browse latest Browse all 86

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>