Never Use The Page As The Source Of Truth (opens in new tab)
Imagine you are testing a web page showing the purchase receipt. When the user clicks on the "View Summary" button, a dialog pops up showing just the total amount paid cypress/e2e/receipt.c
Read the original article