aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/lib
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-01 11:34:17 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-01 11:36:24 +0800
commit1880cda9b95f3274d56e1f4abc513d1d7ddd59c2 (patch)
tree5db1151d5b09c6f82a4a02a85ff3ae5fea8018dd /test/integration/lib
parent049e351c9d78dc13a81ba962b04ef96694b13682 (diff)
downloadtangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar.gz
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar.bz2
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar.lz
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar.xz
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.tar.zst
tangerine-wallet-browser-1880cda9b95f3274d56e1f4abc513d1d7ddd59c2.zip
Fix vault encrypting & unlocking bug
This is only a bug in dev, but was committed yesterday. Sometimes the `encrypt` method was being passed values other than the password as the encryption key, leading to un-unlockable vaults. To find this, and avoid it for all time hereafter, I added several more steps to our oft-neglected integration test suite, which now fully initializes a vault, locks it, and unlocks it again, to make sure all of those steps definitely work always.
Diffstat (limited to 'test/integration/lib')
-rw-r--r--test/integration/lib/encryptor-test.js4
-rw-r--r--test/integration/lib/first-time.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/lib/encryptor-test.js b/test/integration/lib/encryptor-test.js
index d42608152..897d22740 100644
--- a/test/integration/lib/encryptor-test.js
+++ b/test/integration/lib/encryptor-test.js
@@ -1,5 +1,7 @@
var encryptor = require('../../../app/scripts/lib/encryptor')
+QUnit.module('encryptor')
+
QUnit.test('encryptor:serializeBufferForStorage', function (assert) {
assert.expect(1)
var buf = new Buffer(2)
@@ -65,3 +67,5 @@ QUnit.test('encryptor:encrypt & decrypt with wrong password', function(assert) {
done()
})
})
+
+
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index d2fe31878..12c573db1 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -1,5 +1,7 @@
const PASSWORD = 'password123'
+QUnit.module('first time usage')
+
QUnit.test('agree to terms', function (assert) {
var done = assert.async()
let app