Fix cypress tests
This commit is contained in:
parent
d4063286fe
commit
647144511f
|
|
@ -17,7 +17,7 @@ describe('Login', () => {
|
||||||
return {
|
return {
|
||||||
login: {
|
login: {
|
||||||
errors: [],
|
errors: [],
|
||||||
message: "success",
|
message: 'success',
|
||||||
success: true
|
success: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -49,7 +49,7 @@ describe('Login', () => {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
status: 401,
|
status: 401,
|
||||||
response: {
|
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
|
url: checkPasswordUrl
|
||||||
});
|
});
|
||||||
|
|
@ -60,7 +60,7 @@ describe('Login', () => {
|
||||||
cy.get('[data-cy="login-title"]').contains('Bitte geben Sie das passende Passwort ein');
|
cy.get('[data-cy="login-title"]').contains('Bitte geben Sie das passende Passwort ein');
|
||||||
|
|
||||||
cy.enterPassword('abcd1234');
|
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', () => {
|
it('displays error message if input is not an email address', () => {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ describe('New student', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.visit('/');
|
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=input-class-code]').type('XXXX');
|
||||||
cy.get('[data-cy=join-class]').click();
|
cy.get('[data-cy=join-class]').click();
|
||||||
cy.skipOnboarding();
|
cy.skipOnboarding();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue