test: scroll modal close button into view before click

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-10-08 18:28:06 +05:30
parent 74031b3302
commit ae8b299f11

View File

@@ -47,7 +47,10 @@ export class _settingsPage {
}
closeMenu() {
cy.getActiveModal().find(".nc-modal-close").click({ force: true });
cy.getActiveModal()
.find(".nc-modal-close")
.scrollIntoView()
.click({ force: true });
}
openProjectMenu() {