aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Coleman <ian@iancoleman.io>2018-03-12 10:23:28 +1100
committerIan Coleman <ian@iancoleman.io>2018-03-12 11:31:41 +1100
commit09d63290a45066e4bef3bdb31e81c50ff70f7b85 (patch)
tree1181aacbff654665f4eac37922bf236eb2b063e7 /tests
parentd6cade868f67c10da6fcf20e51643439e9d3be77 (diff)
downloadBIP39-09d63290a45066e4bef3bdb31e81c50ff70f7b85.tar.gz
BIP39-09d63290a45066e4bef3bdb31e81c50ff70f7b85.tar.zst
BIP39-09d63290a45066e4bef3bdb31e81c50ff70f7b85.zip
Show the checksum value in the entropy details
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/tests.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 9e78016..f56b18d 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -2922,4 +2922,19 @@ it('Can encrypt private keys using BIP38', function(done) {
2922 }); 2922 });
2923}, bip38delay + 5000); 2923}, bip38delay + 5000);
2924 2924
2925it('Shows the checksum for the entropy', function(done) {
2926 driver.findElement(By.css('.use-entropy'))
2927 .click();
2928 driver.findElement(By.css('.entropy'))
2929 .sendKeys("00000000000000000000000000000000");
2930 driver.sleep(generateDelay).then(function() {
2931 driver.findElement(By.css('.checksum'))
2932 .getText()
2933 .then(function(text) {
2934 expect(text).toBe("1");
2935 done();
2936 });
2937 });
2938});
2939
2925}); 2940});