-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: Speed up wallet onboarding for developers #23615
Conversation
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. |
you can allow developers to skip onboarding entirely using an approach like was done here #19389 |
This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions. |
## **Description** - Implements a new development build script that skips onboarding by preloading state from the end-to-end test fixtures. - The vault state is dynamically generated from the environment variables `TEST_SRP` and `PASSWORD`. - This build hides all the "What's New?" modals and the "Product Tour" as well as all onboarding screens. - The network is set to "Sepolia" by default. - Alternatively, onboarding can be skipped without setting a `TEST_SRP`, in which case the e2e tests SRP and accounts are used. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/23781?quickstart=1) ## **Related issues** Related: #23615, #19389 ## **Manual testing steps** 1. Checkout this branch 2. Set a `TEST_SRP` environment variable on your `.metamaskrc` file as well as `PASSWORD` if you haven't already 3. Run `yarn start:skip-onboarding` 4. Load the extension on your favorite browser and open the popup ## **Screenshots/Recordings** ### **After** https://github.com/MetaMask/metamask-extension/assets/13814744/e34bac0f-8f6f-4d04-8452-b9962c99cfb9 ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [x] 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.
closing this one now that #23781 has been merged |
Description
TEST_SRP
, which can be defined in the.metamaskrc
file. When set, this variable prepopulates the import SRP input field during the onboarding process with a preferred testing wallet.TEST_SRP
variable signals developers’ intent to expedite the onboarding process, this automatically checks all onboarding checkboxes and enables all progression buttons.PASSWORD
environment variable for automatic wallet unlocking, the onboarding process now includes this password prepopulated.Related issues
Fixes: N/A
Manual testing steps
TEST_SRP
andPASSWORD
to your.metamaskrc
fileScreenshots/Recordings
Screen.Recording.2024-03-20.at.19.28.07.mov
Pre-merge author checklist
Pre-merge reviewer checklist