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
This commit is contained in:
Otavio Bigogno
2026-01-12 16:22:16 -03:00
committed by GitHub
parent f0bee7db5d
commit 97c705cd7f
2 changed files with 5 additions and 3 deletions

View File

@@ -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"]'

View File

@@ -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'
)
}