Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Preventing a routechange to the Metametrics Onboarding page on wallet creation #25344

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

vthomas13
Copy link
Contributor

@vthomas13 vthomas13 commented Jun 14, 2024

Description

https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/87368/workflows/69e4b630-e6bd-4f75-a4ed-b95c3f52708d/jobs/3197847/tests
This PR aims to fix the flakiness in tests that get stuck at the password creation screen. This problem & solution is similar to #24874

Open in GitHub Codespaces

Related issues

Fixes: TimeoutError: Waiting for element to be located By(css selector, [data-testid="create-password-new"])

Manual testing steps

  1. Run the test "Clicks create a new wallet, accepts a secure password, reveals the Secret Recovery Phrase, confirm SRP"
  2. Confirm that the test does not fail because of that reroute

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@vthomas13 vthomas13 requested review from a team as code owners June 14, 2024 22:26
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@vthomas13 vthomas13 changed the title Preventing a reroute to the Metametrics Onboarding page on wallet creation fix: Preventing a routechange to the Metametrics Onboarding page on wallet creation Jun 20, 2024
@vthomas13 vthomas13 force-pushed the new-password-create-wallet-flaky branch 2 times, most recently from 0ca49c1 to 80a9970 Compare June 20, 2024 18:46
@hjetpoluru hjetpoluru self-requested a review June 21, 2024 02:06
@DDDDDanica
Copy link
Contributor

LGTM, Nice fix !

Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.02%. Comparing base (8e48bee) to head (de0afac).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25344   +/-   ##
========================================
  Coverage    65.02%   65.02%           
========================================
  Files         1391     1391           
  Lines        55182    55184    +2     
  Branches     14499    14499           
========================================
+ Hits         35879    35881    +2     
  Misses       19303    19303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@chloeYue chloeYue left a comment

Choose a reason for hiding this comment

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

LGTM!

@metamaskbot
Copy link
Collaborator

Builds ready [de0afac]
Page Load Metrics (47 ± 3 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint621027984
domContentLoaded8261142
load40714773
domInteractive8261142
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 37 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@vthomas13 vthomas13 merged commit a6ebbc7 into develop Jun 21, 2024
77 checks passed
@vthomas13 vthomas13 deleted the new-password-create-wallet-flaky branch June 21, 2024 14:43
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2024
@metamaskbot metamaskbot added the release-12.1.0 Issue or pull request that will be included in release 12.1.0 label Jun 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.1.0 Issue or pull request that will be included in release 12.1.0 team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants