Skip to content

Commit

Permalink
Merge pull request #228 from ProcessMaker/correctionsTaskPreviewPane
Browse files Browse the repository at this point in the history
correctionsFunctions
  • Loading branch information
pablobarrososso authored Sep 23, 2024
2 parents 2c59338 + 7dc720c commit ef6da06
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
20 changes: 13 additions & 7 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.215"
"@processmaker/cypress-utils": "^1.0.216"
}
}
4 changes: 2 additions & 2 deletions pages/taskPreviewPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import selectors from "#selectors/taskPreviewPane";

export class taskPreviewPane{
searchForTaskAndProcessFilterOneStatus(status){
cy.xpath(taskFilter).should('be.visible').click({force:true});
cy.xpath(selectors.taskFilter).should('be.visible').click({force:true});
cy.xpath('//select[@data-cy="value0"]').select(status);
cy.xpath(applyFilterButton)
cy.xpath(selectors.applyFilterButton)
.should('be.visible')
.click();
}
Expand Down
9 changes: 5 additions & 4 deletions pages/taskPreviewPaneExecution.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {NavigationHelper} from "#helpers/navigationHelper";
import {taskPreviewPane} from "#pages/taskPreviewPane";
import selectors from "#selectors/taskPreviewPane";

const navHelper = new NavigationHelper();
const taskPreview = new taskPreviewPane();
Expand All @@ -8,17 +9,17 @@ export class taskPreviewPaneExecution{
ExecutionTCP43112TaskA(){
navHelper.navigateToTasksPage();
searchForTaskAndProcessFilterOneStatus('Self Service');
cy.xpath(eyeTaskPreview.replace('task','Task Preview Pane A')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(eyeButton.replace('task','Task Preview Pane A')).eq(0).should('be.visible').click();
cy.xpath(selectors.eyeTaskPreview.replace('task','Task Preview Pane A')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','Task Preview Pane A')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('button').eq(0)
.should('be.visible')
.click({force:true});
navHelper.navigateToTasksPage();
searchForTaskAndProcessFilterOneStatus('In Progress');
cy.xpath(eyeTaskPreview.replace('task','Task Preview Pane A')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(eyeButton.replace('task','Task Preview Pane A')).eq(0).should('be.visible').click();
cy.xpath(selectors.eyeTaskPreview.replace('task','Task Preview Pane A')).eq(0).trigger('mouseover', {force:true}).invoke('show');
cy.xpath(selectors.eyeButton.replace('task','Task Preview Pane A')).eq(0).should('be.visible').click();
cy.frameLoaded(".iframe");
cy.iframe(".iframe")
.find('button').eq(0)
Expand Down

0 comments on commit ef6da06

Please sign in to comment.