()
| 329 | } |
| 330 | |
| 331 | function inspectSignupEntryState() { |
| 332 | const passwordInput = getSignupPasswordInput(); |
| 333 | if (isSignupPasswordPage() && passwordInput) { |
| 334 | return { |
| 335 | state: 'password_page', |
| 336 | passwordInput, |
| 337 | submitButton: getSignupPasswordSubmitButton({ allowDisabled: true }), |
| 338 | displayedEmail: getSignupPasswordDisplayedEmail(), |
| 339 | url: location.href, |
| 340 | }; |
| 341 | } |
| 342 | |
| 343 | const emailInput = getSignupEmailInput(); |
| 344 | if (emailInput) { |
| 345 | return { |
| 346 | state: 'email_entry', |
| 347 | emailInput, |
| 348 | continueButton: getSignupEmailContinueButton({ allowDisabled: true }), |
| 349 | url: location.href, |
| 350 | }; |
| 351 | } |
| 352 | |
| 353 | const signupTrigger = findSignupEntryTrigger(); |
| 354 | if (signupTrigger) { |
| 355 | return { |
| 356 | state: 'entry_home', |
| 357 | signupTrigger, |
| 358 | url: location.href, |
| 359 | }; |
| 360 | } |
| 361 | |
| 362 | return { |
| 363 | state: 'unknown', |
| 364 | url: location.href, |
| 365 | }; |
| 366 | } |
| 367 | |
| 368 | async function waitForSignupEntryState(options = {}) { |
| 369 | const { |
no test coverage detected