Skip to content

Commit 829e5ff

Browse files
committed
fix: Simplify input field interaction example by consolidating commands
1 parent b4d3bc9 commit 829e5ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/app/core-concepts/best-practices.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,9 +1079,7 @@ While `then()` captures the element at that moment, Cypress commands within `the
10791079
describe('form interaction', () => {
10801080
it('updates input field correctly', () => {
10811081
cy.get('[data-cy="email-input"]').as('emailInput')
1082-
cy.get('@emailInput')
1083-
.should('be.visible')
1084-
.focus()
1082+
cy.get('@emailInput').should('be.visible').focus()
10851083
cy.get('@emailInput').clear()
10861084
cy.get('@emailInput')
10871085

0 commit comments

Comments
 (0)