From c3585ce501344136d44fe51dff5489d248a4389a Mon Sep 17 00:00:00 2001 From: mayramelisa Date: Tue, 3 Dec 2024 10:05:36 -0400 Subject: [PATCH] fix --- pages/execution.js | 4 ++-- pages/saveSearch.js | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/pages/execution.js b/pages/execution.js index 5bd46d2..ee417a9 100644 --- a/pages/execution.js +++ b/pages/execution.js @@ -4666,8 +4666,8 @@ async actionsAndAssertionsOfTCP42332_4(taskName, process_id, subprocess_id, subp } fillFormTCP42234(value1,value2){ - cy.get('input[name="lineInputInteger"]').type(value1); - cy.get('input[name="lineInputPercentage"]').type(value2); + cy.get('input[name="lineInputInteger"]').type(value1,{delay:50}); + cy.get('input[name="lineInputPercentage"]').type(value2,{delay:50}); cy.get('button[aria-label="Submit"]').click(); cy.get('[class="alert d-none d-lg-block alertBox alert-dismissible alert-success"]').should('be.visible'); } diff --git a/pages/saveSearch.js b/pages/saveSearch.js index 82f51ea..f92d1d3 100644 --- a/pages/saveSearch.js +++ b/pages/saveSearch.js @@ -63,12 +63,7 @@ export class SaveSearchs { * @param {string} config.frequency - Frecuencia del reporte (daily, weekly, monthly) - Opcional * @param {string} config.time - Hora del envío (formato HH:mm) - Opcional */ - scheduledReports({ email, subject, body, frequency = 'daily', time = '09:00' }) { - // Validaciones básicas - if (!email || !subject || !body) { - throw new Error('Email, subject y body son campos requeridos'); - } - + scheduledReports(email, subject, body, frequency = 'daily', time = '09:00') { // Configurar el reporte programado cy.get(selectors.scheduled).should('be.visible').click(); cy.get(selectors.addscheduled).should('be.visible').click(); @@ -97,7 +92,7 @@ export class SaveSearchs { cy.xpath(selectors.closehour) .should('be.visible') .click(); - + cy.wait(1000); // Llenar formulario cy.xpath(selectors.sendto2) .first()