Skip to content
Discussion options

You must be logged in to vote

If you just want to confirm there is this text in the banner, use cy.contains command. It allows you to even specify the selector first.

cy.contains("[data-cy='bannerContentText']", 'About us text.')

I would also recommend watching the free Cypress courses at https://on.cypress.io/courses to see the basics of Cypress tests

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nicholas0983
Comment options

Answer selected by bahmutov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants