-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add e2e test to validate that the show hex data toggle in settings works #22271
Description
The task is to add a new e2e test: show-hex-data.spec.js
The file can be added in the test/e2e/tests/ directory.
It should follow the structure and patterns of the other tests in that directory. test/e2e/tests/simple-send.spec.js is a simple example.
The test should navigate to the Advanced tab of Settings. An example of how to do this can be seen within the passwordUnlockOpenSRPRevealQuiz helper method. Then it should toggle on the "Show Hex Data" toggle
Then it should navigate to the home screen. From there it should naviate to the send screen, the openActionMenuAndStartSendFlow helper can be used for that.
A recipient address should be entered on the send screen (see test/e2e/tests/send-eth.spec.js for examples of how to do that. Then 0xabc should be entered in the hex data field.
The test should then click next, and confirm that the expected hex data is shown on the Data tab of the confirm screen. The test does not need to take further steps after that.
