Skip to content

Commit

Permalink
add function
Browse files Browse the repository at this point in the history
  • Loading branch information
PaolaPellegrini committed Jun 14, 2024
1 parent 4045439 commit b93aca0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pages/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand All @@ -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();
Expand Down

0 comments on commit b93aca0

Please sign in to comment.