Add failing frontend test

This commit is contained in:
Ramon Wenger 2021-05-18 22:40:04 +02:00
parent e1e3b62807
commit 7c86338191
2 changed files with 9 additions and 1 deletions

View File

@ -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');
});
});

View File

@ -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,