diff --git a/test/scenarios/11. sign/eth sign.csv b/test/scenarios/11. sign/eth sign.csv new file mode 100644 index 000000000000..e9fa3f62f22f --- /dev/null +++ b/test/scenarios/11. sign/eth sign.csv @@ -0,0 +1,14 @@ +Steps,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. Sepolia.,"The Sepolia balance is shown on the overview. +The wallet address is shown on the overview. +The selected network is Sepolia.", +4,"Open the accounts options menu, select settings. In advanced tab, enable the eth_sign request.",,The eth_sign toggle is ON., +5,Open the test dapp in another tab.,https://metamask.github.io/test-dapp/,, +6,Proceed to Connect with MetaMask.,,, +7,Connect with the current account.,,, +8,"Sign ""Eth Sign"" messages",,The message is in hexadecimal format., +9,Verify signed hash.,,The signed address is verified., diff --git a/test/scenarios/11. sign/personal sign.csv b/test/scenarios/11. sign/personal sign.csv new file mode 100644 index 000000000000..7e06389194f5 --- /dev/null +++ b/test/scenarios/11. sign/personal sign.csv @@ -0,0 +1,13 @@ +Steps,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. Sepolia.,"The Sepolia balance is shown on the overview. +The wallet address is shown on the overview. +The selected network is Sepolia.", +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,"Sign ""Personal Sign"" message",,The message is in plain text format., +8,Verify signed hash.,,The signed address is verified., diff --git a/test/scenarios/11. sign/sign in with ethereum.csv b/test/scenarios/11. sign/sign in with ethereum.csv new file mode 100644 index 000000000000..fffc77e701e4 --- /dev/null +++ b/test/scenarios/11. sign/sign in with ethereum.csv @@ -0,0 +1,13 @@ +Steps,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. Sepolia.,"The Sepolia balance is shown on the overview. +The wallet address is shown on the overview. +The selected network is Sepolia.", +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,"Sign ""Sign In With Ethereum"" message",,The message is in JSON formatting,Verify that alternative parameters of Sign In with Ethereum messages are shown and formatted correctly. +8,Verify signed hash.,,The signed address is verified., diff --git a/test/scenarios/11. sign/sign typed with data.csv b/test/scenarios/11. sign/sign typed with data.csv new file mode 100644 index 000000000000..e9ed60e1a297 --- /dev/null +++ b/test/scenarios/11. sign/sign typed with data.csv @@ -0,0 +1,13 @@ +Steps,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. Sepolia.,"The Sepolia balance is shown on the overview. +The wallet address is shown on the overview. +The selected network is Sepolia.", +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,"Sign ""Sign Typed Data"" transaction",,The message is in JSON formatting,"Verify that v1, v3, v4 of Sign Typed Data messages are shown and formatted correctly." +8,Verify signed hash.,,The signed address is verified., diff --git a/test/scenarios/12. encrypt and decrypt/encrypt and decrypt.csv b/test/scenarios/12. encrypt and decrypt/encrypt and decrypt.csv new file mode 100644 index 000000000000..d1d65c9ec9b5 --- /dev/null +++ b/test/scenarios/12. encrypt and decrypt/encrypt and decrypt.csv @@ -0,0 +1,16 @@ +Steps,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. Sepolia.,"The Sepolia balance is shown on the overview. +The wallet address is shown on the overview. +The selected network is Sepolia.", +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,"On testdapp, click ""Get encryption key"".",,Request encryption public key notification screen is shown., +8,Proceed to confirm get encryption key in notification window.,,The encryption key is displayed on testdapp page., +9,"On testdapp, in encrypt/decrypt section, enter a message in input field and click ""Encrypt"".",e.g. Hello,The encrypted message is displayed in ciphertext format.,Make a copy of the encrypted message. +10,"On testdapp, paste the copied message in previous step in the input field, then click ""Decrypt"". ",,Decrypt request notification screen is shown., +11,Proceed to confirm decrypt message in notification.,e.g. Hello,"The decrypted message is displayed, and the value is the same as the previously entered one.", diff --git a/test/scenarios/17. permissions/connecting and disconnecting from a dapp.csv b/test/scenarios/17. permissions/connecting and disconnecting from a dapp.csv new file mode 100644 index 000000000000..f3a3fb5556d3 --- /dev/null +++ b/test/scenarios/17. permissions/connecting and disconnecting from a dapp.csv @@ -0,0 +1,12 @@ +Steps,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.", +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,Open the connection menu,,"The current dapp is shown. +The current list of connected accounts are shown.","Connection icon is in the app header, next to the account options icon." +8,Disconnect current account from dapp via account options.,,"The previously connected address is removed from the list. +The dapp's eth_accounts permission losses that address.",