diff --git a/client/cypress/e2e/frontend/modules/duplicate-content-block.cy.ts b/client/cypress/e2e/frontend/modules/duplicate-content-block.cy.ts index c8f23eaa..da497018 100644 --- a/client/cypress/e2e/frontend/modules/duplicate-content-block.cy.ts +++ b/client/cypress/e2e/frontend/modules/duplicate-content-block.cy.ts @@ -5,14 +5,56 @@ describe('Duplicate Content Block', () => { cy.setup(); }); it('works', () => { - cy.visit('/fron'); - const operations = { MeQuery: getMinimalMe({isTeacher: true}), + UpdateLastModule: {}, + ModuleEditModeQuery: { + module: { + } + }, + AssignmentQuery: { + assignment: { + title: 'Ein Assignment', + assignment: 'Eine Beschreibung' + } + }, + ModuleDetailsQuery: { + module: { + chapters: [ + { + contentBlocks: [ + { + type: 'normal', + title: 'Hello there', + contents: [ + { + type: 'text_block', + value: { + text: '
Asdf
' + } + }, + { + type: 'assignment', + value: { + title: 'Ein Auftrag', + assignment: 'Eine Beschreibung', + id: 'abcd' + } + } + + ] + } + ] + } + ] + } + } }; cy.mockGraphqlOps({ operations }); - cy.getByDataCy('whatever'); + cy.visit('/module/some-module'); + + cy.getByDataCy('toggle-editing').click(); }); });