diff --git a/helpers/navigationHelper.js b/helpers/navigationHelper.js index 289a636..9fb7ce8 100644 --- a/helpers/navigationHelper.js +++ b/helpers/navigationHelper.js @@ -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}'); + } } diff --git a/pages/processLaunchpad.js b/pages/processLaunchpad.js index acff47d..2c0a458 100644 --- a/pages/processLaunchpad.js +++ b/pages/processLaunchpad.js @@ -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}'); } } diff --git a/selectors/processLaunchPad.js b/selectors/processLaunchPad.js index 4a33eab..ec80afc 100644 --- a/selectors/processLaunchPad.js +++ b/selectors/processLaunchPad.js @@ -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")]' -} \ No newline at end of file + embedMediaDeleteAlert: '//span[contains(text(), "The embed media was deleted")]', + inputLaunchScreen: '//div/input[@placeholder="Type to search Screen"]' +} +