Disable cypress test
This commit is contained in:
parent
18d7025f26
commit
c4956445e8
|
|
@ -111,53 +111,55 @@ describe('Class Management', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should leave and re-join class', () => {
|
it('should leave and re-join class', () => {
|
||||||
const teacher = {
|
// todo: re-enable after the deactivation of users is re-enabled again
|
||||||
me: {
|
|
||||||
...me.me,
|
|
||||||
isTeacher: true
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const teacherSelectedClass = {
|
|
||||||
me: {
|
|
||||||
...selectedClass.me,
|
|
||||||
isTeacher: true
|
|
||||||
}
|
|
||||||
};
|
|
||||||
cy.mockGraphqlOps({
|
|
||||||
operations: {
|
|
||||||
MeQuery: teacher,
|
|
||||||
AddRemoveMember: {
|
|
||||||
addRemoveMember: {
|
|
||||||
success: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
MySchoolClassQuery: teacherSelectedClass
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cy.visit('/me/my-class');
|
// const teacher = {
|
||||||
cy.get('[data-cy=active-class-members-list]').within(() => {
|
// me: {
|
||||||
cy.get('[data-cy=school-class-member]').should('have.length', 2)
|
// ...me.me,
|
||||||
});
|
// isTeacher: true
|
||||||
cy.get('[data-cy=inactive-class-members-list]').should('not.exist');
|
// }
|
||||||
|
// };
|
||||||
cy.get('[data-cy=remove-from-class]').first().click();
|
// const teacherSelectedClass = {
|
||||||
|
// me: {
|
||||||
cy.get('[data-cy=modal-save-button]').click();
|
// ...selectedClass.me,
|
||||||
|
// isTeacher: true
|
||||||
cy.get('[data-cy=active-class-members-list]').within(() => {
|
// }
|
||||||
cy.get('[data-cy=school-class-member]').should('have.length', 1)
|
// };
|
||||||
});
|
// cy.mockGraphqlOps({
|
||||||
cy.get('[data-cy=inactive-class-members-list]').within(() => {
|
// operations: {
|
||||||
cy.get('[data-cy=school-class-member]').should('have.length', 1)
|
// MeQuery: teacher,
|
||||||
});
|
// AddRemoveMember: {
|
||||||
|
// addRemoveMember: {
|
||||||
cy.get('[data-cy=add-to-class]').first().click();
|
// success: true
|
||||||
|
// }
|
||||||
cy.get('[data-cy=active-class-members-list]').within(() => {
|
// },
|
||||||
cy.get('[data-cy=school-class-member]').should('have.length', 2)
|
// MySchoolClassQuery: teacherSelectedClass
|
||||||
});
|
// }
|
||||||
cy.get('[data-cy=inactive-class-members-list]').should('not.exist');
|
// });
|
||||||
|
//
|
||||||
|
// cy.visit('/me/my-class');
|
||||||
|
// cy.get('[data-cy=active-class-members-list]').within(() => {
|
||||||
|
// cy.get('[data-cy=school-class-member]').should('have.length', 2)
|
||||||
|
// });
|
||||||
|
// cy.get('[data-cy=inactive-class-members-list]').should('not.exist');
|
||||||
|
//
|
||||||
|
// cy.get('[data-cy=remove-from-class]').first().click();
|
||||||
|
//
|
||||||
|
// cy.get('[data-cy=modal-save-button]').click();
|
||||||
|
//
|
||||||
|
// cy.get('[data-cy=active-class-members-list]').within(() => {
|
||||||
|
// cy.get('[data-cy=school-class-member]').should('have.length', 1)
|
||||||
|
// });
|
||||||
|
// cy.get('[data-cy=inactive-class-members-list]').within(() => {
|
||||||
|
// cy.get('[data-cy=school-class-member]').should('have.length', 1)
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// cy.get('[data-cy=add-to-class]').first().click();
|
||||||
|
//
|
||||||
|
// cy.get('[data-cy=active-class-members-list]').within(() => {
|
||||||
|
// cy.get('[data-cy=school-class-member]').should('have.length', 2)
|
||||||
|
// });
|
||||||
|
// cy.get('[data-cy=inactive-class-members-list]').should('not.exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should display old classes', () => {
|
it('should display old classes', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue