diff --git a/cypress/e2e/seededFlows/profileFlows/followOrganisation.spec.js b/cypress/e2e/seededFlows/profileFlows/followOrganisation.spec.js index 7da6e443a..eee8b6426 100644 --- a/cypress/e2e/seededFlows/profileFlows/followOrganisation.spec.js +++ b/cypress/e2e/seededFlows/profileFlows/followOrganisation.spec.js @@ -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');