From 2daf00224533e52f4797fbc36ad1130963e6ba18 Mon Sep 17 00:00:00 2001 From: Peter <53189696+PeterYinusa@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:56:14 -0400 Subject: [PATCH] [skip e2e] document token flows (#20260) --- .../import erc1155 token origin MM.csv | 35 +++++++++++++++++ .../import erc20 token origin MM.csv | 38 +++++++++++++++++++ .../import erc721 token origin MM.csv | 35 +++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 test/scenarios/4. tokens/import erc1155 token origin MM.csv create mode 100644 test/scenarios/4. tokens/import erc20 token origin MM.csv create mode 100644 test/scenarios/4. tokens/import erc721 token origin MM.csv diff --git a/test/scenarios/4. tokens/import erc1155 token origin MM.csv b/test/scenarios/4. tokens/import erc1155 token origin MM.csv new file mode 100644 index 000000000..1c4218d7c --- /dev/null +++ b/test/scenarios/4. tokens/import erc1155 token origin MM.csv @@ -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., \ No newline at end of file diff --git a/test/scenarios/4. tokens/import erc20 token origin MM.csv b/test/scenarios/4. tokens/import erc20 token origin MM.csv new file mode 100644 index 000000000..4a7c2c2ac --- /dev/null +++ b/test/scenarios/4. tokens/import erc20 token origin MM.csv @@ -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.", \ No newline at end of file diff --git a/test/scenarios/4. tokens/import erc721 token origin MM.csv b/test/scenarios/4. tokens/import erc721 token origin MM.csv new file mode 100644 index 000000000..f4bab1bae --- /dev/null +++ b/test/scenarios/4. tokens/import erc721 token origin MM.csv @@ -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., \ No newline at end of file