Uncaught (in promise) TypeError: this.connection.on is not a function
at MetamaskProvider.registerEventListeners (web3-providers.umd.js:929)
at MetamaskProvider.AbstractSocketProvider (web3-providers.umd.js:135)
at new MetamaskProvider (web3-providers.umd.js:922)
at ProvidersModuleFactory.createMetamaskProvider (web3-providers.umd.js:1246)
at ProviderResolver.resolve (web3-providers.umd.js:57)
at Web3.AbstractWeb3Module (web3-core.umd.js:21)
at new Web3 (web3.umd.js:24)
at _callee$ (web3.js:24)
at tryCatch (runtime.js:62)
at Generator.invoke [as _invoke] (runtime.js:296)
at Generator.prototype.(:3000/anonymous function) [as next] (http://10.1.0.101:3000/static/js/bundle.js:93419:21)
at step (testUtils.js:21)
at testUtils.js:21
at new Promise (<anonymous>)
at testUtils.js:21
This is possibly a error caused by the different versions of web3 used on the Metamask extension and the app. A solution could be to upgrade Metamask extension on the e2e tests.
As part of https://github.com/poanetwork/bridge-ui/pull/196 we upgraded web3 to version
1.0.0-beta.50
.The following issues need to be fixed:
Ee2 tests are failing with error:
This is possibly a error caused by the different versions of web3 used on the Metamask extension and the app. A solution could be to upgrade Metamask extension on the e2e tests.
Error: Empty outputs array given!
see this comment https://github.com/poanetwork/bridge-ui/pull/196#discussion_r269516877Error:
Transaction has been reverted by the EVM
even if transaction was successful. see this comment https://github.com/poanetwork/bridge-ui/pull/196#discussion_r269632458