Skip to content

Commit

Permalink
Merge pull request #18 from ProcessMaker/newFunctionsLaunchPad
Browse files Browse the repository at this point in the history
added functions and selectors
  • Loading branch information
pablobarrososso authored Apr 29, 2024
2 parents 1fd9db4 + 44281da commit 42ae0d1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions helpers/navigationHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,14 @@ export class NavigationHelper {
cy.title().should('eq','Processes Catalogue - ProcessMaker');
}

navigateToScreenList(){
cy.visit('/designer/screens');
cy.title().should('eq','Screens - ProcessMaker');
}

selectLaunchScreen(screen){
cy.xpath(selectors.inputLaunchScreen).click({force:true}).clear();
cy.xpath(selectors.inputLaunchScreen).type(screen).should('have.value', screen);
cy.xpath(selectors.inputLaunchScreen).type('{enter}');
}
}
6 changes: 6 additions & 0 deletions pages/processLaunchpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,11 @@ export class ProcessLaunchpad {
cy.xpath(selectors.trashIcon).click();
cy.xpath(selectors.deleteVideo).click();
cy.xpath(selectors.embedMediaDeleteAlert).should('be.visible');
}

selectLaunchScreen(screen){
cy.xpath(selectors.inputLaunchScreen).click({force:true}).clear();
cy.xpath(selectors.inputLaunchScreen).type(screen).should('have.value', screen);
cy.xpath(selectors.inputLaunchScreen).type('{enter}');
}
}
6 changes: 4 additions & 2 deletions selectors/processLaunchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ export default {
videoLink: '(//div/i[@class="fas fa-link"])[1]',
trashIcon: '//div/i[@class="fas fa-trash-alt custom-trash-icon"]',
deleteVideo: '//div/button[@class="btn btn-delete-embed btns-popover"]',
embedMediaDeleteAlert: '//span[contains(text(), "The embed media was deleted")]'
}
embedMediaDeleteAlert: '//span[contains(text(), "The embed media was deleted")]',
inputLaunchScreen: '//div/input[@placeholder="Type to search Screen"]'
}

0 comments on commit 42ae0d1

Please sign in to comment.