X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=80add739b978ad652968fcd1080c0fe17306c7bc;hp=167a4969f58b4e818421db249cbd172da2329067;hb=680b94c1efc9a70d82f611de3e0c3043b395b9dc;hpb=5dfe77e4a3f5dafaf74bf0a4a86d94f862ce9965 diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 167a496..80add73 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -423,6 +423,13 @@ it('Allows selection of dogecoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of denarius', function(done) { + var params = { + selectText: "DNR - Denarius", + firstAddress: "DFdFMVUMzU9xX88EywXvAGwjiwpxyh9vKb", + }; + testNetwork(done, params); +}); it('Allows selection of shadowcash', function(done) { var params = { selectText: "SDC - ShadowCash", @@ -595,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); }); @@ -613,6 +620,27 @@ it('Allows selection of AXE', function(done) { }; testNetwork(done, params); }); +it('Allows selection of BlackCoin', function(done) { + var params = { + selectText: "BLK - BlackCoin", + firstAddress: "B5MznAKwj7uQ42vDz3w4onhBXPcqhTwJ9z", + }; + testNetwork(done, params); +}); +it('Allows selection of Neblio', function(done) { + var params = { + selectText: "NEBL - Neblio", + firstAddress: "NefkeEEvhusbHMmTRrxx7H9wFnUXd8qQsE", + }; + testNetwork(done, params); +}); +it('Allows selection of Beetlecoin', function(done) { + var params = { + selectText: "BEET - Beetlecoin", + firstAddress: "BVmtbEsGrjpknprmpHFq26z4kYHJUFHE71", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { @@ -2908,4 +2936,36 @@ 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(); + }); + }); +}); + +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(); + }); + }); +}); + });