From 09d63290a45066e4bef3bdb31e81c50ff70f7b85 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 12 Mar 2018 10:23:28 +1100 Subject: Show the checksum value in the entropy details --- tests/spec/tests.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/spec') 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) { }); }, bip38delay + 5000); +it('Shows the checksum for the entropy', function(done) { + driver.findElement(By.css('.use-entropy')) + .click(); + driver.findElement(By.css('.entropy')) + .sendKeys("00000000000000000000000000000000"); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.checksum')) + .getText() + .then(function(text) { + expect(text).toBe("1"); + done(); + }); + }); +}); + }); -- cgit v1.2.3