From 21372fab36d3a500feda29b52ae8d8a007c11f8f Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 26 Aug 2016 12:26:33 +1000 Subject: [PATCH] Test toggling address visibility --- tests.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tests.js b/tests.js index 12a6c5b..6d24ecc 100644 --- a/tests.js +++ b/tests.js @@ -978,7 +978,6 @@ page.open(url, function(status) { $(".phrase").val("abandon abandon ability"); $(".phrase").trigger("input"); }); - // check the path is not shown waitForGenerate(function() { // toggle path visibility page.evaluate(function() { @@ -1053,7 +1052,33 @@ page.open(url, function(status) { }); }); }, + // Address visibility can be toggled +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + }); + waitForGenerate(function() { + // toggle address visibility + page.evaluate(function() { + $(".address-toggle").click(); + }); + // check the address is not visible + var isInvisible = page.evaluate(function() { + return $(".address:first span").hasClass("invisible"); + }); + if (!isInvisible) { + console.log("Toggled address is visible"); + fail(); + } + next(); + }); +}); +}, + // Private key is shown // Private key visibility can be toggled -- 2.41.0