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()
}Discussion 0
Join free to post in the discussion.