Fix cypress tests

This commit is contained in:
Ramon Wenger 2020-07-22 14:49:45 +02:00
parent d4063286fe
commit 647144511f
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ describe('Login', () => {
return {
login: {
errors: [],
message: "success",
message: 'success',
success: true
}
}
@ -49,7 +49,7 @@ describe('Login', () => {
method: 'POST',
status: 401,
response: {
message: "Sie haben sich nicht korrekt eingeloggt oder Ihr Konto ist vor\u00fcbergehend deaktiviert."
message: 'Sie haben sich nicht korrekt eingeloggt oder Ihr Konto ist vor\u00fcbergehend deaktiviert.'
},
url: checkPasswordUrl
});
@ -60,7 +60,7 @@ describe('Login', () => {
cy.get('[data-cy="login-title"]').contains('Bitte geben Sie das passende Passwort ein');
cy.enterPassword('abcd1234');
cy.get('[data-cy="password-errors"]').contains('Sie haben sich nicht korrekt eingeloggt oder Ihr Konto ist vorübergehend deaktiviert.');
cy.get('[data-cy="password-errors"]').contains('Die von Ihnen eingegebene E-Mail-Adresse und das Passwort passen nicht zusammen.');
});
it('displays error message if input is not an email address', () => {

View File

@ -43,7 +43,7 @@ describe('New student', () => {
});
cy.visit('/');
cy.get('[data-cy=join-class-title]').should('contain', 'Zugangscode');
cy.get('[data-cy=join-class-title]').should('contain', 'Einer Klasse beitreten');
cy.get('[data-cy=input-class-code]').type('XXXX');
cy.get('[data-cy=join-class]').click();
cy.skipOnboarding();