MetaMask / test-dapp

The sample dapp used for e2e testing and metamask-extension QA
https://metamask.github.io/test-dapp/
MIT License
596 stars 349 forks source link

feat: add malicious deeplinks, bypasses and reorg #328

Closed seaona closed 6 months ago

seaona commented 6 months ago

Description

In this PR we add a couple of more functionalities for testing the PPOM feature:

Screenshots

Before

Screenshot from 2024-04-25 09-50-58

After

Screenshot from 2024-04-23 21-10-05

https://github.com/MetaMask/test-dapp/assets/54408225/283028e6-90c2-4175-8041-b7061b217b0a

Manual QA Steps

  1. Build the test dapp locally
  2. Try the new bypasses buttons. Note: all bypasses should be flagged except for the Malicious Permit With Padded ChainID (which will be fixed in the ppom updat 1.4.6)
  3. Go to Mobile browser
  4. Go to localhost:9011
  5. Try the deeplinks
  6. Open MM and see each deeplink working. Note: all the deeplinks are not flagged by Blockaid at the moment, since there is an issue with Blockaid + Deeplinks in Mobile