diff --git a/client/cypress/integration/frontend/school-class-management.spec.js b/client/cypress/integration/frontend/school-class-management.spec.js index 3aab4f63..58679d62 100644 --- a/client/cypress/integration/frontend/school-class-management.spec.js +++ b/client/cypress/integration/frontend/school-class-management.spec.js @@ -199,7 +199,7 @@ describe('Teacher Class Management', () => { cy.get('[data-cy=group-list-name]').should('contain', className); }); - it('removes student, then leaves class', () => { + it('removes student, then leaves class, then rejoins', () => { const myId = btoa('PrivateUserNode:1'); const memberId = btoa('GroupMemberNode:1'); let classMembers = [ @@ -245,6 +245,8 @@ describe('Teacher Class Management', () => { cy.getByDataCy('modal-body-text').should('contain', 'verlassen'); cy.getByDataCy('modal-save-button').click(); cy.getByDataCy('active-member').should('have.length', 1); + cy.getByDataCy('rejoin-class').click(); + cy.getByDataCy('active-member').should('have.length', 2); }); it('creates a new class', () => { diff --git a/client/src/components/profile/GroupList.vue b/client/src/components/profile/GroupList.vue index 6597cbfb..2516fd96 100644 --- a/client/src/components/profile/GroupList.vue +++ b/client/src/components/profile/GroupList.vue @@ -58,6 +58,11 @@ data-cy="add-to-class" v-if="canEdit && enableDeactivate" @click="$emit('add', member)">Aktivieren + Aktivieren