Skip to content

Commit

Permalink
test(cypress): Wait for editor/reader being visible in page link tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 7, 2023
1 parent 14636db commit 7c93a86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/pages-links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 7c93a86

Please sign in to comment.