diff --git a/package-lock.json b/package-lock.json index 6df5586..3479967 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.243", "license": "AGPL-3.0", "dependencies": { - "@processmaker/cypress-utils": "^1.0.240" + "@processmaker/cypress-utils": "^1.0.243" }, "devDependencies": { "@4tw/cypress-drag-drop": "^2.2.5", @@ -91,11 +91,11 @@ } }, "node_modules/@processmaker/cypress-utils": { - "version": "1.0.240", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.240.tgz", - "integrity": "sha512-apILLYZJXZIsALF15HeT2ML3ANihI8q/720v1Bu738SYRNgbxG1Ctjno2JKM/RcK+RalGpGnWGZsfs+Msgq+SA==", + "version": "1.0.243", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.243.tgz", + "integrity": "sha512-2Ob+QPmq3KzqX+7N40xHhBaFRq+5qCeCf8tzqfOduJ7TKAG6Uu6v0pFiWg/Q6k0aQdm0wmQe+iYrd7qxbpPZjA==", "dependencies": { - "@processmaker/cypress-utils": "^1.0.231" + "@processmaker/cypress-utils": "^1.0.240" } }, "node_modules/@types/node": { @@ -2344,11 +2344,11 @@ } }, "@processmaker/cypress-utils": { - "version": "1.0.240", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.240.tgz", - "integrity": "sha512-apILLYZJXZIsALF15HeT2ML3ANihI8q/720v1Bu738SYRNgbxG1Ctjno2JKM/RcK+RalGpGnWGZsfs+Msgq+SA==", + "version": "1.0.243", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.243.tgz", + "integrity": "sha512-2Ob+QPmq3KzqX+7N40xHhBaFRq+5qCeCf8tzqfOduJ7TKAG6Uu6v0pFiWg/Q6k0aQdm0wmQe+iYrd7qxbpPZjA==", "requires": { - "@processmaker/cypress-utils": "^1.0.231" + "@processmaker/cypress-utils": "^1.0.240" } }, "@types/node": { diff --git a/package.json b/package.json index 118b8c7..3ac14fe 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ "date-fns": "^3.6.0" }, "dependencies": { - "@processmaker/cypress-utils": "^1.0.240" + "@processmaker/cypress-utils": "^1.0.243" } } diff --git a/pages/welcomeExecution.js b/pages/welcomeExecution.js index 0922388..5469f59 100644 --- a/pages/welcomeExecution.js +++ b/pages/welcomeExecution.js @@ -51,11 +51,12 @@ export class welcomeExecution { verifyDefaultPageRecentAssetsFromMyProjects() { cy.xpath("//span[text()='Recent Assets']").should('be.visible'); } + // Welcome home: MY TASKS myTasks(processName) { cy.xpath(selectors.myTasks).should("be.visible"); cy.xpath(selectors.tasks).should("be.visible"); - cy.xpath(selectors.requests).should("be.visible"); + cy.xpath(selectors.case).should("be.visible"); cy.xpath(selectors.due).should("be.visible"); cy.xpath(selectors.menuTaskExpansion).should( "have.class", @@ -68,18 +69,14 @@ export class welcomeExecution { .type(processName) .should("have.value", processName) .type("{enter}"); - cy.xpath(selectors.eyeHardcoded) - .should("be.visible") - .click((err, runnable) => { - return false; - }); } + // Welcome home: MY REQUESTS myRequests(processName) { - cy.xpath(selectors.myRequests).should("be.visible"); - cy.xpath(selectors.numberRequest).should("be.visible"); - cy.xpath(selectors.nameRequest).should("be.visible"); - cy.xpath(selectors.statusRequest).should("be.visible"); + cy.xpath(selectors.myCases).should("be.visible"); + cy.xpath(selectors.numberCase).should("be.visible"); + cy.xpath(selectors.nameCase).should("be.visible"); + cy.xpath(selectors.statusCase).should("be.visible"); cy.xpath(selectors.searchRequest).should("be.visible").click(); cy.xpath(selectors.inputRequest) .click() diff --git a/selectors/welcome.js b/selectors/welcome.js index bc6df1e..335ff57 100644 --- a/selectors/welcome.js +++ b/selectors/welcome.js @@ -6,17 +6,17 @@ export default { assetsDecisionTables: '//p[contains(text(),"Decision Tables")]', assetsDataConnectors: '//p[contains(text(),"Data Connectors")]', myTasks: '//p[contains(text(),"My Tasks")]', - tasks: '//th[contains(text(),"Task")]', - requests: '//th[contains(text(),"Request")]', - due:'//th[contains(text(),"Due")]', + tasks: '//th/div/div/span[contains(text(),"Task")]', + case: '//th/div/div/span[contains(text(),"Case")]', + due:'//th/div/div/span[contains(text(),"Due")]', menuTaskExpansion: '(//div/a[@href="#"]/i)[1]', searchTask: '(//button/i[@class="fas fa-search"])[1]', inputTask: '//div/div/input[@class="form-control narrow-input"]', eyeHardcoded: '(//a[contains(text(),"A")]/ancestor::tr/td/span/i[@class="fa fa-eye"])[1]', - myRequests: '//p[contains(text(),"My Requests")]', - numberRequest: '//th[contains(text(),"#")]', - nameRequest: '//th[contains(text(),"Name")]', - statusRequest: '//th[contains(text(),"Status")]', + myCases: '//p[contains(text(),"My Cases")]', + numberCase: '//th/div[contains(text(),"Case #")]', + nameCase: '//th/div[contains(text(),"Case title")]', + statusCase: '//th/div[contains(text(),"Status")]', searchRequest: '(//button/i[@class="fas fa-search"])[2]', inputRequest: '//div/div/input[@class="form-control narrow-input"]', hrefRequestHarcoded: "//span[contains(text(),'processName')]/ancestor::tr/td/div/div/a",