From b93aca0c74dc1ec5338403ed1275b70a44910ef9 Mon Sep 17 00:00:00 2001 From: PaolaPellegrini <51709910+PaolaPellegrini@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:04:03 -0400 Subject: [PATCH] add function --- pages/requests.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/requests.js b/pages/requests.js index ab6fb22..da91b44 100644 --- a/pages/requests.js +++ b/pages/requests.js @@ -260,7 +260,7 @@ export class Requests { * @param attempts: it is not change * @return nothing returns */ - waitUntilElementIsVisible(type,selectorXPath,maxAttempts=15, attempts=0){ + waitUntilElementIsVisible(type,selectorXPath,maxAttempts=18, attempts=0){ if (attempts > maxAttempts) { throw new Error("Timed out waiting for report to be generated"); } @@ -282,10 +282,16 @@ export class Requests { // cy.xpath(selectors.requestInputOption.replace('processName', processName)).click(); // cy.xpath(selectors.completedTxt).should('be.visible'); } + openInPogressProcessInInProgress(processName){ + navHelper.navigateToInprogressRequests(); + this.addRequestNameToSelectList(processName); + cy.xpath(selectors.requestInputOption.replace('processName', processName)).click({force:true}); + } + openInPogressProcessInAllRequests(processName){ navHelper.navigateToAllRequests(); this.addRequestNameToSelectList(processName); - cy.xpath(selectors.requestInputOption.replace('processName', processName)).click(); + cy.xpath(selectors.requestInputOption.replace('processName', processName)).click({force:true}); } openAllRequestByName(processName) { navHelper.navigateToInprogressRequests();