Wait a little for Cypress to detect register button

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-15 18:14:19 +02:00
parent eef8ba516d
commit a78441bb25
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -15,6 +15,7 @@ describe('Login', () => {
cy.url().should('include', '/password-reset/send');
cy.go('back');
cy.wait(1000);
cy.get('form').contains('.control a.button', 'Register').click();
cy.url().should('include', '/register/user');