From 7c93a86dc3b26f16340d742a7d8ca801bee037e2 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 7 Nov 2023 11:17:03 +0100 Subject: [PATCH] test(cypress): Wait for editor/reader being visible in page link tests Signed-off-by: Jonas --- cypress/e2e/pages-links.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/e2e/pages-links.spec.js b/cypress/e2e/pages-links.spec.js index 1b42cc81b9..11ee560338 100644 --- a/cypress/e2e/pages-links.spec.js +++ b/cypress/e2e/pages-links.spec.js @@ -106,10 +106,12 @@ describe('Page Link Handling', function() { // Change to edit mode cy.switchPageMode(1) cy.getEditor() + .should('be.visible') .find(`a[href="${href}"]`) .click() } else { cy.getReadOnlyEditor() + .should('be.visible') .find(`a[href="${href}"]`) .click() }