Skip to content

Instantly share code, notes, and snippets.

@JimmyLv
Created January 20, 2021 09:33
Show Gist options
  • Select an option

  • Save JimmyLv/4bddf5f4275204765d8e3f75f31a41ad to your computer and use it in GitHub Desktop.

Select an option

Save JimmyLv/4bddf5f4275204765d8e3f75f31a41ad to your computer and use it in GitHub Desktop.
Created with Copy to Gist
cy.get('form')
.findByText('button', { name: /Button Text/i })
.should('exist')
cy.findByRole('dialog').within(() => {
cy.findByRole('button', { name: /confirm/i })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment