Skip to content

Commit

Permalink
test: add scenario check custom nonce toggle works correctly. (#23418)
Browse files Browse the repository at this point in the history
## **Description**

In this PR we add the scenario for the flow 'Check custom nonce toggle'.
This task belongs to the effort of documenting manual QA flows in this
[Epic](#21962).

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/23418?quickstart=1)

## **Related issues**

Fixes:
[21989](#21989)

## **Manual testing steps**

1. Verify that the test steps align with the sequence in the video.
You can find rendered table
[here](https://github.com/MetaMask/metamask-extension/blob/3db07ce715f306ba329c0c4cf987b97893109e51/test/scenarios/17.%20settings/advanced/check%20custom%20nonce%20toggle.csv).


## **Screenshots/Recordings**



https://github.com/MetaMask/metamask-extension/assets/104780023/6fb61cbe-485b-4cf8-a301-1841b70fcb91



## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've clearly explained what problem this PR is solving and how it
is solved.
- [x] I've linked related issues
- [x] I've included manual testing steps
- [x] I've included screenshots/recordings if applicable
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
- [x] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
  • Loading branch information
sleepytanya authored Mar 19, 2024
1 parent 29cf827 commit 02f634d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/scenarios/17. settings/advanced/check custom nonce toggle.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.,,,Click on the MetaMask logo or return to the MetaMask tab if the extension is in the expanded view mode.
8,"Create the transaction by clicking ""Send"" button.",,,You can use this address as a recipient's address : 0x0c54FcCd2e384b4BB6f2E405Bf5Cbc15a017AaFb
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.",,,
12,Reject or confirm transaction.,,,
13,"Go back to ""Settings"".",,,
14,"Proceed to ""Advanced"".",,"Turn on the ""Customize transaction nonce"" toggle.",
15,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.
16,"Create the transaction by clicking ""Send"" button.",,,You can use this address as a recipient's address : 0x0c54FcCd2e384b4BB6f2E405Bf5Cbc15a017AaFb
17,Choose the recipient's address.,,"MetaMask popup with the recipient's address, amount to be sent, gas fee estimates is displayed.",
18,"Click ""Next"".",,"Metamask popup with the recipient's address, amount, gas and total fees is displayed.",
19,"Make sure that ""Custom nonce"" field is present under ""Total"" field.",,Wallet suggested custom nonce number is displayed in light grey. ,
20,Reject or confirm transaction.,,,

0 comments on commit 02f634d

Please sign in to comment.