From f0fb84da875f34bac50f4bbe3f91ad6ae2a2e457 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 15 May 2024 18:02:01 +0200 Subject: [PATCH] Add wait statements to highlight tests --- client/cypress/e2e/frontend/modules/highlights.cy.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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';