Skip to content

Commit

Permalink
using wait on UPI Tested...
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 10, 2024
1 parent 63bd4ab commit d1a873b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/irctc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: IRCTC Automation Booking
on:
push:
branches:
Expand All @@ -17,7 +18,6 @@ on:
required: true
type: string
description: "Your IRCTC Password"
name: "IRCTC Automation Booking ${{ inputs.BOOKING_DESC }}"
jobs:
IRCTC-Booking:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
uses: cypress-io/github-action@v6
with:
browser: chrome
command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --browser chrome --env USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}
command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --env USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}
2 changes: 1 addition & 1 deletion cypress/e2e/irctc.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ describe('IRCTC TATKAL BOOKING', () => {
if (UPI_ID) {
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()
cy.get(':nth-child(5) > section > .btn').click()
// Waiting For 2 Mins for the user to pay In Case --no-exit option is emitted
cy.wait(120000)

Expand Down

0 comments on commit d1a873b

Please sign in to comment.