From: Ian Coleman Date: Sun, 10 Nov 2019 23:11:40 +0000 (+1100) Subject: Test for Pull Request 271 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=commitdiff_plain;h=659b06a7b8fac1ba723f0bf95e5d8f630619e2f2 Test for Pull Request 271 --- 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(); + }); + }); +}); + });