Browse Source
- passkey.spec.ts: add test exercising the post-verification
`if !user.enabled` gate in webauthn_login with a cryptographically
valid assertion. Complements the existing forged-handle test
(pre-verification path) by driving a real enrolled credential through
signature verification into the account-state gate; asserts on the
grant response (4xx + no access_token) rather than UI wording so the
check is robust against web-vault wording changes.
- 2fa.ts: rework `ensure2FAProvider`'s mount-grace probe to handle two
problems with the previous `Locator.isVisible` check. First,
`isVisible` is a one-shot check whose timeout only bounds the single
resolve, so an early call falls through to the switcher path before
the default input attaches. Second, the webauthn-connector iframe
auto-fires the WebAuthn ceremony as soon as it mounts and a virtual
authenticator with auto-presence completes it in milliseconds — so
by the time the helper runs the page may already have navigated past
`/#/2fa`, and both the iframe and the picker would time out on UI
that's no longer in the DOM. Add a URL pre-check that short-circuits
when the page has already left the 2FA route, and race the
`waitFor({ state: 'visible' })` probe against `waitForURL` for the
post-2FA landing so the helper catches both "iframe mounted" and
"ceremony already finished mid-mount" outcomes. Refresh the fido2
variant doc-comment to reflect that `submitTwoFactor` is now
implemented.
pull/7297/head
2 changed files with 124 additions and 3 deletions
Loading…
Reference in new issue