Skip to content

Commit

Permalink
Merge pull request #232 from ProcessMaker/executionPreviewPane
Browse files Browse the repository at this point in the history
modifications
  • Loading branch information
pablobarrososso authored Sep 24, 2024
2 parents 919e512 + 84823ad commit 9bfd4bc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 33 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.219"
"@processmaker/cypress-utils": "^1.0.220"
}
}
44 changes: 21 additions & 23 deletions pages/taskPreviewPaneExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,36 +137,34 @@ export class taskPreviewPaneExecution{
.click({ force: true });
}

ExecutionTCP43197TaskA(processName){
ExecutionTCP43197TaskA(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//a[contains(text(),"FormTaskA")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false;
});
cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('input').eq(0)
.type('test input',{force:true})
.should('have.value', 'test input')
.type('{enter}',{force:true});
cy.iframe('#tasksFrame1')
.find('button').eq(0)
.should('be.visible')
.click({force:true});
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(0)
.type('test input',{force:true})
.should('have.value', 'test input')
.type('{enter}',{force:true});
cy.iframe('.iframe')
.find('button').eq(0)
.should('be.visible')
.click({force:true});
}

ExecutionTCP43197TaskB(processName){
ExecutionTCP43197TaskB(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//a[contains(text(),"FormTaskB")]/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','FormTaskB')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','FormTaskB')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('input').eq(0)
.should('have.value', 'test input')
.type('{enter}',{force:true});
cy.iframe('#tasksFrame1')
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({force:true});
Expand Down

0 comments on commit 9bfd4bc

Please sign in to comment.