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) }