Add failing frontend test
This commit is contained in:
parent
e1e3b62807
commit
7c86338191
|
|
@ -48,4 +48,12 @@ describe('Snapshot', () => {
|
||||||
cy.getByDataCy('module-title').should('be.visible');
|
cy.getByDataCy('module-title').should('be.visible');
|
||||||
cy.getByDataCy('snapshot-menu').should('not.exist');
|
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');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class SnapshotManager(models.Manager):
|
||||||
snapshot.hidden_content_blocks.add(content_block)
|
snapshot.hidden_content_blocks.add(content_block)
|
||||||
for content_block in base_qs.filter(Q(user_created=True) & Q(owner=user)):
|
for content_block in base_qs.filter(Q(user_created=True) & Q(owner=user)):
|
||||||
new_content_block = ContentBlockSnapshot(
|
new_content_block = ContentBlockSnapshot(
|
||||||
hidden=content_block.is_hidden_for_class(school_class),
|
hidden=content_block.is_hidden_for_class(school_class),
|
||||||
snapshot=snapshot,
|
snapshot=snapshot,
|
||||||
contents=content_block.contents,
|
contents=content_block.contents,
|
||||||
type=content_block.type,
|
type=content_block.type,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue