X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests.js;h=e5a40ae1447b138d7043ee5a462ea3e1a59fd674;hb=7ff86d4c983f1e8c80b87b31acfd69fcf98c1b82;hp=124b6ce685b5cbed506133c6bcce285c7f99eef8;hpb=8a89b9da97e437f9ce9476951896e51a9764800c;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests.js b/tests.js index 124b6ce..e5a40ae 100644 --- a/tests.js +++ b/tests.js @@ -1252,11 +1252,156 @@ page.open(url, function(status) { }, // Additional addresses are shown in order of derivation path +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + waitForGenerate(function() { + // generate more addresses + page.evaluate(function() { + $(".more").click(); + }); + // get the derivation paths + waitForGenerate(function() { + var paths = page.evaluate(function() { + return $(".index").map(function(i, e) { + return $(e).text(); + }); + }); + if (paths.length != 40) { + console.log("Total additional paths is less than expected: " + paths.length); + fail(); + } + for (var i=0; i