aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-01 07:18:26 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-01 07:18:26 +0800
commitfe533bbef2486bd22e4e23ee43927cff0e1d958e (patch)
tree0d36934480200567b3304406374439a9f547d28b
parent549bbfd05f0507a33c9df95111a71b0097f3b355 (diff)
downloadtangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar.gz
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar.bz2
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar.lz
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar.xz
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.tar.zst
tangerine-wallet-browser-fe533bbef2486bd22e4e23ee43927cff0e1d958e.zip
Add more integration tests
Integration tests now: - Scroll through terms - Accept terms - Confirm seed phrase - Verify account detail screen
-rw-r--r--test/integration/lib/first-time.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index e7d4ffaa2..76b10f568 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -32,6 +32,31 @@ QUnit.test('agree to terms', function (assert) {
var terms = app.find('h3.terms-header')[0]
assert.equal(terms.textContent, 'MetaMask Terms & Conditions', 'Showing TOS')
+ // Scroll through terms
+ var scrollable = app.find('.markdown')[0]
+ scrollable.scrollTop = scrollable.scrollHeight
+
+ return wait(10)
+ }).then(function() {
+
+ var button = app.find('button')[0] // Agree button
+ button.click()
+
+ return wait(1000)
+ }).then(function() {
+
+ var created = app.find('h3')[0]
+ assert.equal(created.textContent, 'Vault Created', 'Vault created screen')
+
+ var button = app.find('button')[0] // Agree button
+ button.click()
+
+ return wait(1000)
+ }).then(function() {
+
+ var detail = app.find('.account-detail-section')[0]
+ assert.ok(detail, 'Account detail section loaded.')
done()
+
})
})