aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/helpers.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-11-27 21:38:46 +0800
committerGitHub <noreply@github.com>2018-11-27 21:38:46 +0800
commitd59ac281944b19e27f899edd2c90c2377ba83853 (patch)
tree93fd4d24535cf08c513cec40cc7edc65a39c4ce7 /test/e2e/beta/helpers.js
parent486f9931c469ac1829b6f433ad3ebdc11821df22 (diff)
parent34da38817a14080982f514cee614abcd3758b0f7 (diff)
downloadtangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar.gz
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar.bz2
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar.lz
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar.xz
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.tar.zst
tangerine-wallet-browser-d59ac281944b19e27f899edd2c90c2377ba83853.zip
Merge pull request #5835 from MetaMask/revert-5412-after-install-steps
Open full-screen UI on install
Diffstat (limited to 'test/e2e/beta/helpers.js')
-rw-r--r--test/e2e/beta/helpers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/beta/helpers.js b/test/e2e/beta/helpers.js
index 5e3f45b2b..b6fc35e08 100644
--- a/test/e2e/beta/helpers.js
+++ b/test/e2e/beta/helpers.js
@@ -120,6 +120,13 @@ async function switchToWindowWithTitle (driver, title, windowHandles) {
}
}
+/**
+ * Closes all windows except those in the given list of exceptions
+ * @param {object} driver the WebDriver instance
+ * @param {string|Array<string>} exceptions the list of window handle exceptions
+ * @param {Array?} windowHandles the full list of window handles
+ * @returns {Promise<void>}
+ */
async function closeAllWindowHandlesExcept (driver, exceptions, windowHandles) {
exceptions = typeof exceptions === 'string' ? [ exceptions ] : exceptions
windowHandles = windowHandles || await driver.getAllWindowHandles()