Fix cypress tests

This commit is contained in:
Ramon Wenger 2021-08-13 17:34:17 +02:00
parent 27d3525ea5
commit 5bcf3c0f03
3 changed files with 3 additions and 5 deletions

View File

@ -10,7 +10,7 @@ const getOperations = ({readOnly = false, classReadOnly = false}) => ({
id: 'projectId',
final: false,
student: {
id: 'meId',
id: btoa('PrivateUserNode:1'),
},
entriesCount: 3,
},

View File

@ -7,7 +7,7 @@ const getOperations = ({readOnly = false, classReadOnly = false}) => ({
id: 'projectId',
final: false,
student: {
id: 'meId',
id: btoa('PrivateUserNode:1'),
},
entriesCount: 3,
entries: {

View File

@ -119,9 +119,7 @@ describe('School Class Management', () => {
});
cy.visit('/me/my-class');
cy.get('[data-cy=active-class-members-list]').within(() => {
cy.get('[data-cy=group-list-member]').should('have.length', 2);
});
cy.get('[data-cy=active-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();