From 3d490361e6d8beaa3f5cd67ce634f51968c6458d Mon Sep 17 00:00:00 2001 From: Shivam Pandey Date: Wed, 10 Apr 2024 13:12:39 +0530 Subject: [PATCH] wait on UPI ID --- .github/workflows/irctc.yml | 2 ++ cypress/e2e/irctc.cy.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/irctc.yml b/.github/workflows/irctc.yml index 6a723f0..7142648 100644 --- a/.github/workflows/irctc.yml +++ b/.github/workflows/irctc.yml @@ -28,6 +28,8 @@ jobs: - run: | pip install -r irctc-captcha-solver/requirements.txt python3 irctc-captcha-solver/app.py "" # python3 irctc-captcha-solver/app.py "" is used for models to load before starting tatkal tickets + PASSWORD=$(jq -r '.inputs.PASSWORD' $GITHUB_EVENT_PATH) + USERNAME=$(jq -r '.inputs.USERNAME' $GITHUB_EVENT_PATH) echo ::add-mask::$PASSWORD echo ::add-mask::$USERNAME echo PASSWORD=$PASSWORD >> $GITHUB_ENV diff --git a/cypress/e2e/irctc.cy.js b/cypress/e2e/irctc.cy.js index 6efa14f..32ebe8b 100644 --- a/cypress/e2e/irctc.cy.js +++ b/cypress/e2e/irctc.cy.js @@ -232,6 +232,8 @@ describe('IRCTC TATKAL BOOKING', () => { cy.get('#ptm-upi').click() cy.get('.brdr-box > :nth-child(2) > ._1WLd > :nth-child(1) > .xs-hover-box > ._Mzth > .form-ctrl').type(UPI_ID) cy.get('.btn').click() + // Waiting For 2 Mins for the user to pay In Case --no-exit option is emitted + cy.wait(120000) }