diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 504acfd..067dc2e 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -138,7 +138,7 @@ function solveCaptcha() { } // Check whether we are at reviewBooking stage or not if yes keep on solving captcha - if (el[0].innerText.includes('Your ticket will be sent to') && !(el[0].innerText.includes('Please Wait...'))) { + if (el[0].innerText.includes('Your ticket will be sent to') && !(el[0].innerText.includes('Please Wait...')) && (el[0].innerText.includes('Enter Captcha'))) { if (MANUAL_CAPTCHA) {