X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=367dc911e119d70df9037d090ddd891cda5e3f5b;hb=e5167afe2820b54571e73f796b35e62a17748128;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..367dc91 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); }); @@ -602,7 +602,7 @@ it('Allows selection of nubits', function(done) { it('Allows selection of bitcoin gold', function(done) { var params = { selectText: "BTG - Bitcoin Gold", - firstAddress: "GWYxuwSqANWGV3WT7Gpr6HE91euYXBqtwQ", + firstAddress: "GdDqug4WUsn5syNbSTHatNn4XnuwZtzedx", }; testNetwork(done, params); }); @@ -627,6 +627,13 @@ it('Allows selection of BlackCoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Neblio', function(done) { + var params = { + selectText: "NEBL - Neblio", + firstAddress: "NefkeEEvhusbHMmTRrxx7H9wFnUXd8qQsE", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { @@ -2937,4 +2944,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(); + }); + }); +}); + });