aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-31 04:52:42 +0800
committerkumavis <aaron@kumavis.me>2018-03-31 04:52:42 +0800
commit32bb09bcb9dd5f9db86967128f7d0fe154fe9922 (patch)
tree1b3937be78cb0a7670be14a630a5a80543388ead /test/e2e
parenta9391ea2eff65be7f70d3d83d185750759b01528 (diff)
downloadtangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar.gz
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar.bz2
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar.lz
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar.xz
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.tar.zst
tangerine-wallet-browser-32bb09bcb9dd5f9db86967128f7d0fe154fe9922.zip
test - e2e - set network to localhost
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/metamask.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/metamask.spec.js b/test/e2e/metamask.spec.js
index ff5bdb51b..20e23e2ea 100644
--- a/test/e2e/metamask.spec.js
+++ b/test/e2e/metamask.spec.js
@@ -38,6 +38,8 @@ describe('Metamask popup page', function () {
const tabs = await driver.getAllWindowHandles()
await driver.switchTo().window(tabs[0])
await delay(300)
+ await setProviderType('localhost')
+ await delay(300)
})
it('should match title', async () => {
@@ -124,6 +126,10 @@ describe('Metamask popup page', function () {
})
})
+ async function setProviderType(type) {
+ await driver.executeScript('window.metamask.setProviderType(arguments[0])', type)
+ }
+
async function verboseReportOnFailure(test) {
const artifactDir = `./test-artifacts/${test.title}`
const filepathBase = `${artifactDir}/test-failure`