Skip to content

Commit

Permalink
Merge pull request #235 from ProcessMaker/functions3198
Browse files Browse the repository at this point in the history
commit
  • Loading branch information
pablobarrososso authored Sep 24, 2024
2 parents 392f093 + 7ebe349 commit 504c3cf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 37 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.220"
"@processmaker/cypress-utils": "^1.0.223"
}
}
44 changes: 17 additions & 27 deletions pages/taskPreviewPaneExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,49 +92,39 @@ export class taskPreviewPaneExecution{
.click({force:true});
}

ExecutionTCP43198TaskA(processName){
ExecutionTCP43198TaskA(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//td[contains(text(),"In Progress")])[1]').should('be.visible');
cy.xpath('(//a[contains(text(),"FormTaskA")]/ancestor::tr/td/span/i)[1]')
.should('be.visible');
cy.xpath('(//a[contains(text(),"FormTaskA")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false
});

cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
taskPreview.searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(selectors.eyeTaskPreview.replace('task','FormTaskA')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','FormTaskA')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('input').eq(1)
.should('be.visible')
.type("test", { force: true })
.should('have.value', 'test')
.type("{enter}", { force: true });
cy.iframe('#tasksFrame1')
cy.iframe(".iframe")
.find('textarea').eq(0)
.should('be.visible')
.type('test123',{force:true})
.should('have.value', 'test123')
cy.iframe('#tasksFrame1')
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({ force: true });
}

ExecutionTCP43198TaskManual(processName){
ExecutionTCP43198TaskManual(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//td[contains(text(),"In Progress")])[1]').should('be.visible');
cy.xpath('(//a[contains(text(),"ManualTaskA")]/ancestor::tr/td/span/i)[1]')
.should('be.visible');
cy.xpath('(//a[contains(text(),"ManualTaskA")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false
});

cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('button').eq(0)
.should('be.visible')
.click({ force: true });
taskPreview.searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(selectors.eyeTaskPreview.replace('task','ManualTaskA')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','ManualTaskA')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({ force: true });
}

ExecutionTCP43197TaskA(){
Expand Down

0 comments on commit 504c3cf

Please sign in to comment.