aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-01 08:01:51 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-01 08:01:51 +0800
commit049e351c9d78dc13a81ba962b04ef96694b13682 (patch)
tree451ea1eb060f1d70596046baf8df23dca9d2b8e9 /test/integration
parentfe533bbef2486bd22e4e23ee43927cff0e1d958e (diff)
downloadtangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar.gz
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar.bz2
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar.lz
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar.xz
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.tar.zst
tangerine-wallet-browser-049e351c9d78dc13a81ba962b04ef96694b13682.zip
Add integration tests for logging out and back in
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/lib/first-time.js28
1 files changed, 27 insertions, 1 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index 76b10f568..d2fe31878 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -56,7 +56,33 @@ QUnit.test('agree to terms', function (assert) {
var detail = app.find('.account-detail-section')[0]
assert.ok(detail, 'Account detail section loaded.')
- done()
+ var sandwich = app.find('.sandwich-expando')[0]
+ sandwich.click()
+
+ return wait()
+ }).then(function() {
+
+ var sandwich = app.find('.menu-droppo')[0]
+ var lock = sandwich.children[2]
+ assert.ok(lock, 'Lock menu item found')
+ lock.click()
+
+ return wait(1000)
+ }).then(function() {
+
+ var pwBox = app.find('#password-box')[0]
+ pwBox.value = PASSWORD
+
+ var createButton = app.find('button.primary')[0]
+ createButton.click()
+
+ return wait(1500)
+ }).then(function() {
+
+ var detail = app.find('.account-detail-section')[0]
+ assert.ok(detail, 'Account detail section loaded again.')
+
+ done()
})
})