Skip to content

Commit 4eb625e

Browse files
committed
removal of invisible overlay in testcase
1 parent 3267632 commit 4eb625e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

web/server/vue-cli/e2e/specs/reports.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -666,12 +666,16 @@ module.exports = {
666666

667667
reportPage.expect.element("@overlay").to.be.visible.before(5000);
668668

669-
// removeCleanupPlanDialog.click("@confirmBtn"); // trying xpath instead:
670-
browser
671-
.useXpath()
672-
.waitForElementVisible("/html/body/div/div[25]/div/div/div[3]/button[2]", 5000)
673-
.click("/html/body/div/div[25]/div/div/div[3]/button[2]")
674-
.useCss();
669+
// Remove overlay as it blocks the dialog
670+
browser.execute(function() {
671+
let overlay = document.querySelector(".v-overlay");
672+
if (overlay) {
673+
overlay.remove();
674+
}
675+
});
676+
browser.waitForElementNotPresent(".v-overlay__scrim", 5000);
677+
678+
removeCleanupPlanDialog.click("@confirmBtn");
675679

676680
dialogSection
677681
.waitForElementVisible("@emptyTable")

0 commit comments

Comments
 (0)