From e89cf3cddc7dada790af0c7cd4c6a16726a68370 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Mon, 1 Jul 2024 11:34:48 +0200 Subject: [PATCH] [SP] e2e test remove `force` from spelling test (#19195) * [SP] e2e test remove `force` from spelling test This was causing problems, as the button click didn't always have the expected effect. GitOrigin-RevId: e82e0052885a491a211c4cbe20435fb5981900f6 --- server-ce/test/editor.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server-ce/test/editor.spec.ts b/server-ce/test/editor.spec.ts index 65ab65d1ab..292691cafc 100644 --- a/server-ce/test/editor.spec.ts +++ b/server-ce/test/editor.spec.ts @@ -49,8 +49,11 @@ describe('editor', () => { cy.findByText(word) .parent() .within(() => cy.get('button').click()) + + // the modal has 2 close buttons, this ensures the one with the visible label is + // clicked, otherwise it would need `force: true` + cy.get('.btn').contains('Close').click() }) - cy.get('button').contains('Close').click({ force: true }) cy.log('close left panel') cy.get('[id="left-menu"]').type('{esc}')