This PR adds support to Deeplinks in the test dapp. This will allows us to automate e2e tests around the feature. Specifically,
Adds Simple Send Eth for deeplinks
Adds ERC20 transfer. For this, we need to pass the contract address and the decimals in the URL. Notice for this functionality we'll access it from the browser (outside the wallet), that's why we need to pre-deploy a contract, in order to use it, if we want to have assets.
Adds ERC20 approve. For this, we need to pass the contract address and the decimals in the URL. Notice for this functionality we'll access it from the browser (outside the wallet), that's why we need to pre-deploy a contract, in order to use it, if we want to have assets.
With the Extension/Mobile test dapp: deploy an ERC20 token
Copy the address the the decimals (default is 4)
Now, go to the Mobile Browser (outside the MetaMask wallet)
Add this URL: http://localhost:9011/?contract=0x35e22143f85CD31F5319Ae4295B36F396bF27f78&decimals=4 but change the contract address and decimals for the one you deployed
Click Send Eth --open MM and proceed with the tx
Go back to the browser
Click Transfer Tokens -- open MM and proceed with the tx
Go back to the browser
Click Approve Tokens -- open MM and proceed with the tx
Description
This PR adds support to Deeplinks in the test dapp. This will allows us to automate e2e tests around the feature. Specifically,
Screenshots
https://github.com/MetaMask/test-dapp/assets/54408225/723e133e-9cb6-4422-b4c1-764e1c632c08
Manual QA
http://localhost:9011/?contract=0x35e22143f85CD31F5319Ae4295B36F396bF27f78&decimals=4
but change the contract address and decimals for the one you deployed