Skip to content

feat(test): Enhance functional tests account cleanup function#19487

Merged
dschom merged 1 commit intomainfrom
FXA-12428
Sep 20, 2025
Merged

feat(test): Enhance functional tests account cleanup function#19487
dschom merged 1 commit intomainfrom
FXA-12428

Conversation

@vpomerleau
Copy link
Copy Markdown
Contributor

Because

  • Account cleanup should be able to handle unconfirmed accounts
  • Account cleanup should be able to handle required AAL elevation

This pull request

  • Update cleanup helper

Issue that this pull request solves

Closes: FXA-12428

Checklist

Put an x in the boxes that apply

  • 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).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

Because:

* Account cleanup should be able to handle unconfirmed accounts
* Account cleanup should be able to handle required AAL elevation

This commit:

* Update cleanup helper

Closes #FXA-12428
@vpomerleau vpomerleau requested a review from a team as a code owner September 19, 2025 21:50
// Helper function to verify account or session if needed
const verifyIfNeeded = async () => {
try {
await this.target.authClient.sessionResendVerifyCode(sessionToken);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should make a call to /session/status to see if we need to do this. See https://mozilla-hub.atlassian.net/browse/FXA-12433. I'll get a PR up for this in just a second.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't want to block on this though. The change does work. Let's clean this up later.

Copy link
Copy Markdown
Contributor

@dschom dschom left a comment

Choose a reason for hiding this comment

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

Thanks!

@dschom dschom merged commit 77a18e6 into main Sep 20, 2025
19 checks passed
@dschom dschom deleted the FXA-12428 branch September 20, 2025 01:44
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