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
This commit is contained in:
Vijetha-Kaja 2023-03-24 14:07:55 +05:30 committed by GitHub
parent 9a135b961a
commit adf5142065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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