fix a timing issue in a cypress test (#13603)

This commit is contained in:
Suzanne Aitchison 2021-04-30 16:47:38 +01:00 committed by GitHub
parent 0c7cd1f3f8
commit abe8492389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,16 +58,17 @@ describe('Authentication Section', () => {
cy.findByLabelText('Facebook enabled').should('not.be.visible');
cy.findByLabelText('GitHub enabled').should('not.be.visible');
cy.findByLabelText('Twitter enabled').should('not.be.visible');
cy.visit('/signout_confirm');
cy.findByRole('button', { name: 'Yes, sign out' }).click();
cy.findByRole('link', { name: 'Create account' }).click();
cy.findByLabelText('Sign up with Email').should('not.exist');
cy.findByLabelText('Sign up with Facebook').should('not.exist');
cy.contains('invite only').should('be.visible');
});
});
cy.visit('/signout_confirm');
cy.findByText('Yes, sign out').click();
cy.findByText('Create account').click();
cy.findByLabelText('Sign up with Email').should('not.exist');
cy.findByLabelText('Sign up with Facebook').should('not.exist');
cy.contains('invite only').should('be.visible');
});
});