fix a timing issue in a cypress test (#13603)
This commit is contained in:
parent
0c7cd1f3f8
commit
abe8492389
1 changed files with 9 additions and 8 deletions
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue