1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

[skip e2e] document token flows (#20260)

This commit is contained in:
Peter 2023-07-31 15:56:14 -04:00 committed by GitHub
parent 2d412c21bb
commit 2daf002245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,35 @@
Step,Test Steps,Test Data,Expected Result,Notes
1,Open the extension.,,The Welcome Back screen is shown.,
2,Proceed to Unlock the wallet.,password (8 characters min).,"The Ether balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Ethereum Mainnet.",
3,Switch networks to a test network.,e.g. Goerli.,"The Goerli balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Goerli.",
4,Open the test dapp in another tab.,https://metamask.github.io/test-dapp/,,
5,Proceed to Connect with MetaMask.,,,
6,Connect with the current account.,,,
7,Deploy the ERC1155 contract.,,,
8,Confirm the transaction and wait for the it to complete.,,,
9,Proceed to Batch Mint NFTs.,,,
10,Confirm the transaction and wait for the it to complete.,,,
11,Close the test dapp and switch back to the wallet.,,,
12,Open the activity list item.,,"The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.",
13,Proceed to view the transaction on the block explorer.,,The block explorer opens in a new tab., Take a note of the Contract address.
14,Close the block explorer and switch back to the wallet.,,,
15,Switch to the NFTs tab.,,,
16,Proceed to the Import tokens flow.,,,
17,Enter the contract address.,Contract address.,,
18,Enter the token id.,e.g. 1.,,
19,Confirm the addition of the custom token.,,"The NFT is shown in the wallets NFTs list.
The NFT image is shown.",
20,Proceed to open the NFT.,,"The NFT details page is shown.
The NFT collection name is shown.
The NFT token id is shown.
The NFT description is shown.
The NFT image source is shown.
The NFT contract address is shown.",
21,Open the asset menu.,,,
22,Proceed to view the asset on Opensea.,,Opensea opens in a new tab.,
23,Close Opensea and switch back to the wallet.,,,
24,Navigate to the overview page using the asset breadcrumbs.,,The overview page is shown.,
1 Step Test Steps Test Data Expected Result Notes
2 1 Open the extension. The Welcome Back screen is shown.
3 2 Proceed to Unlock the wallet. password (8 characters min). The Ether balance is shown on the overview. The wallet address is shown on the overview. The selected network is Ethereum Mainnet.
4 3 Switch networks to a test network. e.g. Goerli. The Goerli balance is shown on the overview. The wallet address is shown on the overview. The selected network is Goerli.
5 4 Open the test dapp in another tab. https://metamask.github.io/test-dapp/
6 5 Proceed to Connect with MetaMask.
7 6 Connect with the current account.
8 7 Deploy the ERC1155 contract.
9 8 Confirm the transaction and wait for the it to complete.
10 9 Proceed to Batch Mint NFTs.
11 10 Confirm the transaction and wait for the it to complete.
12 11 Close the test dapp and switch back to the wallet.
13 12 Open the activity list item. The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.
14 13 Proceed to view the transaction on the block explorer. The block explorer opens in a new tab. Take a note of the Contract address.
15 14 Close the block explorer and switch back to the wallet.
16 15 Switch to the NFTs tab.
17 16 Proceed to the Import tokens flow.
18 17 Enter the contract address. Contract address.
19 18 Enter the token id. e.g. 1.
20 19 Confirm the addition of the custom token. The NFT is shown in the wallets NFTs list. The NFT image is shown.
21 20 Proceed to open the NFT. The NFT details page is shown. The NFT collection name is shown. The NFT token id is shown. The NFT description is shown. The NFT image source is shown. The NFT contract address is shown.
22 21 Open the asset menu.
23 22 Proceed to view the asset on Opensea. Opensea opens in a new tab.
24 23 Close Opensea and switch back to the wallet.
25 24 Navigate to the overview page using the asset breadcrumbs. The overview page is shown.

View File

@ -0,0 +1,38 @@
Step,Test Steps,Test Data,Expected Result,Notes
1,Open the extension.,,The Welcome Back screen is shown.,
2,Proceed to Unlock the wallet.,password (8 characters min).,"The Ether balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Ethereum Mainnet.",
3,Switch networks to a test network.,e.g. Goerli.,"The Goerli balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Goerli.",
4,Open the test dapp in another tab.,https://metamask.github.io/test-dapp/,,
5,Proceed to Connect with MetaMask.,,,
6,Connect with the current account.,,,
7,Deploy the Token contract.,,,
8,Confirm the transaction and wait for the it to complete.,,,
9,Close the test dapp and switch back to the wallet.,,,
10,Open the activity list item.,,"The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.",
11,Proceed to view the transaction on the block explorer.,,The block explorer opens in a new tab., Take a note of the Contract address.
12,Close the block explorer and switch back to the wallet.,,,
13,Switch to the Tokens tab.,,,
14,Proceed to the Import tokens flow.,,,
15,Enter the contract address.,Contract address.,,
16,Enter the token symbol.,e.g. TST.,,
17,Enter the token decimals.,e.g. 4.,,
18,Confirm the addition of the custom token.,,"The asset page is shown.
The specified token symbol is shown.
The specified token icon is shown.
The specified token balance is shown.",
19,Open the asset menu.,,,
20,Proceed to view the asset in the block explorer.,,The block explorer opens in a new tab.,
21,Close the block explorer and switch back to the wallet.,,,
22,Open the asset menu.,,,
23,Proceed to view the token details.,,"The token details page is shown.
The token balance is shown.
The token contract symbol is shown.
The token decimals is shown.
The current network is shown.",
24,Close the token details page.,,,
25,Navigate to the overview page using the asset breadcrumbs.,,"The overview page is shown.
The TST token is shown in the wallets token list.",
1 Step Test Steps Test Data Expected Result Notes
2 1 Open the extension. The Welcome Back screen is shown.
3 2 Proceed to Unlock the wallet. password (8 characters min). The Ether balance is shown on the overview. The wallet address is shown on the overview. The selected network is Ethereum Mainnet.
4 3 Switch networks to a test network. e.g. Goerli. The Goerli balance is shown on the overview. The wallet address is shown on the overview. The selected network is Goerli.
5 4 Open the test dapp in another tab. https://metamask.github.io/test-dapp/
6 5 Proceed to Connect with MetaMask.
7 6 Connect with the current account.
8 7 Deploy the Token contract.
9 8 Confirm the transaction and wait for the it to complete.
10 9 Close the test dapp and switch back to the wallet.
11 10 Open the activity list item. The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.
12 11 Proceed to view the transaction on the block explorer. The block explorer opens in a new tab. Take a note of the Contract address.
13 12 Close the block explorer and switch back to the wallet.
14 13 Switch to the Tokens tab.
15 14 Proceed to the Import tokens flow.
16 15 Enter the contract address. Contract address.
17 16 Enter the token symbol. e.g. TST.
18 17 Enter the token decimals. e.g. 4.
19 18 Confirm the addition of the custom token. The asset page is shown. The specified token symbol is shown. The specified token icon is shown. The specified token balance is shown.
20 19 Open the asset menu.
21 20 Proceed to view the asset in the block explorer. The block explorer opens in a new tab.
22 21 Close the block explorer and switch back to the wallet.
23 22 Open the asset menu.
24 23 Proceed to view the token details. The token details page is shown. The token balance is shown. The token contract symbol is shown. The token decimals is shown. The current network is shown.
25 24 Close the token details page.
26 25 Navigate to the overview page using the asset breadcrumbs. The overview page is shown. The TST token is shown in the wallets token list.

View File

@ -0,0 +1,35 @@
Step,Test Steps,Test Data,Expected Result,Notes
1,Open the extension.,,The Welcome Back screen is shown.,
2,Proceed to Unlock the wallet.,password (8 characters min).,"The Ether balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Ethereum Mainnet.",
3,Switch networks to a test network.,e.g. Goerli.,"The Goerli balance is shown on the overview.
The wallet address is shown on the overview.
The selected network is Goerli.",
4,Open the test dapp in another tab.,https://metamask.github.io/test-dapp/,,
5,Proceed to Connect with MetaMask.,,,
6,Connect with the current account.,,,
7,Deploy the NFT contract.,,,
8,Confirm the transaction and wait for the it to complete.,,,
9,Proceed to Mint an NFT.,,,
10,Confirm the transaction and wait for the it to complete.,,,
11,Close the test dapp and switch back to the wallet.,,,
12,Open the activity list item.,,"The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.",
13,Proceed to view the transaction on the block explorer.,,The block explorer opens in a new tab., Take a note of the Contract address.
14,Close the block explorer and switch back to the wallet.,,,
15,Switch to the NFTs tab.,,,
16,Proceed to the Import tokens flow.,,,
17,Enter the contract address.,Contract address.,,
18,Enter the token id.,e.g. 1.,,
19,Confirm the addition of the custom token.,,"The NFT is shown in the wallets NFTs list.
The NFT image is shown.",
20,Proceed to open the NFT.,,"The NFT details page is shown.
The NFT collection name is shown.
The NFT token id is shown.
The NFT description is shown.
The NFT image source is shown.
The NFT contract address is shown.",
21,Open the asset menu.,,,
22,Proceed to view the asset on Opensea.,,Opensea opens in a new tab.,
23,Close Opensea and switch back to the wallet.,,,
24,Navigate to the overview page using the asset breadcrumbs.,,The overview page is shown.,
1 Step Test Steps Test Data Expected Result Notes
2 1 Open the extension. The Welcome Back screen is shown.
3 2 Proceed to Unlock the wallet. password (8 characters min). The Ether balance is shown on the overview. The wallet address is shown on the overview. The selected network is Ethereum Mainnet.
4 3 Switch networks to a test network. e.g. Goerli. The Goerli balance is shown on the overview. The wallet address is shown on the overview. The selected network is Goerli.
5 4 Open the test dapp in another tab. https://metamask.github.io/test-dapp/
6 5 Proceed to Connect with MetaMask.
7 6 Connect with the current account.
8 7 Deploy the NFT contract.
9 8 Confirm the transaction and wait for the it to complete.
10 9 Proceed to Mint an NFT.
11 10 Confirm the transaction and wait for the it to complete.
12 11 Close the test dapp and switch back to the wallet.
13 12 Open the activity list item. The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.
14 13 Proceed to view the transaction on the block explorer. The block explorer opens in a new tab. Take a note of the Contract address.
15 14 Close the block explorer and switch back to the wallet.
16 15 Switch to the NFTs tab.
17 16 Proceed to the Import tokens flow.
18 17 Enter the contract address. Contract address.
19 18 Enter the token id. e.g. 1.
20 19 Confirm the addition of the custom token. The NFT is shown in the wallets NFTs list. The NFT image is shown.
21 20 Proceed to open the NFT. The NFT details page is shown. The NFT collection name is shown. The NFT token id is shown. The NFT description is shown. The NFT image source is shown. The NFT contract address is shown.
22 21 Open the asset menu.
23 22 Proceed to view the asset on Opensea. Opensea opens in a new tab.
24 23 Close Opensea and switch back to the wallet.
25 24 Navigate to the overview page using the asset breadcrumbs. The overview page is shown.