How to test text inside the slide. #14705
-
Hi guys, sorry for asking for help, cy.get("[data-cy='bannerContentText']").contains('About us text.', { multiple: true }); I dont now how can start this. ` ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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.
I would also recommend watching the free Cypress courses at https://on.cypress.io/courses to see the basics of Cypress tests