From 543a8337d19133368b2e0499446808f009910fa1 Mon Sep 17 00:00:00 2001 From: Sherlock Secure <52328067+sherlocksecurity@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:05:59 +0530 Subject: [PATCH] Fix Name Cropping Issue in filling passenger details This will fix the name cropping issue just by issuing delay in filling the name by 2 secs or 1 sec. --- cypress/e2e/irctc.cy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/irctc.cy.js b/cypress/e2e/irctc.cy.js index 67d8869..379b3be 100644 --- a/cypress/e2e/irctc.cy.js +++ b/cypress/e2e/irctc.cy.js @@ -148,6 +148,7 @@ describe('IRCTC TATKAL BOOKING', () => { // Check if the passenger object contains 'NAME' property if (PASSENGER && PASSENGER['NAME']) { cy.task("log", 'Passenger Filing STARTED......') + cy.wait(2000) // Clear the input field and set its value to the passenger's name cy.wrap(inputField).clear().type(PASSENGER['NAME']); } else { @@ -326,4 +327,4 @@ describe('IRCTC TATKAL BOOKING', () => { }) }) -// chrome://settings/content/siteDetails?site=https%3A%2F%2Fsecuregw.paytm.in \ No newline at end of file +// chrome://settings/content/siteDetails?site=https%3A%2F%2Fsecuregw.paytm.in