X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=0944be4bbe8e4b4f6b1e59b290b8ad28b7fc2a2e;hb=502898819506605c2b58821285c20054b999a8a7;hp=f56b18d0aea1192785b540c21ee31641a38e4613;hpb=09d63290a45066e4bef3bdb31e81c50ff70f7b85;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests/spec/tests.js b/tests/spec/tests.js index f56b18d..0944be4 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -426,7 +426,7 @@ it('Allows selection of dogecoin', function(done) { it('Allows selection of denarius', function(done) { var params = { selectText: "DNR - Denarius", - firstAddress: "D9feDKo88SHir79b2Kqhk7JAtaddmxDjNV", + firstAddress: "DFdFMVUMzU9xX88EywXvAGwjiwpxyh9vKb", }; testNetwork(done, params); }); @@ -2937,4 +2937,21 @@ it('Shows the checksum for the entropy', function(done) { }); }); +it('Shows the checksum for the entropy with the correct groupings', function(done) { + driver.findElement(By.css('.use-entropy')) + .click(); + // create a checksum of 20 bits, which spans multiple words + driver.findElement(By.css('.entropy')) + .sendKeys("F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.checksum')) + .getText() + .then(function(text) { + // first group is 9 bits, second group is 11 + expect(text).toBe("011010111 01110000110"); + done(); + }); + }); +}); + });