Skip to content

Commit

Permalink
MAX_ATTEMPT ADDED
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 17, 2024
1 parent 2fa32e8 commit 55d85c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,15 @@ function performLogin(LOGGED_IN) {
}



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


function solveCaptcha() {
// Max attempt for this function to fail
MAX_ATTEMPT -= 1
cy.wrap(MAX_ATTEMPT, { timeout: 10000 }).should('be.gt', 0);

cy.task("log", "Calling solveCaptcha() nth time")

cy.wait(500)
Expand Down

0 comments on commit 55d85c9

Please sign in to comment.