@processmaker/cypress-utils
Advanced tools
Comparing version 1.0.398 to 1.0.399
{ | ||
"name": "@processmaker/cypress-utils", | ||
"version": "1.0.398", | ||
"version": "1.0.399", | ||
"description": "ProcessMaker Cypress Testing Utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,3 @@ import selectors from "#selectors/processLaunchPad"; | ||
cy.xpath(selectors.settings_saveConfiguration).click(); | ||
cy.wait(3000); | ||
cy.xpath(selectors.settings_saveConfiguration).should('not.exist',{ timeout: 15000 }); | ||
@@ -233,4 +234,7 @@ } | ||
selectLaunchScreen(screen){ | ||
cy.xpath(selectors.inputLaunchScreen).click({force:true}).clear(); | ||
cy.xpath(selectors.inputLaunchScreen).type(screen).should('have.value', screen); | ||
cy.xpath('//div/input[@placeholder="Type to search Screen"]/parent::*[@class="multiselect__tags"]').click(); | ||
cy.xpath(selectors.inputLaunchScreen).type(screen,{delay:100}).should('have.value', screen); | ||
cy.xpath(selectors.inputLaunchScreen).type(' ').type('{backspace}'); | ||
cy.wait(5000); | ||
//cy.xpath('//li[@aria-label="'+screen+'. "]').should('be.visible'); | ||
cy.xpath(selectors.inputLaunchScreen).type('{enter}'); | ||
@@ -250,2 +254,8 @@ } | ||
} | ||
verifyModalSettingsIsOpen(){ | ||
cy.xpath(selectors.modalSettings).should('be.visible'); | ||
cy.wait(5000); | ||
cy.xpath('//*[@aria-placeholder="Select Icon"]/parent::div//*[contains(@src,"/img/launchpad-images")]').should('be.visible'); | ||
cy.xpath('//*[contains(@class,"alert d-none d-lg-block")]').should('not.exist'); | ||
} | ||
} |
@@ -15,2 +15,3 @@ export default { | ||
publishSuccessAlert: '[class="alert d-none d-lg-block alertBox alert-dismissible alert-success"]', | ||
modalSettings: '//div[contains(@id,"launchpadSettingsModal")][@class="modal-body"]', | ||
@@ -17,0 +18,0 @@ launch_category: '//*[@class="menu"]//*[contains(text(),"category")]', |
1895393
34665