aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 + ')')
}