chore: fix flaky spec.js test where elements were not visible (#31525)

This commit is contained in:
Jennifer Shehane
2025-04-16 13:14:03 -04:00
committed by GitHub
parent 8bec9ce31d
commit b743972f06

View File

@@ -647,7 +647,8 @@ describe('App: Specs', () => {
})
cy.contains('Review the docs')
.should('have.attr', 'href', 'https://on.cypress.io/styling-components')
.should('be.visible')
.and('have.attr', 'href', 'https://on.cypress.io/styling-components')
cy.log('should not contain the link if you navigate away and back')
cy.get('body').type('f')