From 57c1f2861fc70a00da97d1c778fd66ddf774e7ae Mon Sep 17 00:00:00 2001 From: sleepytanya <104780023+sleepytanya@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:19:55 -0400 Subject: [PATCH 1/3] add cancel transaction using same nonce --- .../cancel transaction using same nonce.csv | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/scenarios/3. transactions/cancel transaction using same nonce.csv diff --git a/test/scenarios/3. transactions/cancel transaction using same nonce.csv b/test/scenarios/3. transactions/cancel transaction using same nonce.csv new file mode 100644 index 000000000000..76fcfe83dee8 --- /dev/null +++ b/test/scenarios/3. transactions/cancel transaction using same nonce.csv @@ -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,Turn on 'Customize transaction'.,,, +8,Navigate back to the main wallet screen to continue.,,,Click on the MetaMask logo or return to the MetaMask tab if the extension is in the expanded view mode. +9,"Create the transaction by clicking ""Send"" button.",,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",You can use this address as a recipient's address : 0x0c54FcCd2e384b4BB6f2E405Bf5Cbc15a017AaFb +10,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.", +11,Set very low gas fee using 'Advanced' gas setting,,Click the pen icon in the 'Estimated fee' field to access 'Advanced' gas settings. Set very low 'Max base fee' and 'Priority fee' (i.e. 0.0001 GWEI).,Opting for a lower gas fee provides the flexibility to send a subsequent transaction to cancel the current one. +12,Proceed to confirm transaction.,,, +13,Switch to the Activity tab.,,"In the activity tab, the transaction is currently displayed as being in a pending state.",Make a note of the transaction nonce value. +14,"Create another transaction by clicking ""Send"" button.",,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",Select your testing account address as the recipient's address and set the transaction amount to 0. +15,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.",Use the same nonce value that was assigned to the previous transaction. +16,Proceed to confirm the transaction.,,, +17,Switch to the Activity tab.,,One 'Send' transaction with the same nonce and 0 value in 'Pending' state is displayed., +18,Allow some time for the transaction to get confirmed.,,Send' and 'Receive' transactions with 0 value and the same nonce are shown on the Activity tab.,The previous transaction was cancelled by the newly created transaction with the same nonce and 0 value. \ No newline at end of file From a66c520985f5eb8089c8f21f9243283f1408ab50 Mon Sep 17 00:00:00 2001 From: sleepytanya <104780023+sleepytanya@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:38:12 -0400 Subject: [PATCH 2/3] fix typos --- .../cancel transaction using same nonce.csv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/scenarios/3. transactions/cancel transaction using same nonce.csv b/test/scenarios/3. transactions/cancel transaction using same nonce.csv index 76fcfe83dee8..fa5033ed3a30 100644 --- a/test/scenarios/3. transactions/cancel transaction using same nonce.csv +++ b/test/scenarios/3. transactions/cancel transaction using same nonce.csv @@ -3,17 +3,17 @@ Step,Test steps,Test data,Expected result,Notes 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.", +5,Go to 'Settings'.,,, +6,Choose 'Advanced'.,,"The ""Customize transaction nonce"" feature is set to be off by default.", 7,Turn on 'Customize transaction'.,,, 8,Navigate back to the main wallet screen to continue.,,,Click on the MetaMask logo or return to the MetaMask tab if the extension is in the expanded view mode. 9,"Create the transaction by clicking ""Send"" button.",,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",You can use this address as a recipient's address : 0x0c54FcCd2e384b4BB6f2E405Bf5Cbc15a017AaFb -10,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.", +10,Click 'Next'.,,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.", 11,Set very low gas fee using 'Advanced' gas setting,,Click the pen icon in the 'Estimated fee' field to access 'Advanced' gas settings. Set very low 'Max base fee' and 'Priority fee' (i.e. 0.0001 GWEI).,Opting for a lower gas fee provides the flexibility to send a subsequent transaction to cancel the current one. 12,Proceed to confirm transaction.,,, 13,Switch to the Activity tab.,,"In the activity tab, the transaction is currently displayed as being in a pending state.",Make a note of the transaction nonce value. 14,"Create another transaction by clicking ""Send"" button.",,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",Select your testing account address as the recipient's address and set the transaction amount to 0. -15,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.",Use the same nonce value that was assigned to the previous transaction. +15,Click 'Next'.,,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.",Use the same nonce value that was assigned to the previous transaction. 16,Proceed to confirm the transaction.,,, 17,Switch to the Activity tab.,,One 'Send' transaction with the same nonce and 0 value in 'Pending' state is displayed., 18,Allow some time for the transaction to get confirmed.,,Send' and 'Receive' transactions with 0 value and the same nonce are shown on the Activity tab.,The previous transaction was cancelled by the newly created transaction with the same nonce and 0 value. \ No newline at end of file From e3f812cd443b62f1a8ab3bf7cd068cb628d4df89 Mon Sep 17 00:00:00 2001 From: sleepytanya <104780023+sleepytanya@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:41:39 -0400 Subject: [PATCH 3/3] fix typo --- .../3. transactions/cancel transaction using same nonce.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/scenarios/3. transactions/cancel transaction using same nonce.csv b/test/scenarios/3. transactions/cancel transaction using same nonce.csv index fa5033ed3a30..3a1df36d29e7 100644 --- a/test/scenarios/3. transactions/cancel transaction using same nonce.csv +++ b/test/scenarios/3. transactions/cancel transaction using same nonce.csv @@ -16,4 +16,4 @@ Step,Test steps,Test data,Expected result,Notes 15,Click 'Next'.,,"Metamask popup with the recipient's address, amount, gas and total fees is displayed. The ""Custom nonce"" field with the next suggested nonce value is shown on the confirmation screen.",Use the same nonce value that was assigned to the previous transaction. 16,Proceed to confirm the transaction.,,, 17,Switch to the Activity tab.,,One 'Send' transaction with the same nonce and 0 value in 'Pending' state is displayed., -18,Allow some time for the transaction to get confirmed.,,Send' and 'Receive' transactions with 0 value and the same nonce are shown on the Activity tab.,The previous transaction was cancelled by the newly created transaction with the same nonce and 0 value. \ No newline at end of file +18,Allow some time for the transaction to get confirmed.,, 'Send' and 'Receive' transactions with 0 value and the same nonce are shown on the Activity tab.,The previous transaction was cancelled by the newly created transaction with the same nonce and 0 value. \ No newline at end of file