diff options
author | Sneh Koul <35871990+Sneh1999@users.noreply.github.com> | 2019-04-17 01:59:11 +0800 |
---|---|---|
committer | Dan J Miller <danjm.com@gmail.com> | 2019-04-17 01:59:11 +0800 |
commit | fb22fb12cafec238a2143df6e94218c890e4ba4e (patch) | |
tree | c44774b4aefae5b0866ea9f92d3e89fb4f34e55a /test/web3/index.html | |
parent | 76075ac6528a6cca92b29cf024eb00ab25a6f9aa (diff) | |
download | tangerine-wallet-browser-fb22fb12cafec238a2143df6e94218c890e4ba4e.tar.gz tangerine-wallet-browser-fb22fb12cafec238a2143df6e94218c890e4ba4e.tar.zst tangerine-wallet-browser-fb22fb12cafec238a2143df6e94218c890e4ba4e.zip |
Adds e2e test for most web3 methods that dapps use (#6160)
* schema added
* ui for the dapp added and schema.js changed according to the comments in PR
* added tests for all web3 methods
* Update run-all.sh
* Update web3.spec.js to work with new onboarding flow
* changes made according to the comments
* Create stand alone script for web3 e2e tests.
* Lint fixes for web3 e2e tests.
Diffstat (limited to 'test/web3/index.html')
-rw-r--r-- | test/web3/index.html | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/test/web3/index.html b/test/web3/index.html new file mode 100644 index 000000000..cbc43290c --- /dev/null +++ b/test/web3/index.html @@ -0,0 +1,105 @@ +<html> + <head> + <title>Web3 Test Dapp</title> + </head> + <body> + <div style="display: flex; flex-flow: column;"> + <div style="display: flex; font-size: 1.25rem;">hexaNumberMethods</div> + <div style="display: flex;"> + <button id="eth_blockNumber" class="hexaNumberMethods">eth_blockNumber</button> + + <button id="eth_gasPrice" class="hexaNumberMethods">eth_gasPrice</button> + <button id="eth_newBlockFilter" class="hexaNumberMethods">eth_newBlockFilter</button> + <button id="eth_newPendingTransactionFilter" class="hexaNumberMethods"> + eth_newPendingTransactionFilter + </button> + <button id="eth_getUncleCountByBlockHash" class="hexaNumberMethods"> + eth_getUncleCountByBlockHash + </button> + <button id="eth_getBlockTransactionCountByHash" class="hexaNumberMethods"> + getBlockTransactionCountByHash + </button> + </div> + <div style="display: flex ;"> + <button id="eth_getTransactionCount" class="hexaNumberMethods">eth_getTransactionCount</button> + <button id="eth_getBalance" class="hexaNumberMethods">eth_getBalance</button> + <button id="eth_estimateGas" class="hexaNumberMethods">eth_estimateGas</button> + </div> + <div style="display: flex ;"> + + <button id="eth_getUncleCountByBlockNumber" class="hexaNumberMethods"> + eth_getUncleCountByBlockNumber + </button> + <button id='eth_getBlockTransactionCountByNumber' class="hexaNumberMethods"> + eth_getBlockTransactionCountByNumber + </button> + <button id="eth_protocolVersion" class="hexaNumberMethods">eth_protocolVersion</button> + + <button id="eth_getCode" class="hexaNumberMethods">eth_getCode</button> + </div> + </div> + <div style="display: flex; flex-flow: column;"> + <div style="display: flex; font-size: 1.25rem;">booleanMethods</div> + <div style="display: flex ;"> + <button id="eth_uninstallFilter" class = 'booleanMethods'>eth_uninstallFilter</button> + <button id="eth_mining" class = 'booleanMethods'>eth_mining</button> + <button id="eth_syncing" class = 'booleanMethods'>eth_syncing</button> + </div> + </div> + <div style="display: flex; flex-flow: column;"> + <div style="display: flex; font-size: 1.25rem;" >transactionMethods</div> + <div style="display: flex ;"> + <button id="eth_getTransactionByHash" class='transactionMethods'>eth_getTransactionByHash</button> + <button id="eth_getTransactionByBlockHashAndIndex" class = 'transactionMethods'> + eth_getTransactionByBlockHashAndIndex + </button> + <button id="eth_getTransactionByBlockNumberAndIndex" class="transactionMethods"> + eth_getTransactionByBlockNumberAndIndex + </button> + + + </div> + </div> + + <div style="display: flex; flex-flow: column;"> + <div style="display: flex; font-size: 1.25rem;">blockMethods</div> + + <div style="display: flex ;"> + + + <button id="eth_getUncleByBlockHashAndIndex" class="blockMethods"> + eth_getUncleByBlockHashAndIndex + </button> + <button id="eth_getBlockByHash" class="blockMethods">eth_getBlockByHash</button> + </div> + <div style="display: flex ;"> + <button id="eth_getBlockByNumber" class="blockMethods">eth_getBlockByNumber</button> + + + </div> + </div> + + <div style="display: flex; flex-flow: column;"> + <div style="display: flex; font-size: 1.25rem;">Methods</div> + <div style="display: flex ;"> + <button id="eth_call" class = 'methods'>eth_call</button> + <button id="eth_getStorageAt" class="methods">eth_getStorageAt</button> + <button id="eth_getTransactionReceipt" class="methods"> + eth_getTransactionReceipt + </button> + + </div> + </div> + <div style="display: flex; flex-flow: column;"> + <div id='results'></div> + </div> + + + + + </div> + <script src="schema.js"></script> + <script src="web3.js"></script> + + </body> +</html> |