Skip to content

Commit b743972

Browse files
chore: fix flaky spec.js test where elements were not visible (#31525)
1 parent 8bec9ce commit b743972

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/cypress/e2e/specs.cy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,8 @@ describe('App: Specs', () => {
647647
})
648648

649649
cy.contains('Review the docs')
650-
.should('have.attr', 'href', 'https://on.cypress.io/styling-components')
650+
.should('be.visible')
651+
.and('have.attr', 'href', 'https://on.cypress.io/styling-components')
651652

652653
cy.log('should not contain the link if you navigate away and back')
653654
cy.get('body').type('f')

0 commit comments

Comments
 (0)