From 00fd1a035cce0ac56f07bc8aaafb85674a15d77a Mon Sep 17 00:00:00 2001 From: mikeyb Date: Sun, 23 Apr 2017 17:00:13 -0700 Subject: [PATCH] add test for GAME --- tests.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests.js b/tests.js index d55b8f4..49d42c3 100644 --- a/tests.js +++ b/tests.js @@ -571,6 +571,36 @@ page.open(url, function(status) { }); }, +// Network can be set to game +function() { +page.open(url, function(status) { + // set the phrase and coin + var expected = "GSMY9bAp36cMR4zyT4uGVS7GFjpdXbao5Q"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + $(".network option[selected]").removeAttr("selected"); + $(".network option").filter(function() { + return $(this).html() == "GAME"; + }).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("GAME address is incorrect"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); +}); +}, + // Network can be set to namecoin function() { page.open(url, function(status) { -- 2.41.0