diff --git a/client/cypress/integration/frontend/snapshots.spec.js b/client/cypress/integration/frontend/snapshots.spec.js index 8522af15..051f43d4 100644 --- a/client/cypress/integration/frontend/snapshots.spec.js +++ b/client/cypress/integration/frontend/snapshots.spec.js @@ -48,4 +48,12 @@ describe('Snapshot', () => { cy.getByDataCy('module-title').should('be.visible'); cy.getByDataCy('snapshot-menu').should('not.exist'); }); + + it('Applies Snapshot', () => { + cy.fakeLogin('nico.zickgraf', 'test'); + + cy.mockGraphqlOps(operations(true)); + cy.visit('module/miteinander-reden/snapshots'); + cy.get('Not Implemented'); + }); }); diff --git a/server/books/models/snapshot.py b/server/books/models/snapshot.py index 654fe9c3..e8cd4a52 100644 --- a/server/books/models/snapshot.py +++ b/server/books/models/snapshot.py @@ -55,7 +55,7 @@ class SnapshotManager(models.Manager): snapshot.hidden_content_blocks.add(content_block) for content_block in base_qs.filter(Q(user_created=True) & Q(owner=user)): new_content_block = ContentBlockSnapshot( - hidden=content_block.is_hidden_for_class(school_class), + hidden=content_block.is_hidden_for_class(school_class), snapshot=snapshot, contents=content_block.contents, type=content_block.type,