Skip to content
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

test: add scenario check "customize transaction nonce" toggle works correctly. #23413

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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. Sepolia,The Sepolia balance is shown on the overview. The wallet address is shown on the overview. The selected network is Sepolia.,
4,Click on three-dot menu located in the upper right corner.,,,
5,"Go to ""Settings"".",,,
6,"Choose ""Advanced"".",,"The ""Customize transaction nonce"" feature is set to be off by default.",
7,Navigate back to the main wallet screen to continue.,,,
8,"Create the transaction by clicking ""Send"" button.",,,
9,Choose the recipient's address.,,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",
10,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed.",
11,"Make sure that ""Custom nonce"" field is not shown on the confirmation screen.",,Transaction can be confirmed or rejected.,
12,"Go back to ""Settings"".",,,
13,"Proceed to ""Advanced"".",,"Turn on the ""Customize transaction nonce"" toggle.",
14,Navigate back to the main wallet screen to continue.,,,
15,"Create the transaction by clicking ""Send"" button.",,,
16,Choose the recipient's address.,,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",
17,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed.",
18,"Make sure that ""Custom nonce"" field is present under ""Total"" field.",,Wallet suggested custom nonce number is displayed in light grey. Transaction can be confirmed or rejected.,
15 changes: 15 additions & 0 deletions test/scenarios/3. transactions/deploy failing transaction.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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. 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,Deploy failing contract.,,"MetaMask popup with estimated gas fees, total fees appears.",
8,Proceed to confirm contract deployment and wait for the transaction to be confirmed.,,"Contract deployment status on MetamMask Activity list displayed as ""Confirmed"". ""Send failing transaction"" button on the test dapp window is active.",
9,Deploy failing transaction.,,"MetaMask popup with contract interaction screen appears. Warning on the red background is displayed: ""We were not able to estimate gas. There might be an error in the contract and this transaction may fail."" The warning includes a link ""I want to proceed anyway"".",
10,"Click ""I want to proceed anyway"" and confirm transaction.",,,
11,Switch back to the wallet.,,,
12,Open the Activity tab.,,"""Contract interaction"" transaction in ""Pending"" status is displayed.",
13,"Allow some time for the transaction status to update to ""Failed"".",,,Waiting times may vary based on network conditions.
14,Proceed to view the transaction on the block explorer.,,Block explorer opens in the new tab.,
23 changes: 15 additions & 8 deletions test/scenarios/4. tokens/approve erc20 token.csv
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
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. ",
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,Deploy the token contract.,,,
8,Confirm the transaction and wait for it to complete.,,,
9,Switch to the wallet and open the activity list item.,,"The contract deployment transaction status, nonce, amount, gas and total are shown in the item details.",
10,Proceed to view the transaction on the block explorer.,,The block explorer opens in a new tab.,
11,"In the test dapp, proceed to approve tokens. ",,"Spending cap request notification window is shown. The token icon and symbol TST are shown. An input field is displayed, allow user to edit the spending cap amount .",
5,Proceed to connect with MetaMask. ,,,
6,Connect with the current account. ,,,
7,Create Legacy transaction,,"MetaMask popup with estimated gas fees, total fees appears.",
8,"Do not confirm the transaction, click outside of the popup on the test dapp window.",,"Test dapp window is active. MetaMask extension icon in the browser has blue badge, showing the number of approval requests - '1'. MetaMask popup is behind the browser.",
9,Create another Legacy or EIP1559 transaction.,,"MetaMask popup with estimated gas fees, total fees appears. On the top of the aproval modal text with the ""1 of 2 requests waiting to be acknowledged"" is displayed. Arrow buttons '>' and '>>' displayed in the right upper corner of the approval modal.",
10,"Do not confirm the transaction, click outside of the popup on the test dapp window.",,"Test dapp window is active. MetaMask extension icon in the browser has blue badge, showing the number of approval requests - '2'. MetaMask popup is behind the browser.",
,Create another Legacy or EIP1559 transaction.,,"MetaMask popup with estimated gas fees, total fees appears. On the top of the aproval modal text with the ""1 of 3 requests waiting to be acknowledged"" is displayed. Right arrow buttons '>' and '>>' displayed in the right upper corner of the approval modal.",
,Click single right arrow '>' on the top of the approval modal.,,"The approval request for the next (second) transaction is displayed. Message ""2 of 3 requests waiying to be acknowledged"" is shown on the top of the approval modal. Right arrow buttons '>' and '>>' displayed in the right upper corner of the approval modal.",
,Click single right arrow '>' on the top of the approval modal.,,"The approval request for the next (third) transaction is displayed. Message ""3 of 3 requests waiying to be acknowledged"" is shown on the top of the approval modal. Left arrow buttons are in the left upper corner of the approval modal.",
,Click double left arrow '<<' on top of the approval modal.,,"The approval request for the first transaction is displayed. Message ""1 of 3 requests waiying to be acknowledged"" is shown on the top of the approval modal. Right arrow buttons '>' and '>>' displayed in the right upper corner of the approval modal.",
,,,,
,,,,
,,,,
11,"In the test dapp, proceed to approve tokens. J",,"Spending cap request notification window is shown. The token icon and symbol TST are shown. An input field is displayed, allow user to edit the spending cap amount .",
12,Proceed to approve the spending cap request.,,,
13,Switch back to the wallet.,,"The transaction ""Approve TST spending cap"" appears in the activity list.",
14,Open the activity list item.,,"The transaction status, recipient's address, nonce, amount, gas and total are shown in the item details.",
Expand Down
Loading