X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=64ed71b2f8e9ef037a640fcc6aacc19266411675;hb=63e2e0755f6bfa434ad530581a6d9bc7e7009d2f;hp=0944be4bbe8e4b4f6b1e59b290b8ad28b7fc2a2e;hpb=502898819506605c2b58821285c20054b999a8a7;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 0944be4..64ed71b 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -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,20 @@ 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); +}); +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) { @@ -2954,4 +2968,20 @@ it('Shows the checksum for the entropy with the correct groupings', function(don }); }); +it('Uses vprv for bitcoin testnet p2wpkh', function(done) { + selectNetwork("BTC - Bitcoin Testnet"); + driver.findElement(By.css('#bip84-tab a')) + .click() + driver.findElement(By.css('.phrase')) + .sendKeys('abandon abandon ability'); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.root-key')) + .getAttribute("value") + .then(function(path) { + expect(path).toBe("vprv9DMUxX4ShgxML9N2YV5CvWEebWrM9aJ5ULpbRRyzyWu6vs4BzTvbfFFrH41N5hVi7MYSfiugd765L3JmAfDM5po36Y8ouCKRDeYQwByCmS7"); + done(); + }) + }); +}); + });