diff --git a/client/cypress/integration/frontend/onboarding.spec.js b/client/cypress/integration/frontend/onboarding.spec.js index 3b9d3d64..13d5bd54 100644 --- a/client/cypress/integration/frontend/onboarding.spec.js +++ b/client/cypress/integration/frontend/onboarding.spec.js @@ -5,7 +5,7 @@ describe('Onboarding', () => { cy.setup(); }); - it.only('shows the onboarding steps and finishes them', () => { + it('shows the onboarding steps and finishes them', () => { let onboardingVisited = false; cy.mockGraphqlOps({ operations: { diff --git a/client/cypress/integration/frontend/rooms/room-page.spec.js b/client/cypress/integration/frontend/rooms/room-page.spec.js index 857f82e7..834396b0 100644 --- a/client/cypress/integration/frontend/rooms/room-page.spec.js +++ b/client/cypress/integration/frontend/rooms/room-page.spec.js @@ -239,7 +239,7 @@ describe('The Room Page', () => { cy.getByDataCy('add-room-entry-modal').should('exist'); }); - it.only('changes class while on room page', () => { + it('changes class while on room page', () => { const {me} = MeQuery; const operations = { MeQuery: { diff --git a/client/cypress/integration/frontend/rooms/rooms-page.spec.js b/client/cypress/integration/frontend/rooms/rooms-page.spec.js index 9ea65979..a14c7f86 100644 --- a/client/cypress/integration/frontend/rooms/rooms-page.spec.js +++ b/client/cypress/integration/frontend/rooms/rooms-page.spec.js @@ -9,7 +9,7 @@ describe('The Rooms Page', () => { { node: { schoolClass: { - id: 'selectedClassId', + id: btoa('SchoolClassNode:selectedClassId'), }, }, @@ -85,6 +85,7 @@ describe('The Rooms Page', () => { }); it('adds a room as teacher', () => { + const MeQuery = getMinimalMe({isTeacher: true}); const getRoom = (title, appearance, description) => { let id = title.toLowerCase().replace(' ', '-'); return { @@ -94,6 +95,7 @@ describe('The Rooms Page', () => { entryCount: 3, appearance: appearance, description: description, + schoolClass: MeQuery.me.selectedClass }; }; let rooms = [ @@ -101,7 +103,7 @@ describe('The Rooms Page', () => { ]; const operations = { - MeQuery: getMinimalMe({isTeacher: true}), + MeQuery, RoomsQuery() { return { rooms: { @@ -125,6 +127,7 @@ describe('The Rooms Page', () => { cy.visit('/rooms'); cy.getByDataCy('room-widget').should('have.length', 1); cy.getByDataCy('add-room').click(); + cy.getByDataCy('form-title').should('contain', 'Neuer Raum'); cy.getByDataCy('page-form-input-titel').type('Strg F'); cy.getByDataCy('school-class-select').should('not.exist'); cy.getByDataCy('color-select').eq(2).click(); diff --git a/client/src/components/page-form/PageForm.vue b/client/src/components/page-form/PageForm.vue index 191fc033..f0d960fe 100644 --- a/client/src/components/page-form/PageForm.vue +++ b/client/src/components/page-form/PageForm.vue @@ -4,7 +4,9 @@ class="page-form" @submit.prevent="$emit('save')">