aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-09-14 11:25:27 +0800
committerkumavis <aaron@kumavis.me>2017-09-14 11:25:27 +0800
commitb53d04c40975adc0fadf20bc6ca875bd9c39e595 (patch)
tree8bd46765152728172314bed921e498cf346f3b35 /test
parent610f09262d8686cf975b25ffb6e2b5371e3d55c0 (diff)
downloadtangerine-wallet-browser-b53d04c40975adc0fadf20bc6ca875bd9c39e595.tar.gz
tangerine-wallet-browser-b53d04c40975adc0fadf20bc6ca875bd9c39e595.tar.zst
tangerine-wallet-browser-b53d04c40975adc0fadf20bc6ca875bd9c39e595.zip
tests - integration - get flat and mascara tests closer to compatible
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/first-time.js12
-rw-r--r--test/mascara.conf.js3
2 files changed, 6 insertions, 9 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index 38a94e551..e023351bc 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -10,19 +10,11 @@ QUnit.test('render init screen', (assert) => {
})
})
-// QUnit.testDone(({ module, name, total, passed, failed, skipped, todo, runtime }) => {
-// if (failed > 0) {
-// const app = $('iframe').contents()[0].documentElement
-// console.warn('Test failures - dumping DOM:')
-// console.log(app.innerHTML)
-// }
-// })
-
async function runFirstTimeUsageTest(assert, done) {
await timeout()
- const app = $('#app-content .mock-app-root')
+ const app = $('#app-content')
// recurse notices
while (true) {
@@ -32,10 +24,12 @@ async function runFirstTimeUsageTest(assert, done) {
const termsPage = app.find('.markdown')[0]
termsPage.scrollTop = termsPage.scrollHeight
await timeout()
+ console.log('Clearing notice')
button.click()
await timeout()
} else {
// exit loop
+ console.log('No more notices...')
break
}
}
diff --git a/test/mascara.conf.js b/test/mascara.conf.js
index b4ec5846f..97e53fc2b 100644
--- a/test/mascara.conf.js
+++ b/test/mascara.conf.js
@@ -10,5 +10,8 @@ module.exports = function(config) {
settings.files.push({ pattern: 'dist/mascara/background.js', watched: false, included: false, served: true }),
settings.proxies['/background.js'] = '/base/dist/mascara/background.js'
+ // use this to keep the browser open for debugging
+ settings.browserNoActivityTimeout = 10000000
+
config.set(settings)
}