Fix flaky follow spec (#20673)

This commit is contained in:
Mac Siri 2024-02-28 11:45:53 -05:00 committed by GitHub
parent 78f9bec3e7
commit 1e90c7f714
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@ describe('Follow user from profile page', () => {
cy.get('@followButton').should('have.attr', 'aria-pressed', 'false');
cy.get('@followButton').click();
cy.wait('@followsRequest');
// Inner text should now be following
cy.get('@followButton').should('have.text', 'Following');
cy.get('@followButton').should('have.attr', 'aria-pressed', 'true');