Translate them and handle difference between user not found and user not

confirmed

Closes #212

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-15 18:13:05 +02:00
parent ff064188e1
commit de9b26df2d
11 changed files with 78 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ describe('Login', () => {
cy.get('input[type=password]').type('badPassword').should('have.value', 'badPassword');
cy.contains('button.button.is-primary.is-large', 'Login').click();
cy.contains('.message.is-danger', 'User with email not found');
cy.contains('.message.is-danger', 'No user account with this email was found. Maybe you made a typo?');
});
it('Tries to login with valid credentials', () => {
@@ -56,7 +56,7 @@ describe('Login', () => {
cy.get('input[type=email]').type('unconfirmed@email.com');
cy.get('input[type=password]').type('some password');
cy.get('form').submit();
cy.contains('.message.is-danger', 'User with email not found');
cy.contains('.message.is-danger', 'The user account you\'re trying to login as has not been confirmed yet. Check your email inbox and eventually your spam folder.You may also ask to resend confirmation email.');
});
it('Tries to login with valid credentials, confirmed account but no profile', () => {