Fix tests
This commit is contained in:
parent
03a977b974
commit
a33609e7b2
|
|
@ -44,7 +44,7 @@ describe('Email Verifcation', () => {
|
||||||
cy.mockGraphql({
|
cy.mockGraphql({
|
||||||
schema: schema,
|
schema: schema,
|
||||||
operations: {
|
operations: {
|
||||||
Coupon: new GraphQLError("invalid_coupon")
|
Coupon: new GraphQLError('invalid_coupon')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
cy.login('rahel.cueni', 'test', true)
|
cy.login('rahel.cueni', 'test', true)
|
||||||
|
|
@ -52,7 +52,7 @@ describe('Email Verifcation', () => {
|
||||||
|
|
||||||
cy.visit('/license-activation');
|
cy.visit('/license-activation');
|
||||||
cy.redeemCoupon('12345asfd');
|
cy.redeemCoupon('12345asfd');
|
||||||
cy.get('[data-cy="coupon-remote-errors"]').contains('Der angegebene Coupon-Code ist falsch.');
|
cy.get('[data-cy="coupon-remote-errors"]').contains('Der angegebene Coupon-Code ist ungültig.');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ describe('Email Verifcation', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.visit('/verify-email?confirmation=abcd1234&id=12');
|
cy.visit('/verify-email?confirmation=abcd1234&id=12');
|
||||||
cy.get('[data-cy="code-nok-msg"]').contains('Der angegebene Verifizierungscode ist falsch oder abgelaufen.');
|
cy.get('[data-cy="code-nok-msg"]').contains('Der angegebene Verifizierungscode ist ungültig oder abgelaufen.');
|
||||||
cy.get('[data-cy="code-ok-msg"]').should('not.exist');
|
cy.get('[data-cy="code-ok-msg"]').should('not.exist');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ describe('Registration', () => {
|
||||||
|
|
||||||
cy.get('[data-cy="registration-title"]').contains('Damit Sie mySkillbox verwenden können, müssen Sie ein Konto erstellen.');
|
cy.get('[data-cy="registration-title"]').contains('Damit Sie mySkillbox verwenden können, müssen Sie ein Konto erstellen.');
|
||||||
cy.register(registrationResponse.gender, registrationResponse.firstname, registrationResponse.lastname, 'Weg 1', 'Bern', '3001', 'Abcd1234!', 'Abcd1234!');
|
cy.register(registrationResponse.gender, registrationResponse.firstname, registrationResponse.lastname, 'Weg 1', 'Bern', '3001', 'Abcd1234!', 'Abcd1234!');
|
||||||
cy.get('[data-cy="email-check"]').contains('Ein Email ist auf dem Weg, bitte überprüfen sie ihre E-mail Konto.');
|
cy.get('[data-cy="email-check"]').contains('Eine Email ist auf dem Weg, bitte überprüfen sie ihre E-mail Konto.');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('displays error if firstname is missing', () => {
|
it('displays error if firstname is missing', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue