aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-16 03:19:52 +0800
committerkumavis <aaron@kumavis.me>2017-09-16 03:19:52 +0800
commit779e973b45ac3c5c48d471218ed63848a6653a56 (patch)
tree14fd5ef7f1d2c4f5b0b5af981ac84b01093744d4 /test
parentc5a2527c17f9c7f47645dc4d99694645d1985022 (diff)
downloadtangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.gz
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.bz2
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.lz
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.xz
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.tar.zst
tangerine-wallet-browser-779e973b45ac3c5c48d471218ed63848a6653a56.zip
tests - integration - mascara - small cleanup and timeout adjustments
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/first-time.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index e84a51c64..8b3997867 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -13,7 +13,7 @@ QUnit.test('render init screen', (assert) => {
async function runFirstTimeUsageTest(assert, done) {
let waitTime = 0
window.METAMASK_SKIP_RELOAD = true
- if (window.METAMASK_PLATFORM_TYPE === 'mascara') waitTime = 1000
+ if (window.METAMASK_PLATFORM_TYPE === 'mascara') waitTime = 2000
await timeout(waitTime)
const app = $('#app-content')
@@ -126,9 +126,7 @@ async function runFirstTimeUsageTest(assert, done) {
}
function timeout (time) {
- return new Promise(function (resolve, reject) {
- setTimeout(function () {
- resolve()
- }, time * 3 || 1500)
+ return new Promise((resolve, reject) => {
+ setTimeout(resolve, time || 1500)
})
} \ No newline at end of file