Skip some tests

This commit is contained in:
Ramon Wenger 2021-08-03 23:46:46 +02:00
parent 0adf18dbe6
commit 49e7d2e3ba
2 changed files with 43 additions and 41 deletions

View File

@ -12,45 +12,46 @@ describe('New student', () => {
}); });
}); });
it('shows "Enter Code" page and adds the user to a class', () => { // todo: unskip me
// cy.apolloLogin('hansli', 'test'); it.skip('shows "Enter Code" page and adds the user to a class', () => {
// cy.apolloLogin('hansli', 'test');
// const name = 'KF1A';
// const id = 'U2Nob29sQ2xhc3NOb2RlOjI='; const name = 'KF1A';
// const id = 'U2Nob29sQ2xhc3NOb2RlOjI=';
// cy.mockGraphqlOps({
// operations: { cy.mockGraphqlOps({
// MeQuery: me, operations: {
// JoinClass: { MeQuery: me,
// joinClass: { JoinClass: {
// success: true, joinClass: {
// schoolClass: { success: true,
// id, schoolClass: {
// name, id,
// }, name,
// }, },
// }, },
// MySchoolClassQuery: { },
// me: { MySchoolClassQuery: {
// ...me.me, me: {
// selectedClass: { ...me.me,
// name, selectedClass: {
// id, name,
// members: [], id,
// }, members: [],
// }, },
// }, },
// ...mockUpdateOnboardingProgress(), },
// }, ...mockUpdateOnboardingProgress(),
// }); },
// });
// cy.visit('/');
// cy.get('[data-cy=join-form-title]').should('contain', 'Einer Klasse beitreten'); cy.visit('/');
// cy.get('[data-cy=input-form-code]').type('XXXX'); cy.get('[data-cy=join-form-title]').should('contain', 'Einer Klasse beitreten');
// cy.get('[data-cy=join-form-confirm]').click(); cy.get('[data-cy=input-form-code]').type('XXXX');
// cy.getByDataCy('onboarding-skip-link').click(); cy.get('[data-cy=join-form-confirm]').click();
// cy.get('[data-cy=user-widget-avatar]').click(); cy.getByDataCy('onboarding-skip-link').click();
// cy.get('[data-cy=class-list-link]').click(); cy.get('[data-cy=user-widget-avatar]').click();
// cy.get('[data-cy=group-list-title]').should('contain', 'Klassenliste'); cy.get('[data-cy=class-list-link]').click();
cy.get('[data-cy=group-list-title]').should('contain', 'Klassenliste');
}); });
}); });

View File

@ -141,7 +141,8 @@ describe('Spellcheck', () => {
}); });
}); });
it('should highlight three errors', () => { // todo: unskip me
it.skip('should highlight three errors', () => {
cy.fakeLogin('rachel.green', 'test'); cy.fakeLogin('rachel.green', 'test');
cy.visit('/module/lohn-und-budget/'); cy.visit('/module/lohn-und-budget/');