Skip to content

Commit

Permalink
docs: Manual scenario for "Import account with private key" feature (M…
Browse files Browse the repository at this point in the history
…etaMask#26756)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

This PR documents the manual test scenario for the 'Import account with
private key' feature. Below is a summary of the validations included in
this manual scenario:

- Validate that the account selector is present at the top of the
wallet.
- Validate that the 'Add account or hardware wallet' option is available
at the bottom of the account selector list.
- Validate that the 'Import account' option is available in the next
menu.
- Validate that the user is directed to the Import page upon selecting
'Import account'.
- Validate that the user can paste their private key and click 'Import'.
- Validate that the newly imported account appears in the account
selector dropdown with an 'Imported' tag next to it.


[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/26756?quickstart=1)

## **Related issues**

Fixes: MetaMask#22006

## **Manual testing steps**

--> test/manual-scenarios/keyring/import account using private key.md
Rendered view of the manual scenario -
https://github.com/MetaMask/metamask-extension/blob/import-account-with-private-key-scenario/test/manual-scenarios/keyring/import%20account%20using%20private%20key.md
  • Loading branch information
benjisclowder authored Sep 3, 2024
1 parent 851db4c commit ce04ae8
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions test/manual-scenarios/keyring/import account using private key.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Manual test scenario for the 'Import account with private key' feature

Below is a summary of the validations included:-

* Validate that the account selector is present at the top of the wallet.
* Validate that the 'Add account or hardware wallet' option is available at the bottom of the account selector list.
* Validate that the 'Import account' option is available in the next menu.
* Validate that the user is directed to the Import page upon selecting 'Import account'.
* Validate that the user can paste their private key and click 'Import'.
* Validate that the newly imported account appears in the account selector dropdown with an 'Imported' tag next to it.

```markdown

# Feature: Import Account with Private Key

In order to manage multiple accounts
As a user of the wallet extension
I want to import an account using a private key

# Scenario: Accessing the 'Add account or hardware wallet' option

Given I am on the wallet interface
When I click the account selector at the top of my wallet
Then I should see a list of accounts
And I should see the 'Add account or hardware wallet' option at the bottom of the list

# Scenario: Selecting the 'Import account' option

Given I have clicked the account selector at the top of my wallet
And I see the 'Add account or hardware wallet' option at the bottom of the list
When I select 'Add account or hardware wallet'
Then I should be directed to the next menu
And I should see the 'Import account' option

# Scenario: Importing an account with a private key

Given I am on the import dialog modal
When I see a field to paste my private key
And I paste my private key (e.g.: 669456835741782c2ceca4e6ded60420ede38db2fb28742a1c9ae5ddf6680fa9) and click 'Import'
Then I should see the newly imported account in the account selector dropdown
And the newly imported account should have an 'Imported' tag next to it


```

0 comments on commit ce04ae8

Please sign in to comment.