X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=7252cda22491f88b117e87e5bf758e26b67c9ecd;hp=0ffc73bd8d7d96ae2b43bc512fbeac228f2e7286;hb=8b2a093c8b97e2646bcf170661c7d5378f6fba97;hpb=0f1cfea04ce101cd42213e621e41e17c3063f3d2 diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 0ffc73b..7252cda 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -704,10 +704,17 @@ it('Allows selection of Bitcoinz', function(done) { }; testNetwork(done, params); }); +it('Allows selection of BitCloud', function(done) { + var params = { + selectText: "BTDX - BitCloud", + firstAddress: "BE9tnWxiR7ALgVhG8LLDi2W9pvtjzZMFoM", + }; + testNetwork(done, params); +}); it('Allows selection of Bitcore', function(done) { var params = { selectText: "BTX - Bitcore", - firstAddress: "1Dg18EtqhReS11e9h8khkLjWGLHVjPM2AB", + firstAddress: "2Rgp5Znhpy34TK4QmPkfCiYs9r4KovfTH9", }; testNetwork(done, params); }); @@ -956,6 +963,13 @@ it('Allows selection of Lynx', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Megacoin', function(done) { + var params = { + selectText: "MEC - Megacoin", + firstAddress: "MHHRRPHcF8DvQpEySFF9M6fR8Qv4JH2fFC", + }; + testNetwork(done, params); +}); it('Allows selection of Minexcoin', function(done) { var params = { selectText: "MNX - Minexcoin", @@ -1075,6 +1089,12 @@ it('Allows selection of Rubycoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Salus', function(done) { + var params = { + selectText: "SLS - Salus", + firstAddress: "SgdYBmVytcW2aCYitdegwkUcCU7RSqYokB", + }; +}); it('Allows selection of Smileycoin', function(done) { var params = { selectText: "SMLY - Smileycoin", @@ -1089,6 +1109,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", @@ -1096,6 +1130,13 @@ it('Allows selection of Stratis', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Stratis Test', function(done) { + var params = { + selectText: "TSTRAT - Stratis Testnet", + firstAddress: "TRLWm3dye4FRrDWouwYUSUZP96xb76mBE3", + }; + testNetwork(done, params); +}); it('Allows selection of Syscoin', function(done) { var params = { selectText: "SYS - Syscoin", @@ -1257,6 +1298,34 @@ it('Allows selection of Callisto', function(done) { }; testNetwork(done, params); }); +it('Allows selection of HUSH', function(done) { + var params = { + selectText: "HUSH - Hush", + firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA", + }; + testNetwork(done, params); +}); +it('Allows selection of ExchangeCoin', function(done) { + var params = { + selectText: "EXCC - ExchangeCoin", + firstAddress: "22txYKpFN5fwGwdSs2UBf7ywewbLM92YqK7E", + }; + testNetwork(done, params); +}); +it('Allows selection of Artax', function(done) { + var params = { + selectText: "XAX - Artax", + firstAddress: "AYxaQPY7XLidG31V7F3yNzwxPYpYzRqG4q", + }; + testNetwork(done, params); +}); +it('Allows selection of BitcoinGreen', function(done) { + var params = { + selectText: "BITG - Bitcoin Green", + firstAddress: "GeNGm9SkEfwbsws3UrrUSE2sJeyWYjzraY", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase @@ -2870,6 +2939,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 @@ -3692,23 +3768,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');