From a775b5c66d26e4c57b3d2bb9515e31c6ecd187a8 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 24 Aug 2016 20:04:23 +1000 Subject: [PATCH] Test toggling derivation path --- tests.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests.js b/tests.js index c9189a7..bb3c4fc 100644 --- a/tests.js +++ b/tests.js @@ -944,6 +944,32 @@ page.open(url, function(status) { }, // Derivation path visibility can be toggled +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + }); + // check the path is not shown + waitForGenerate(function() { + // toggle path visibility + page.evaluate(function() { + $(".index-toggle").click(); + }); + // check the path is not visible + var isInvisible = page.evaluate(function() { + return $(".index:first span").hasClass("invisible"); + }); + if (!isInvisible) { + console.log("Toggled derivation path is visible"); + fail(); + } + next(); + }); +}); +}, + // Address is shown // Addresses are shown in order of derivation path // Address visibility can be toggled -- 2.41.0