From 5cb3acbd081df9e7f348602143fd936825186496 Mon Sep 17 00:00:00 2001 From: ana Date: Wed, 18 Dec 2024 09:39:44 -0400 Subject: [PATCH] Update qualitilabs functions --- pages/specific.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pages/specific.js b/pages/specific.js index 8a6713c..6d1c186 100644 --- a/pages/specific.js +++ b/pages/specific.js @@ -206,11 +206,12 @@ export class Specific { ,{delay:100}); cy.xpath('(//input[@type="file"])[1]').attachFile("sample.pdf"); cy.get('.uploader-file-name').contains("sample.pdf"); + cy.xpath('(//input[@type="file"])[2]').attachFile('drone.jpg'); + cy.xpath('(//*[@class="uploader-file-name"])[2]').contains("drone.jpg"); cy.get('[data-cy="screen-field-form_input_2"]') .type('Este es solo un ejemplo Aqui se encuentra el contenido de la web' ,{delay:100}); - cy.xpath('(//input[@type="file"])[2]').attachFile('drone.jpg'); - cy.xpath('(//*[@class="uploader-file-name"])[2]').contains("drone.jpg"); + cy.wait(2000); cy.xpath('//button[text()[normalize-space()="New Submit"]]').click(); request.verifyTaskIsCompletedB(); @@ -230,10 +231,6 @@ export class Specific { request.verifyRequestisCompleted(requestId); cy.get('[id="file-manager-tab"]').should('be.visible').click(); cy.xpath('(//*[@title="View"])[3]').click(); - - //Step 4: requestpart___Quarter Scenario - navHelper.navigateToTasksPage(); - request.openNewRequest(processName); } actionsAndAssertionsOfTCP42078(requestId) {