X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=e0eea6b1c4bf75f153a7cf8a97c3f26918f7afb6;hp=e09f2cb5d1d6348539c23d04fa87b02983edbb42;hb=ae51db39a33c17abaddad05e2453d11aabb3a461;hpb=e96d3876c4cbbfd219c0fe4de4b893d3e9553e60 diff --git a/tests/spec/tests.js b/tests/spec/tests.js index e09f2cb..e0eea6b 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -296,7 +296,7 @@ describe('BIP39 Tool Tests', function() { beforeEach(function(done) { driver = newDriver(); - driver.get(url).then(done); + driver.get(url).then(done); }); // Close the website after each test is run (so that it is opened fresh each time) @@ -707,7 +707,7 @@ it('Allows selection of Bitcoinz', function(done) { it('Allows selection of Bitcore', function(done) { var params = { selectText: "BTX - Bitcore", - firstAddress: "1Dg18EtqhReS11e9h8khkLjWGLHVjPM2AB", + firstAddress: "2Rgp5Znhpy34TK4QmPkfCiYs9r4KovfTH9", }; testNetwork(done, params); }); @@ -1089,6 +1089,20 @@ it('Allows selection of Solarcoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of stash', function(done) { + var params = { + selectText: "STASH - Stash", + firstAddress: "XxwAsWB7REDKmAvHA85SbEZQQtpxeUDxS3", + }; + testNetwork(done, params); +}); +it('Allows selection of stash testnet', function(done) { + var params = { + selectText: "STASH - Stash Testnet", + firstAddress: "YdbhtMuGsPSkE6bPdNTHoFSszQKmK4S5LT", + }; + testNetwork(done, params); +}); it('Allows selection of Stratis', function(done) { var params = { selectText: "STRAT - Stratis", @@ -1098,7 +1112,7 @@ it('Allows selection of Stratis', function(done) { }); it('Allows selection of Stratis Test', function(done) { var params = { - selectText: "TSTRAT - Stratis Test", + selectText: "TSTRAT - Stratis Testnet", firstAddress: "TRLWm3dye4FRrDWouwYUSUZP96xb76mBE3", }; testNetwork(done, params); @@ -1215,6 +1229,62 @@ it('Allows selection of Energi', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Ethereum Classic', function(done) { + var params = { + selectText: "ETC - Ethereum Classic", + firstAddress: "0x3c05e5556693808367afB62eF3b63e35d6eD249A", + }; + testNetwork(done, params); +}); +it('Allows selection of Pirl', function(done) { + var params = { + selectText: "PIRL - Pirl", + firstAddress: "0xe77FC0723dA122B5025CA79193c28563eB47e776", + }; + testNetwork(done, params); +}); +it('Allows selection of MIX', function(done) { + var params = { + selectText: "MIX - MIX", + firstAddress: "0x98BC5e63aeb6A4e82d72850d20710F07E29A29F1", + }; + testNetwork(done, params); +}); +it('Allows selection of Musicoin', function(done) { + var params = { + selectText: "MUSIC - Musicoin", + firstAddress: "0xDc060e4A0b0313ea83Cf6B3A39B9db2D29004897", + }; + testNetwork(done, params); +}); +it('Allows selection of Poa', function(done) { + var params = { + selectText: "POA - Poa", + firstAddress: "0x53aF28d754e106210C3d0467Dd581eaf7e3C5e60", + }; + testNetwork(done, params); +}); +it('Allows selection of Expanse', function(done) { + var params = { + selectText: "EXP - Expanse", + firstAddress: "0xf57FeAbf26582b6E3E666559d3B1Cc6fB2b2c5F6", + }; + testNetwork(done, params); +}); +it('Allows selection of Callisto', function(done) { + var params = { + selectText: "CLO - Callisto", + firstAddress: "0x4f9364F7420B317266C51Dc8eB979717D4dE3f4E", + }; + testNetwork(done, params); +}); +it('Allows selection of HUSH', function(done) { + var params = { + selectText: "HUSH - Hush", + firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase @@ -2828,6 +2898,13 @@ it('Can set the derivation path on bip32 tab for multibit', function(done) { useHardenedAddresses: null, }); }); +it('Can set the derivation path on bip32 tab for coinomi/ledger', function(done) { + testClientSelect(done, { + selectValue: "3", + bip32path: "m/44'/0'/0'", + useHardenedAddresses: null, + }); +}); // github issue 58 // https://github.com/iancoleman/bip39/issues/58 @@ -3650,23 +3727,6 @@ it('Does not show a warning if entropy is stronger than mnemonic length', functi }); }); -it('Shows a warning for litecoin BIP84 (which does not have p2wpkh params)', function(done) { - driver.findElement(By.css('.phrase')) - .sendKeys('abandon abandon ability'); - selectNetwork("LTC - Litecoin"); - driver.findElement(By.css('#bip84-tab a')) - .click() - // bip84 unavailable is shown - driver.sleep(feedbackDelay).then(function() { - driver.findElement(By.css('#bip84 .unavailable')) - .getAttribute("class") - .then(function(classes) { - expect(classes).not.toContain("hidden"); - done(); - }); - }); -}); - it('Shows litecoin BIP49 addresses', function(done) { driver.findElement(By.css('.phrase')) .sendKeys('abandon abandon ability');