diff --git a/package-lock.json b/package-lock.json index b146505..63a68ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.216", "license": "AGPL-3.0", "dependencies": { - "@processmaker/cypress-utils": "^1.0.215" + "@processmaker/cypress-utils": "^1.0.216" }, "devDependencies": { "@4tw/cypress-drag-drop": "^2.2.5", @@ -91,9 +91,12 @@ } }, "node_modules/@processmaker/cypress-utils": { - "version": "1.0.215", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.215.tgz", - "integrity": "sha512-pfq3QqcV96hLA02VDMpx1JDrTG8NiFLuP0XOtwoy111QMnUn/rUiAjVRurSx7i8cDo64Qmjwadv1OlslkHHveg==" + "version": "1.0.216", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.216.tgz", + "integrity": "sha512-6CXDXNokFj6kr0o41mlMvcYHhgur9UdwBFYCBLoBvi1f+YTPrdzmmmOpoFGVaaKkLk0UGZJnP2NVZrjZI5DN9Q==", + "dependencies": { + "@processmaker/cypress-utils": "^1.0.215" + } }, "node_modules/@types/node": { "version": "20.12.5", @@ -2341,9 +2344,12 @@ } }, "@processmaker/cypress-utils": { - "version": "1.0.215", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.215.tgz", - "integrity": "sha512-pfq3QqcV96hLA02VDMpx1JDrTG8NiFLuP0XOtwoy111QMnUn/rUiAjVRurSx7i8cDo64Qmjwadv1OlslkHHveg==" + "version": "1.0.216", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.216.tgz", + "integrity": "sha512-6CXDXNokFj6kr0o41mlMvcYHhgur9UdwBFYCBLoBvi1f+YTPrdzmmmOpoFGVaaKkLk0UGZJnP2NVZrjZI5DN9Q==", + "requires": { + "@processmaker/cypress-utils": "^1.0.215" + } }, "@types/node": { "version": "20.12.5", diff --git a/package.json b/package.json index 1dbea2d..a04e16b 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ "date-fns": "^3.6.0" }, "dependencies": { - "@processmaker/cypress-utils": "^1.0.215" + "@processmaker/cypress-utils": "^1.0.216" } } diff --git a/pages/taskPreviewPane.js b/pages/taskPreviewPane.js index 244ef78..92c5cdd 100644 --- a/pages/taskPreviewPane.js +++ b/pages/taskPreviewPane.js @@ -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(); } diff --git a/pages/taskPreviewPaneExecution.js b/pages/taskPreviewPaneExecution.js index 1b79601..be8e30a 100644 --- a/pages/taskPreviewPaneExecution.js +++ b/pages/taskPreviewPaneExecution.js @@ -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(); @@ -8,8 +9,8 @@ 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) @@ -17,8 +18,8 @@ export class taskPreviewPaneExecution{ .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)