Skip to content

Add e2e test to validate that the show hex data toggle in settings works #22271

@danjm

Description

@danjm

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

Screenshot from 2023-12-13 13-01-23

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    INVALID-ISSUE-TEMPLATEIssue's body doesn't match any issue template.release-11.9.0Issue or pull request that will be included in release 11.9.0team-extension-platformExtension Platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions