diff --git a/client/cypress/e2e/frontend/modules/highlights.cy.ts b/client/cypress/e2e/frontend/modules/highlights.cy.ts index ca5778cc..2a3ab0eb 100644 --- a/client/cypress/e2e/frontend/modules/highlights.cy.ts +++ b/client/cypress/e2e/frontend/modules/highlights.cy.ts @@ -291,6 +291,8 @@ describe('Highlights', () => { }); cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); + markText(); const highlightedText = 'es ist ein'; @@ -331,6 +333,8 @@ describe('Highlights', () => { cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); + markText(); }); @@ -345,6 +349,7 @@ describe('Highlights', () => { }); cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); markText(); cy.getByDataCy('highlight-note').click(); @@ -358,6 +363,7 @@ describe('Highlights', () => { operations, }); cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); markText(); const highlightedText = 'es ist ein'; @@ -375,6 +381,7 @@ describe('Highlights', () => { operations: getOperations('ChapterNode'), }); cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); markText('chapter-intro'); const highlightedText = 'is is some'; @@ -393,6 +400,7 @@ describe('Highlights', () => { operations, }); cy.visit('/module/my-module'); + cy.wait('@ModuleDetailsQuery'); markText('module-intro'); const highlightedText = 'troducing';