Skip to content

Commit

Permalink
MAX_ATTEMPT decreased to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 17, 2024
1 parent 55d85c9 commit 30c3d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cypress/fixtures/passenger_data.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"TRAIN_NO": "15053",
"TRAIN_COACH": "SL",
"TRAVEL_DATE": "14/05/2024",
"SOURCE_STATION": "GCT",
"TRAIN_NO": "18464",
"TRAIN_COACH": "2A",
"TRAVEL_DATE": "07/05/2024",
"SOURCE_STATION": "DHNE",
"BOARDING_STATION": null,
"DESTINATION_STATION": "BSB",
"DESTINATION_STATION": "BBS",
"TATKAL": false,
"UPI_ID_CONFIG": "",
"PASSENGER_DETAILS": [
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function performLogin(LOGGED_IN) {
}


let MAX_ATTEMPT = 200
let MAX_ATTEMPT = 100
// function to solveCaptcha after logging in


Expand All @@ -123,7 +123,7 @@ function solveCaptcha() {
MAX_ATTEMPT -= 1
cy.wrap(MAX_ATTEMPT, { timeout: 10000 }).should('be.gt', 0);

cy.task("log", "Calling solveCaptcha() nth time")
cy.task("log", `Calling solveCaptcha() ${MAX_ATTEMPT}th time`)

cy.wait(500)
cy.get('body').should('be.visible').then((el) => {
Expand Down

0 comments on commit 30c3d98

Please sign in to comment.