@W-20224360 Passkey login E2E tests#3636
Conversation
- Consolidate passwordless login tests into a single describe block for better organization.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
- Introduced a new function `validatePasskeyLogin` in `pageHelpers.js` to simulate passkey authentication using a virtual authenticator. - Updated the registration and login functions to accept a `siteUrl` parameter for flexibility. - Added E2E tests for passkey login in both desktop and mobile test suites to ensure proper functionality.
| (route) => { | ||
| interceptedRequest = route.request() | ||
| route.continue() | ||
| describe('Passwordless login', () => { |
There was a problem hiding this comment.
the original tests are unchanged and have just been moved to describe blocks for organization
|
note: tests are failing in CI because we are using |
|
When I run the tests locally, I'm seeing that the test for both desktop and mobile are hanging at "Wait for event "response"". I'm also finding that sometimes the test shows it's passing, even when we never got the response from finishWebauthnAuth. Do you see any indication that the response has not been received on your end when you run the tests? Error: page.waitForResponse: Test timeout of 60000ms exceeded.
|
- Added retry logic to passkey login tests in both desktop and mobile test suites to handle authentication cooldowns.
|
@jeremy-jung1 i've added a timeout of 60s before the test runs again on a retry. The retries are already configured in To run the tests with retries we have to run in headless mode
|
- Removed unnecessary retry logic in passkey login tests for both desktop and mobile test suites. - Updated comments for clarity regarding the authentication cooldown period.
… seconds to work with passkey e2e tests
…s to 60 seconds, while overriding it to 70 seconds for specific passkey login tests to accommodate cooldown periods.

Description
Adds Passkey Login E2E Tests
Note:
Need to make a PR to update the
extra-features-e2e-branch(example PR)Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization