From 99906bb1e21e626231045014f7f56eef7eb88d9b Mon Sep 17 00:00:00 2001 From: sakarora Date: Thu, 19 Oct 2023 16:30:52 +0530 Subject: [PATCH] Fixing flaky test. --- .../test-module/specs/accordion/accordion.authoring.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });