X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=0bb56f8ac6affee7b49ddcd9ca4f157a140eae73;hp=b1e333cc49fd184b775c98ff0e60d71ee7248fa1;hb=acf4c9b588c6abcc275b4e46df54248a2c913366;hpb=44a5d363c77e0330278f1fc14a13ae2a7b444c52 diff --git a/tests/spec/tests.js b/tests/spec/tests.js index b1e333c..0bb56f8 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: "BHbWitXCNgTf1BhsRDNMP186EeibuzmrBi", + }; + 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: "MDfAj9CzkC1HpcUiVGnHp8yKTa7WXgu8AY", + }; + testNetwork(done, params); +}); it('Allows selection of Minexcoin', function(done) { var params = { selectText: "MNX - Minexcoin", @@ -1054,6 +1068,13 @@ it('Allows selection of Putincoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Ravencoin', function(done) { + var params = { + selectText: "RVN - Ravencoin", + firstAddress: "RBuDoVNnzvFsEcX8XKPm8ic4mgiCzjUCNk", + }; + testNetwork(done, params); +}); it('Allows selection of Reddcoin', function(done) { var params = { selectText: "RDD - Reddcoin", @@ -1075,6 +1096,13 @@ it('Allows selection of Rubycoin', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Salus', function(done) { + var params = { + selectText: "SLS - Salus", + firstAddress: "SNzPi1CafHFm3WWjRo43aMgiaEEj3ogjww", + }; + testNetwork(done, params); +}); it('Allows selection of Smileycoin', function(done) { var params = { selectText: "SMLY - Smileycoin", @@ -1089,6 +1117,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: "yWQCTSkUst7ddYuebKsqa1kSoXEjpCkGKR", + }; + testNetwork(done, params); +}); it('Allows selection of Stratis', function(done) { var params = { selectText: "STRAT - Stratis", @@ -1264,7 +1306,76 @@ 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); +}); +it('Allows selection of ANON', function(done) { + var params = { + selectText: "ANON - ANON", + firstAddress: "AnU6pijpEeUZFWSTyM2qTqZQn996Zq1Xard", + }; + testNetwork(done, params); +}); +it('Allows selection of ProjectCoin', function(done) { + var params = { + selectText: "PRJ - ProjectCoin", + firstAddress: "PXZG97saRseSCftfe1mcFmfAA7pf6qBbaz", + }; + testNetwork(done, params); +}); +it('Allows selection of Phore', function(done) { + var params = { + selectText: "PHR - Phore", + firstAddress: "PJThxpoXAG6hqrmdeQQbVDX4TJtFTMMymC", + }; + testNetwork(done, params); +}); +it('Allows selection of Safecoin', function(done) { + var params = { + selectText: "SAFE - Safecoin", + firstAddress: "RmV56kPW7jeCmDA8sukHwbR7RZSbg9NFNF", + }; + testNetwork(done, params); + }); +it('Allows selection of Blocknode', function(done) { + var params = { + selectText: "BND - Blocknode", + firstAddress: "BG8xZSAur2jYLG9VXt8dYfkKxxeR7w9bSe", + }; + testNetwork(done, params); +}); +it('Allows selection of Blocknode Testnet', function(done) { + var params = { + selectText: "tBND - Blocknode Testnet", + firstAddress: "bSptsFyDktFSKpWveRywJsDoJA2TC6qfHv", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { @@ -2836,7 +2947,7 @@ it('Can change details while old addresses are still being generated', function( }); }); }); -}, generateDelay + 5000); +}, generateDelay + 10000); // Github issue 49 // padding for binary should give length with multiple of 256 @@ -3706,23 +3817,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');