Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobarrososso committed Sep 26, 2024
1 parent fb2dc81 commit 600be3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"date-fns": "^3.6.0"
},
"dependencies": {
"@processmaker/cypress-utils": "^1.0.240"
"@processmaker/cypress-utils": "^1.0.243"
}
}
17 changes: 7 additions & 10 deletions pages/welcomeExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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()
Expand Down
14 changes: 7 additions & 7 deletions selectors/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 600be3b

Please sign in to comment.