Skip to content

Commit

Permalink
PASSING ✓
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 8, 2024
1 parent bb689bf commit 9691619
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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

- name: Install Node.js and npm
uses: actions/setup-node@v4
Expand All @@ -36,6 +36,6 @@ jobs:
# continue-on-error: true
with:
browser: chrome
command: npx cypress run --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}}
command: npx cypress run --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}}


4 changes: 2 additions & 2 deletions cypress/e2e/irctc.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ describe('IRCTC TATKAL BOOKING', () => {
// https://securegw.paytm.in/theia/processTransaction?orderid=100004437462426

cy.wait("@payment", { timeout: 200000 }).then((interception) => {
cy.task("log", interception)
cy.task("log", interception.response.body)
console.log(interception)
console.log(interception.response.body)

// MAKE SURE UPI ID EXIST THEN PROCEED PLEASE FILL UPI_ID VALUE IN cypress/fixtures/passenger_data.json as something like this "123713278162@paytm"
if (UPI_ID) {
Expand Down
2 changes: 1 addition & 1 deletion cypress/fixtures/passenger_data.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"TRAIN_NO": "12274",
"TRAIN_COACH": "SL",
"TRAVEL_DATE": "16/04/2024",
"TRAVEL_DATE": "16/06/2024",
"SOURCE_STATION": "NDLS",
"BOARDING_STATION": null,
"DESTINATION_STATION": "PNBE",
Expand Down

0 comments on commit 9691619

Please sign in to comment.