X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests.js;h=f346729f00e0a0e0bb8012aa6bd46b1556db40c2;hb=c0386f3b78c31bc23c935603abe9ed9fafe300d4;hp=ecd9f9a85648acc46100d63bd6d275eb620872ed;hpb=56b1275f405f900872f95fc440c487fd478c3094;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/tests.js b/tests.js index ecd9f9a..f346729 100644 --- a/tests.js +++ b/tests.js @@ -601,6 +601,35 @@ page.open(url, function(status) { }); }, +function() { +page.open(url, function(status) { + // set the phrase and coin + var expected = "yaR52EN4oojdJfBgzWJTymC4uuCLPT29Gw"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + $(".network option[selected]").removeAttr("selected"); + $(".network option").filter(function() { + return $(this).html() == "DASH Testnet"; + }).prop("selected", true); + $(".network").trigger("change"); + }); + // check the address is generated correctly + waitForGenerate(function() { + var actual = page.evaluate(function() { + return $(".address:first").text(); + }); + if (actual != expected) { + console.log("DASH Testnet address is incorrect"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); +}); +}, + // Network can be set to game function() { page.open(url, function(status) {