This is a simple test dapp for use in MetaMask e2e tests and manual QA.
Currently hosted here.
If you wish to use this dapp in your e2e tests, install this package and set up a script of e.g. the following form:
static-server node_modules/@metamask/test-dapp/dist --port 9011
After merging or pushing to master
, please run yarn deploy
in the package root directory if the contents of the dist/
directory have changed.
Consider that elements must be selectable by XPath. This means that appearances can be misleading. For example, consider this old bug:
<button class="btn btn-primary btn-lg btn-block mb-3" id="approveTokensWithoutGas" disabled>Approve Tokens
Without Gas</button>
This appears on the page as Approve Tokens Without Gas
. In reality, the value included the whitespace on the second line, and caused XPath queries for the intended value to fail:
Approve Tokens Without Gas