Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive captcha panel should remain active until solved #22417

Closed
emerick opened this issue Apr 20, 2022 · 4 comments · Fixed by brave/brave-core#13188
Closed

Adaptive captcha panel should remain active until solved #22417

emerick opened this issue Apr 20, 2022 · 4 comments · Fixed by brave/brave-core#13188

Comments

@emerick
Copy link
Contributor

emerick commented Apr 20, 2022

If you receive an adaptive captcha notification and then accidentally close the Rewards panel before solving the captcha, the captcha is no longer displayed and you must wait for the next notification to solve it.

cc: @fmarier

@emerick emerick added OS/Android Fixes related to Android browser functionality OS/Desktop labels Apr 20, 2022
@Miyayes Miyayes added the priority/P3 The next thing for us to work on. It'll ride the trains. label Apr 20, 2022
@emerick emerick added QA/Yes release-notes/include and removed OS/Android Fixes related to Android browser functionality labels Apr 27, 2022
@emerick emerick added this to the 1.40.x - Nightly milestone Apr 28, 2022
@LaurenWags
Copy link
Member

Can be unblocked once https://bravesoftware.slack.com/archives/CB0KCRCQN/p1653423259020869 has an answer as this case needs to be checked as well.

@stephendonner stephendonner added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label May 31, 2022
@stephendonner
Copy link

stephendonner commented May 31, 2022

Verified PASSED using

Brave 1.40.80 Chromium: 102.0.5005.78 (Official Build) beta (x86_64)
Revision df6dbb5a9fd82af3f567198af2eb5fb4876ef99c-refs/branch-heads/5005_59@{#3}
OS macOS Version 11.6.6 (Build 20G624)

Successful captcha - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Solve Captcha
  8. Verify that success modal overlay displays in Rewards panel
  9. Dismiss success modal
  10. Close Rewards panel
  11. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays

Confirmed no adaptive captcha displayed on restart

example example example example example
Screen Shot 2022-05-31 at 2 54 04 PM Screen Shot 2022-05-31 at 2 52 30 PM Screen Shot 2022-05-31 at 2 54 16 PM Screen Shot 2022-05-31 at 2 54 19 PM Screen Shot 2022-05-31 at 2 54 38 PM

Rewards-icon disabled - PASSED

  1. installed 1.40.80
  2. launched Brave
  3. opened brave://settings/appearance
  4. toggled Show Brave Rewards icon in address bar to OFF/Disabled
  5. opened brave://rewards/ and clicked on Start using Rewards
  6. scheduled a captcha
  7. dwindled unblinded payment tokens
  8. waited for refill of tokens
  9. restarted Brave due to Unblinded tokens refill is not scheduled after captcha is solved #20131
  10. confirmed I saw the Solve / Later captcha dialog
  11. clicked on Later
  12. dwindled tokens to trigger refill
  13. restarted
  14. confirmed captcha reappeared
  15. clicked on Solve
  16. purposefully failed the captcha
  17. dwindled tokens
  18. restarted
  19. confirmed captcha reappeared
  20. successfully solved it
  21. dwindled tokens for refill
  22. scheduled a new captcha
  23. confirmed I got a new captcha
example example example example example example example example
Screen Shot 2022-06-01 at 10 36 15 AM Screen Shot 2022-06-01 at 10 36 03 AM Screen Shot 2022-06-01 at 10 01 41 AM Screen Shot 2022-06-01 at 10 11 23 AM Screen Shot 2022-06-01 at 10 11 28 AM Screen Shot 2022-06-01 at 10 14 56 AM Screen Shot 2022-06-01 at 10 15 01 AM Screen Shot 2022-06-01 at 10 16 23 AM

Exceeding max attempts - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Fail to solve captcha until "exceeded max attempts" error message displays
  8. Dismiss error modal (will display support page in new tab)
  9. Close Rewards panel
  10. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays
  11. Captchas are now paused until you reset failed_attempts and paused settings in Preferences file (support would typically do this, however)
example example example example example example
Screen Shot 2022-05-31 at 3 08 51 PM Screen Shot 2022-05-31 at 3 09 21 PM Screen Shot 2022-05-31 at 3 09 28 PM Screen Shot 2022-05-31 at 3 10 18 PM Screen Shot 2022-05-31 at 3 10 28 PM Screen Shot 2022-05-31 at 3 10 31 PM

Confirmed:

  • captchas were paused
  • Preferences file contained failed_attempts count of 10 and paused true status
failed_attempts - 10 paused - true
Screen Shot 2022-05-31 at 3 16 28 PM Screen Shot 2022-05-31 at 3 16 50 PM

Changed failed_attempts to 0 and paused to false in `Preferences, restarted, and re-issued a challenge

failed_attempts - 0 paused - false
Screen Shot 2022-05-31 at 3 22 02 PM Screen Shot 2022-05-31 at 3 22 16 PM

Confirmed I received an adaptive-captcha challenge again:

Screen Shot 2022-05-31 at 3 27 37 PM

@stephendonner stephendonner added QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels May 31, 2022
@MadhaviSeelam
Copy link

MadhaviSeelam commented Jun 3, 2022

Verification PASSED

Brave | 1.40.83 Chromium: 102.0.5005.78 (Official Build) beta (64-bit)
-- | --
Revision | df6dbb5a9fd82af3f567198af2eb5fb4876ef99c-refs/branch-heads/5005_59@{#3}
OS | Windows 11 Version 21H2 (Build 22000.675)

Successful captcha - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Solve Captcha
  8. Verify that success modal overlay displays in Rewards panel
  9. Dismiss success modal
  10. Close Rewards panel
  11. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays

Confirmed no adaptive captcha displayed on restart

Step3 Step7 Step7 Step8
Step 3 Step 7 Step 7 Step 8

Rewards-icon disabled - PASSED

  1. installed 1.40.83
  2. launched Brave
  3. opened brave://settings/appearance
  4. toggled Show Brave Rewards icon in address bar to OFF/Disabled
  5. opened brave://rewards/ and clicked on Start using Rewards
  6. scheduled a captcha
  7. dwindled unblinded payment tokens
  8. waited for refill of tokens
  9. restarted Brave due to Unblinded tokens refill is not scheduled after captcha is solved #20131
  10. confirmed I saw the Solve / Later captcha dialog
  11. clicked on Later
  12. dwindled tokens to trigger refill
  13. restarted
  14. confirmed captcha reappeared
  15. clicked on Solve
  16. purposefully failed the captcha
  17. dwindled tokens
  18. restarted
  19. confirmed captcha reappeared
  20. successfully solved it
  21. dwindled tokens for refill
  22. scheduled a new captcha
  23. confirmed I got a new captcha
Step4 Step10 Step15 Step19 Step20 Step22
Step4 Step10 Step15 Step19 Step20 Step23

Exceeding max attempts - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Fail to solve captcha until "exceeded max attempts" error message displays
  8. Dismiss error modal (will display support page in new tab)
  9. Close Rewards panel
  10. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays
  11. Captchas are now paused until you reset failed_attempts and paused settings in Preferences file (support would typically do this, however)
Step 1 Step 1 Step 4 Step 7 Step 8
Step 1 Step 1 Step 4 Step 7 Step 8

Confirmed:

  • captchas were paused
  • Preferences file contained failed_attempts count of 10 and paused true status
failed_attempts count of 10 paused true
failed_attempts paused

Changed failed_attempts to 0 and paused to false in `Preferences, restarted, and re-issued a challenge

failed_attempts to 0 paused to false
failed_attempts paused

Confirmed I received an adaptive-captcha challenge again

Able to solve the captcha successfully.

ex ex ex
ss1 ss1 ss3

@btlechowski
Copy link

Verification passed on

Brave 1.40.87 Chromium: 102.0.5005.78 (Official Build) beta (64-bit)
Revision df6dbb5a9fd82af3f567198af2eb5fb4876ef99c-refs/branch-heads/5005_59@{#3}
OS Ubuntu 18.04 LTS

Successful captcha - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Solve Captcha
  8. Verify that success modal overlay displays in Rewards panel
  9. Dismiss success modal
  10. Close Rewards panel
  11. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays

Confirmed no adaptive captcha displayed on restart

image
image
image
image
image
image

Rewards-icon disabled - PASSED

  1. installed 1.40.x
  2. launched Brave
  3. opened brave://settings/appearance
  4. toggled Show Brave Rewards icon in address bar to OFF/Disabled
  5. opened brave://rewards/ and clicked on Start using Rewards
  6. scheduled a captcha
  7. dwindled unblinded payment tokens
  8. waited for refill of tokens
  9. restarted Brave due to Unblinded tokens refill is not scheduled after captcha is solved #20131
  10. confirmed I saw the Solve / Later captcha dialog
  11. clicked on Later
  12. dwindled tokens to trigger refill
  13. restarted
  14. confirmed captcha reappeared
  15. clicked on Solve
  16. purposefully failed the captcha
  17. dwindled tokens
  18. restarted
  19. confirmed captcha reappeared
  20. successfully solved it
  21. dwindled tokens for refill
  22. scheduled a new captcha
  23. confirmed I got a new captcha

image
image
image
image

Exceeding max attempts - PASSED

  1. Schedule a new captcha
  2. Start the browser with --brave-ads-staging
  3. When captcha notification appears, click Solve
  4. Verify that adaptive captcha displays as overlay in Rewards panel
  5. Close Rewards panel
  6. Reopen Rewards panel and verify that adaptive captcha still displays
  7. Fail to solve captcha until "exceeded max attempts" error message displays
  8. Dismiss error modal (will display support page in new tab)
  9. Close Rewards panel
  10. Reopen Rewards panel and verify that no adaptive captcha-related overlay displays
  11. Captchas are now paused until you reset failed_attempts and paused settings in Preferences file (support would typically do this, however)

image
image
image
image
image
image

Confirmed:

  • captchas were paused
  • Preferences file contained failed_attempts count of 10 and paused true status

image

Changed failed_attempts to 0 and paused to false in `Preferences, restarted, and re-issued a challenge

image

Confirmed I received an adaptive-captcha challenge again:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants