From 97c705cd7f80e3f849145b9b84c0e7fefd43bcc0 Mon Sep 17 00:00:00 2001 From: Otavio Bigogno <117870797+zBigzera@users.noreply.github.com> Date: Mon, 12 Jan 2026 16:22:16 -0300 Subject: [PATCH] Apply yellowBright color on LOGIN-PASSWORDLESS events for visibility and fixes mobile flow failed (need tests) (#442) * Apply yellowBright color on LOGIN-PASSWORDLESS events for visibility * Fix Mobile flow failed for abc@email.com: Request failed with status code 400 Fixes #441 --- src/browser/auth/Login.ts | 2 +- src/browser/auth/methods/PasswordlessLogin.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/browser/auth/Login.ts b/src/browser/auth/Login.ts index e3f3709..3c6bb2f 100644 --- a/src/browser/auth/Login.ts +++ b/src/browser/auth/Login.ts @@ -55,7 +55,7 @@ export class Login { totpInput: 'input[name="otc"]', totpInputOld: 'form[name="OneTimeCodeViewForm"]', identityBanner: '[data-testid="identityBanner"]', - viewFooter: '[data-testid="viewFooter"] span[role="button"] >> nth=-1', + viewFooter: '[data-testid="viewFooter"] >> [role="button"]', bingProfile: '#id_n', requestToken: 'input[name="__RequestVerificationToken"]', requestTokenMeta: 'meta[name="__RequestVerificationToken"]' diff --git a/src/browser/auth/methods/PasswordlessLogin.ts b/src/browser/auth/methods/PasswordlessLogin.ts index b2b4110..14be344 100644 --- a/src/browser/auth/methods/PasswordlessLogin.ts +++ b/src/browser/auth/methods/PasswordlessLogin.ts @@ -79,13 +79,15 @@ export class PasswordlessLogin { this.bot.logger.info( this.bot.isMobile, 'LOGIN-PASSWORDLESS', - `Please approve login and select number: ${displayedNumber}` + `Please approve login and select number: ${displayedNumber}`, + 'yellowBright' ) } else { this.bot.logger.info( this.bot.isMobile, 'LOGIN-PASSWORDLESS', - 'Please approve login on your authenticator app' + 'Please approve login on your authenticator app', + 'yellowBright' ) }