Skip to content

test(functional-tests): add passwordless API functional tests#20196

Merged
vbudhram merged 1 commit intomainfrom
passwordless-api-tests
Mar 18, 2026
Merged

test(functional-tests): add passwordless API functional tests#20196
vbudhram merged 1 commit intomainfrom
passwordless-api-tests

Conversation

@vbudhram
Copy link
Contributor

Because

  • During the stage testing meeting this came out of the review

This pull request

  • Lets add some functional tests that exercise the passwordless flow api

Issue that this pull request solves

Closes: https://mozilla-hub.atlassian.net/browse/FXA-13281

Checklist

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

@vbudhram vbudhram requested a review from a team as a code owner March 16, 2026 18:14
@vbudhram vbudhram requested a review from StaberindeZA March 16, 2026 18:14
@vbudhram vbudhram force-pushed the passwordless-api-tests branch 3 times, most recently from 8160001 to 632048c Compare March 16, 2026 19:48
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import { expect, test } from '../../lib/fixtures/standard';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Should functional tests be testing the API?

Wouldn't unit tests be a better and less resource intensive fit for this kind of testing?

Copy link
Contributor Author

@vbudhram vbudhram Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should functional tests be testing the API?

Normally I would say its better to keep these as unit tests, but also sometimes good to have functional to test the entire flow. This is similar to our "remote" auth server tests except this is configurable to work on local/stage/prod.

They are a bit slower (1 to 2s) but maybe if its just a few to test core flows?

@StaberindeZA StaberindeZA self-requested a review March 17, 2026 17:18
Copy link
Contributor

@StaberindeZA StaberindeZA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@vbudhram vbudhram force-pushed the passwordless-api-tests branch 3 times, most recently from f83a39e to 2daaeec Compare March 18, 2026 01:33
@vbudhram vbudhram force-pushed the passwordless-api-tests branch from 2daaeec to 35dd30a Compare March 18, 2026 01:42
@vbudhram vbudhram merged commit 5d7f325 into main Mar 18, 2026
21 checks passed
@vbudhram vbudhram deleted the passwordless-api-tests branch March 18, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants