X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fspec%2Ftests.js;h=c4f318866228aa2397874ad1e607e0a6d8ad2c62;hb=1b54929bda9b7b71ada0cb04d1cb11ceb78328de;hp=8b3b07be1c967bcf9da3e8cff5bc727673c0731f;hpb=4669c88c672b0ec2ac636cae96a3fe2db94e2791;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 8b3b07b..c4f3188 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -1214,6 +1214,16 @@ it('Allows selection of FIO', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Firo', function(done) { + var params = { + selectText: "FIRO - Firo", + phrase: "abandon abandon ability", + firstAddress: "a6VcMdP4XgAA9Tr7xNszmPG5FZpfRf17Cq", + firstPubKey: "0236f2348c32dc62d69488b01988ed1154df261723ec60461cb6e62189984c62db", + firstPrivKey: "Y8k3XQRQrJoABEao4Sw45s744g6xth7yviNqFcN7zqPqKUJrrKTQ", + }; + testNetwork(done, params); +}); it('Allows selection of Firstcoin', function(done) { var params = { selectText: "FRST - Firstcoin", @@ -1844,16 +1854,6 @@ it('Allows selection of Wincoin', function(done) { }; testNetwork(done, params); }); -it('Allows selection of Zcoin', function(done) { - var params = { - selectText: "XZC - Zcoin", - phrase: "abandon abandon ability", - firstAddress: "a6VcMdP4XgAA9Tr7xNszmPG5FZpfRf17Cq", - firstPubKey: "0236f2348c32dc62d69488b01988ed1154df261723ec60461cb6e62189984c62db", - firstPrivKey: "Y8k3XQRQrJoABEao4Sw45s744g6xth7yviNqFcN7zqPqKUJrrKTQ", - }; - testNetwork(done, params); -}); it('Allows selection of Zcash', function(done) { var params = { selectText: "ZEC - Zcash", @@ -2155,6 +2155,16 @@ it('Allows selection of Stellar', function(done) { }; testNetwork(done, params); }); +it('Allows selection of Nano', function(done) { + var params = { + selectText: "NANO - Nano", + phrase: "deal wedding panda forum property artist whip total word student sea middle", + firstAddress: "nano_15fum9n68681dz73qyu37fuc9tro84gqm86eptdqpm9jutkfnt34agkoqpw5", + firstPubKey: "0dbb99e84310c05fca1bfb612b76a3eb15309d79988cb6977b4cf1dea4da6822", + firstPrivKey: "30633c8497cc47e0aefd52c7971ffd45e6c5d166274c7978feca3482a859c0af", + }; + testNetwork(done, params); +}); it('Allows selection of Wagerr', function(done) { var params = { selectText: "WGR - Wagerr", @@ -4950,6 +4960,24 @@ it('Shows split prase cards', function(done) { }); }); +// Pull Request 454 https://github.com/iancoleman/bip39/pull/454 +// Add BIP85 support +it('Show BIP85', function(done) { + var originalPhrase = "install scatter logic circle pencil average fall shoe quantum disease suspect usage"; + driver.findElement(By.css('.phrase')) + .sendKeys(originalPhrase); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.showBip85')).click(); + driver.findElement(By.css('.showBip85')).isSelected().then(function(isSelected) { + expect(isSelected).toBe(true) + driver.findElement(By.css('#bip85Field')).getAttribute("value").then(function(childMnemonic) { + expect(childMnemonic).toBe('girl mad pet galaxy egg matter matrix prison refuse sense ordinary nose') + done(); + }) + }); + }); +}); + // It allows manually specifying the entropy type it('Allows entropy type to be manually selected', function(done) { driver.findElement(By.css('.use-entropy'))