diff --git a/package-lock.json b/package-lock.json index f42f19f..3313e45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.220", "license": "AGPL-3.0", "dependencies": { - "@processmaker/cypress-utils": "^1.0.219" + "@processmaker/cypress-utils": "^1.0.220" }, "devDependencies": { "@4tw/cypress-drag-drop": "^2.2.5", @@ -91,11 +91,11 @@ } }, "node_modules/@processmaker/cypress-utils": { - "version": "1.0.219", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.219.tgz", - "integrity": "sha512-RQUO1dkt6FzYLspRQXn2EX7xMMTNYP4h7jat9W55yiATu0G+qiRBU6fyBEbRSqtzqemPAEWAuil4Ueylp75gtQ==", + "version": "1.0.220", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.220.tgz", + "integrity": "sha512-YsG3rbHhTvQK2vEPXchVyvP1p11YHm98qMmJJ18tWuDYHsBh+OSbGEPyEozmTAIP27wJ9XJ2ZYqpTWcxR8AGtQ==", "dependencies": { - "@processmaker/cypress-utils": "^1.0.216" + "@processmaker/cypress-utils": "^1.0.219" } }, "node_modules/@types/node": { @@ -2344,11 +2344,11 @@ } }, "@processmaker/cypress-utils": { - "version": "1.0.219", - "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.219.tgz", - "integrity": "sha512-RQUO1dkt6FzYLspRQXn2EX7xMMTNYP4h7jat9W55yiATu0G+qiRBU6fyBEbRSqtzqemPAEWAuil4Ueylp75gtQ==", + "version": "1.0.220", + "resolved": "https://registry.npmjs.org/@processmaker/cypress-utils/-/cypress-utils-1.0.220.tgz", + "integrity": "sha512-YsG3rbHhTvQK2vEPXchVyvP1p11YHm98qMmJJ18tWuDYHsBh+OSbGEPyEozmTAIP27wJ9XJ2ZYqpTWcxR8AGtQ==", "requires": { - "@processmaker/cypress-utils": "^1.0.216" + "@processmaker/cypress-utils": "^1.0.219" } }, "@types/node": { diff --git a/package.json b/package.json index 81d65a1..a854fbb 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ "date-fns": "^3.6.0" }, "dependencies": { - "@processmaker/cypress-utils": "^1.0.219" + "@processmaker/cypress-utils": "^1.0.220" } } diff --git a/pages/taskPreviewPaneExecution.js b/pages/taskPreviewPaneExecution.js index 3d7f8df..231f922 100644 --- a/pages/taskPreviewPaneExecution.js +++ b/pages/taskPreviewPaneExecution.js @@ -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});