Browse Source

fix: move add-phone detection from after step 6 to after step 7

The /add-phone page appears after verification code is accepted in
step 7, not after step 6 login. Move the check accordingly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chendeben 4 months ago
parent
commit
635755a5c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      background.js

+ 2 - 2
background.js

@@ -986,8 +986,9 @@ async function autoRunLoop(totalRuns) {
       await executeStepAndWait(4, 2000);
       await executeStepAndWait(5, 3000);
       await executeStepAndWait(6, 3000);
+      await executeStepAndWait(7, 2000);
 
-      // After login, check if page landed on add-phone again (not normal after step 5)
+      // After login+verification, check if page landed on add-phone (only expected after step 5, not here)
       const phoneCheckTabId = await getTabId('signup-page');
       if (phoneCheckTabId) {
         try {
@@ -1000,7 +1001,6 @@ async function autoRunLoop(totalRuns) {
         }
       }
 
-      await executeStepAndWait(7, 2000);
       await executeStepAndWait(8, 2000);
       await executeStepAndWait(9, 1000);