From 659b06a7b8fac1ba723f0bf95e5d8f630619e2f2 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 11 Nov 2019 10:11:40 +1100 Subject: Test for Pull Request 271 --- tests/spec/tests.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 1725a2d..977294c 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -4118,4 +4118,21 @@ it('Can use root keys to generate segwit table rows', function(done) { }); }); +// Pull Request 271 +// Allow converting mnemonic back to raw entropy value +fit('Converts mnemonics into raw entropy', function(done) { + driver.findElement(By.css('.phrase')) + .sendKeys('abandon abandon about'); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.use-entropy')) + .click(); + driver.findElement(By.css('.entropy')) + .getAttribute("value") + .then(function(entropy) { + expect(entropy).toBe("00000001"); + done(); + }); + }); +}); + }); -- cgit v1.2.3