Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation and context MetaMask PPOM tested. ## Does it fix any issue? https://linear.app/synpress/issue/SYN-66/metamask-ppom-tests ## Quality checklist - [x] I have performed a self-review of my code. - [x] If it is a core feature, I have added thorough e2e tests. **⚠️ 👆 Delete any section you see irrelevant before submitting the pull request 👆⚠️ ** --- <details open="true"><summary>Generated summary</summary> > ## TL;DR > This pull request introduces a new set of tests for the MetaMask wallet, specifically focusing on the PPOM security mechanism. It also adds a new test for the custom transaction form. > > ## What changed > Two files were modified in this pull request: > > 1. `wallets/metamask/test/e2e/metamask/PPOM.spec.ts`: This is a new file that contains tests for the PPOM security mechanism. It checks if the mechanism can prevent malicious ETH transfers, ERC20 transfers, ERC20 approvals, approvals for all, permits, trade orders, and seaports. > > 2. `wallets/metamask/test/e2e/metamask/confirmTransaction.spec.ts`: This file was updated to include a new test for the custom transaction form. It checks if the form can send a defined amount. > > ## How to test > To test these changes, follow these steps: > > 1. Pull the changes from this branch into your local environment. > 2. Navigate to the `wallets/metamask/test/e2e/metamask` directory. > 3. Run the `PPOM.spec.ts` and `confirmTransaction.spec.ts` test files using your preferred test runner. > 4. Ensure all tests pass and there are no unexpected errors. > > ## Why make this change > These changes were made to improve the test coverage for the MetaMask wallet. By testing the PPOM security mechanism and the custom transaction form, we can ensure that these features are working as expected and prevent potential issues in the future. </details>
- Loading branch information