DEV Community

Discussion on: How to fill out and submit forms with Cypress

Collapse
 
marcandre profile image
Marc-André Lafortune • Edited

All the .should('be.visible') are redundant as that is already checked by cypress, you should remove them. See docs.cypress.io/guides/core-concep... and docs.cypress.io/guides/core-concep... for details.

Also, finding inputs by ID is not recommended, best use labels. See docs.cypress.io/guides/references/...

Collapse
 
walmyrlimaesilv profile image
Walmyr

This is an extra caution I like to take, which the Cypress team actually recommends.
Watch this chat I had with Cecelia Martinez, Technical Account Manager at Cypress youtu.be/hXfTsdEXn0c