diff --git a/client/cypress/integration/frontend/rooms/room-page.spec.js b/client/cypress/integration/frontend/rooms/room-page.spec.js index 2edb349e..7cfa38c9 100644 --- a/client/cypress/integration/frontend/rooms/room-page.spec.js +++ b/client/cypress/integration/frontend/rooms/room-page.spec.js @@ -6,13 +6,13 @@ describe('The Room Page', () => { const slug = 'ein-historisches-festival'; const RoomEntriesQuery = { - room: { - slug, - roomEntries: { - edges: [], - }, + room: { + slug, + roomEntries: { + edges: [], }, - }; + }, + }; const operations = { MeQuery: getMinimalMe({}), @@ -61,7 +61,7 @@ describe('The Room Page', () => { cy.get('.room-entry__content:first').should('contain', entryText).should('contain', 'Rachel Green'); }); - it('changes visibility of a room', () => { + it.only('changes visibility of a room', () => { const MeQuery = getMinimalMe({ isTeacher: true }); @@ -75,10 +75,12 @@ describe('The Room Page', () => { }); cy.visit(`/room/${slug}`); + cy.getByDataCy('room-visibility-status').should('contain', 'alle Beiträge'); cy.getByDataCy('toggle-room-actions-menu').click(); cy.getByDataCy('change-visibility').click(); cy.getByDataCy('modal-title').should('contain', 'Sichtbarkeit anpassen'); cy.getByDataCy('select-option').eq(1).click(); cy.getByDataCy('modal-save-button').click(); + cy.getByDataCy('room-visibility-status').should('contain', 'eigenen Beiträge'); }); }); diff --git a/client/src/components/rooms/EntryCountWidget.vue b/client/src/components/rooms/EntryCountWidget.vue index 14274f11..934b9899 100644 --- a/client/src/components/rooms/EntryCountWidget.vue +++ b/client/src/components/rooms/EntryCountWidget.vue @@ -18,12 +18,13 @@ diff --git a/client/src/pages/room.vue b/client/src/pages/room.vue index ac03b858..0fd5b0c0 100644 --- a/client/src/pages/room.vue +++ b/client/src/pages/room.vue @@ -18,6 +18,7 @@ {{ room.description }}

+
@@ -44,11 +45,12 @@ import room from '@/mixins/room'; import me from '@/mixins/me'; import BackLink from '@/components/BackLink'; + import RoomVisibilityWidget from '@/components/rooms/RoomVisibilityWidget'; export default { props: ['slug'], mixins: [room, me], - components: {BackLink}, + components: {RoomVisibilityWidget, BackLink}, computed: { canEdit() {