diff --git a/ui.tests/test-module/specs/accordion/accordion.authoring.spec.js b/ui.tests/test-module/specs/accordion/accordion.authoring.spec.js index 0603b94f4d..c99dd9f7c0 100644 --- a/ui.tests/test-module/specs/accordion/accordion.authoring.spec.js +++ b/ui.tests/test-module/specs/accordion/accordion.authoring.spec.js @@ -66,7 +66,7 @@ describe('Page - Authoring', function () { cy.get("[name='./custom']") .should("exist"); - cy.get('.cq-dialog-cancel').should("exist").click({ force: true }).then(() => { + cy.get('.cq-dialog-cancel').should("exist").focus().click({ force: true }).then(() => { cy.get('.cq-dialog-cancel').should("not.exist").then(() => { cy.deleteComponentByPath(accordionDrop); });