We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c308744 commit e2b039cCopy full SHA for e2b039c
docs/cypress-testing-library/intro.mdx
@@ -58,9 +58,9 @@ cy.findByRole('button', {name: /Button Text/i}).should('exist')
58
cy.findByRole('button', {name: /Non-existing Button Text/i}).should('not.exist')
59
cy.findByLabelText(/Label text/i, {timeout: 7000}).should('exist')
60
61
-// findAllByText _inside_ a form element
+// findByRole _inside_ a form element
62
cy.get('form')
63
- .findByText('button', {name: /Button Text/i})
+ .findByRole('button', {name: /Button Text/i})
64
.should('exist')
65
cy.findByRole('dialog').within(() => {
66
cy.findByRole('button', {name: /confirm/i})
0 commit comments