Skip to content

Commit ef19bc4

Browse files
author
FlopieUtd
authored
docs: update README.md (#111)
Add plausible use case for findAllByText.
1 parent 0b73b69 commit ef19bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ To show some simple examples (from
112112
cy.queryByText('Button Text').should('exist')
113113
cy.queryByText('Non-existing Button Text').should('not.exist')
114114
cy.queryByLabelText('Label text', {timeout: 7000}).should('exist')
115-
cy.findAllByText('Jackie Chan').click({multiple: true})
115+
cy.findAllByText('Jackie Chan').eq(0).click();
116116
cy.get('form').within(() => {
117117
cy.findByText('Button Text').should('exist')
118118
})

0 commit comments

Comments
 (0)