From c18511dd0d3d1dfeec6c3f84985f3fecc34f3f8e Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 7 Aug 2017 18:58:08 +1000 Subject: [PATCH] Add myriadcoin test --- tests.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests.js b/tests.js index 2e2e38b..4a67ed7 100644 --- a/tests.js +++ b/tests.js @@ -902,6 +902,36 @@ page.open(url, function(status) { }); }, +// Network can be set to myriadcoin +function() { +page.open(url, function(status) { + // set the phrase and coin + var expected = "MJEswvRR46wh9BoiVj9DzKYMBkCramhoBV"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + $(".network option[selected]").removeAttr("selected"); + $(".network option").filter(function() { + return $(this).html() == "XMY - Myriadcoin"; + }).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("Myriadcoin address is incorrect"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); +}); +}, + // BIP39 seed is set from phrase function() { page.open(url, function(status) { -- 2.41.0