Skip to content
RED SAGSkills
medium10 pts · first answer countscypresstest-automation

Cypress command values

Why does this Cypress code not work as the author expects?

const title = cy.get('h1').invoke('text')
if (title === 'Welcome') {
  cy.get('[data-cy=start]').click()
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions