From 8a9f39137623a5ed364c3e8da7c1d770e63de7c6 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 23 Aug 2017 09:41:53 +1000 Subject: Test for Maza network --- tests.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests.js b/tests.js index 464a15d..1cf5b22 100644 --- a/tests.js +++ b/tests.js @@ -992,6 +992,36 @@ page.open(url, function(status) { }); }, +// Network can be set to maza +function() { +page.open(url, function(status) { + // set the phrase and coin + var expected = "MGW4Bmi2NEm4PxSjgeFwhP9vg18JHoRnfw"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + $(".network option[selected]").removeAttr("selected"); + $(".network option").filter(function() { + return $(this).html() == "MAZA - Maza"; + }).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("Maza 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) { -- cgit v1.2.3