aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-05-02 03:33:40 +0800
committerThomas <thomas.b.huang@gmail.com>2018-05-02 03:33:40 +0800
commitc08a5d04c4e7d6c69dfd11a174f13126225c374c (patch)
treeb3196f142bf0945623d06cbe45c2dda7456e8f4b /test
parent9dfe4f410da8197cb6dfdc312ab04fe585e59fb6 (diff)
downloadtangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar.gz
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar.bz2
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar.lz
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar.xz
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.tar.zst
tangerine-wallet-browser-c08a5d04c4e7d6c69dfd11a174f13126225c374c.zip
Async/await installing extension
Diffstat (limited to 'test')
-rw-r--r--test/e2e/firefox/metamask.spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/firefox/metamask.spec.js b/test/e2e/firefox/metamask.spec.js
index a5d286235..8d4bfa0f6 100644
--- a/test/e2e/firefox/metamask.spec.js
+++ b/test/e2e/firefox/metamask.spec.js
@@ -307,14 +307,14 @@ describe('', function () {
})
-function installWebExt (driver, extension) {
- const cmd = new Command('moz-install-web-ext')
+async function installWebExt (driver, extension) {
+ const cmd = await new Command('moz-install-web-ext')
.setParameter('path', path.resolve(extension))
.setParameter('temporary', true)
- driver.getExecutor()
+ await driver.getExecutor()
.defineCommand(cmd.getName(), 'POST', '/session/:sessionId/moz/addon/install')
- return driver.schedule(cmd, 'installWebExt(' + extension + ')')
+ return await driver.schedule(cmd, 'installWebExt(' + extension + ')')
}