Skip to content

Commit

Permalink
Merge pull request #77 from ProcessMaker/launchpad_fix
Browse files Browse the repository at this point in the history
Add some fixes to processLaunchpad.js
  • Loading branch information
ana-mauricio authored May 24, 2024
2 parents bad2b02 + 3c872fa commit b64c021
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pages/processLaunchpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,14 @@ export class ProcessLaunchpad {
cy.wait(2000);
}

searchProcess(nameProcess){
searchProcess(nameProcess,findProcess=true){
cy.get(selectors.launch_searchProcess).should("be.visible");
cy.get(selectors.launch_searchProcess).type(nameProcess).should("have.value",nameProcess);
cy.get(selectors.launch_searchProcessButton).click();
cy.xpath(selectors.launch_cardProcess.replace("processName",nameProcess)).should("be.visible");
if(findProcess)
cy.xpath(selectors.launch_cardProcess.replace("processName",nameProcess)).should("be.visible");
else
cy.xpath(selectors.launch_cardProcess.replace("processName",nameProcess)).should("not.exist");
}

unBookmarkIconSelect(process){
Expand Down

0 comments on commit b64c021

Please sign in to comment.