From adf514206513e0867c42e90abc830812241dab0a Mon Sep 17 00:00:00 2001 From: Vijetha-Kaja <119562824+Vijetha-Kaja@users.noreply.github.com> Date: Fri, 24 Mar 2023 14:07:55 +0530 Subject: [PATCH] test: Cypress - Modal_Focus spec to unblock CI (#21743) ## Description **Fixed below flaky tests as a trial to check if the spec is stable now in CI runs - since local runs are passing** - modal_focus_spec.js ## Type of change - Flaky test fix ## How Has This Been Tested? - Cypress test runs ## Checklist: ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test --- .../ClientSideTests/Widgets/Modal/Modal_focus_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Modal/Modal_focus_spec.js b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Modal/Modal_focus_spec.js index a10b564610..9f6b744d4a 100644 --- a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Modal/Modal_focus_spec.js +++ b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Modal/Modal_focus_spec.js @@ -63,6 +63,7 @@ describe("Modal focus", function () { cy.get(widgets.modalCloseButton).click({ force: true }); cy.get(widgets.modalCloseButton).should("not.be.visible"); + cy.wait(1500); //open the modal cy.get(widgets.widgetBtn).contains("Submit").click({ force: true }); //check if the focus is on the input field