Cypress has a declarative chaining syntax that pipes inputs and outputs. Most of the time, you don’t even need to deal with the values going through the chain.
A test isn’t given much thought until it fails. Tests should be written for the failure case. Cypress creates an outline in the GUI to help us understand setup and what a test does. Well written tests help us understand what failed…
In Cypress, common challenge is dealing with values. Cypress commands have a .then, but are not Promises, so the following will not work as expected: const $body = await cy.get('body').
const $body = await cy.get('body')