Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobarrososso committed Sep 24, 2024
1 parent f152e11 commit 895e258
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 92 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.223"
"@processmaker/cypress-utils": "^1.0.224"
}
}
161 changes: 79 additions & 82 deletions pages/taskPreviewPaneExecution.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,92 +160,89 @@ export class taskPreviewPaneExecution{
.click({force:true});
}

ExecutionTCP43216FormTask(processName){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//a[contains(text(),"TCP43216FormTask")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false
});
cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('.multiselect__input').eq(0)
.type('International',{force:true})
.should('have.value', 'International')
.type('{enter}',{force:true});
cy.iframe('#tasksFrame1')
.find('div.form-group').eq(6)
.contains('Country');
cy.iframe('#tasksFrame1')
.find('.multiselect__input').eq(1)
.type('Brazil',{force:true})
.should('have.value', 'Brazil')
ExecutionTCP43216FormTask(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(selectors.eyeTaskPreview.replace('task','TCP43216FormTask')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','TCP43216FormTask')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('.multiselect__input').eq(0)
.type('International',{force:true})
.should('have.value', 'International')
.type('{enter}',{force:true});
cy.wait(3000);
cy.iframe('#tasksFrame1')
.find('.multiselect__input').eq(2)
.type('Acre',{force:true})
.should('have.value', 'Acre')
.type('{enter}',{force:true});
cy.iframe('#tasksFrame1')
.find('button').eq(0)
.should('be.visible')
.click({force:true});
cy.iframe(".iframe")
.find('div.form-group').eq(6)
.contains('Country');
cy.iframe(".iframe")
.find('.multiselect__input').eq(1)
.type('Brazil',{force:true})
.should('have.value', 'Brazil')
.type('{enter}',{force:true});
cy.wait(8000);
cy.iframe(".iframe")
.find('.multiselect__input').eq(2)
.type('Acre',{force:true})
.should('have.value', 'Acre')
.type('{enter}',{force:true});
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({force:true});
}

ExecutionTCP43216ManualTask(processName){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//a[contains(text(),"TCP43216ManualTask")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false
});
cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('p').eq(0)
.contains('international');
cy.iframe('#tasksFrame1')
.find('p').eq(1)
.contains('BR');
cy.iframe('#tasksFrame1')
.find('p').eq(2)
.contains('Acre');
cy.iframe('#tasksFrame1')
.find('p').eq(3)
.contains('AC');
cy.iframe('#tasksFrame1')
.find('button').eq(0)
.should('be.visible')
.click({force:true});
ExecutionTCP43216ManualTask(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(selectors.eyeTaskPreview.replace('task','TCP43216ManualTask')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','TCP43216ManualTask')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('p').eq(0)
.contains('international');
cy.iframe(".iframe")
.find('p').eq(1)
.contains('BR');
cy.iframe(".iframe")
.find('p').eq(2)
.contains('Acre');
cy.iframe(".iframe")
.find('p').eq(3)
.contains('AC');
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({force:true});
}

ExecutionTCP43216ConversationalTask(processName){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus(processName,'In Progress');
cy.xpath('(//a[contains(text(),"TCP43216ConversationalTask")]/ancestor::tr/td/span/i)[1]').click((err, runnable) => {
return false
});
cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('p').eq(0)
.contains('international');
cy.iframe('#tasksFrame1')
.find('p').eq(1)
.contains('BR');
cy.iframe('#tasksFrame1')
.find('p').eq(2)
.contains('Acre');
cy.iframe('#tasksFrame1')
.find('p').eq(3)
.contains('AC');
cy.iframe('#tasksFrame1')
cy.frameLoaded('#tasksFrame1');
cy.iframe('#tasksFrame1')
.find('input').eq(0)
.type('Bolivia',{force:true})
.should('have.value', 'Bolivia')
.type('{enter}',{force:true});
cy.iframe('#tasksFrame1')
.find('button').eq(0)
.should('be.visible')
.click({force:true});
ExecutionTCP43216ConversationalTask(){
navHelper.navigateToTasksPage();
taskPreview.searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(selectors.eyeTaskPreview.replace('task','TCP43216ConversationalTask')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','TCP43216ConversationalTask')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('p').eq(0)
.contains('international');
cy.iframe(".iframe")
.find('p').eq(1)
.contains('BR');
cy.iframe(".iframe")
.find('p').eq(2)
.contains('Acre');
cy.iframe(".iframe")
.find('p').eq(3)
.contains('AC');
cy.iframe(".iframe")
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('input').eq(0)
.type('Bolivia',{force:true})
.should('have.value', 'Bolivia')
.type('{enter}',{force:true});
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({force:true});
}
}

0 comments on commit 895e258

Please sign in to comment.