X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests.js;h=2800e6cf073b4ee6cc0f8a1dbcac9480eed55f63;hb=4d387bf5e3fb272de3f29f0c84f54db973e63494;hp=124b6ce685b5cbed506133c6bcce285c7f99eef8;hpb=8a89b9da97e437f9ce9476951896e51a9764800c;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests.js b/tests.js index 124b6ce..2800e6c 100644 --- a/tests.js +++ b/tests.js @@ -1252,6 +1252,43 @@ 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