From 8cd5e23162bd8b339954f9cd57fcb533e619a158 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 26 Aug 2016 12:29:31 +1000 Subject: [PATCH] Test private keys are shown in address table --- tests.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests.js b/tests.js index 6d24ecc..683af9b 100644 --- a/tests.js +++ b/tests.js @@ -1080,6 +1080,29 @@ page.open(url, function(status) { }, // Private key is shown +function() { +page.open(url, function(status) { + var expected = "L26cVSpWFkJ6aQkPkKmTzLqTdLJ923e6CzrVh9cmx21QHsoUmrEE"; + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + // get the address + waitForGenerate(function() { + var actual = page.evaluate(function() { + return $(".privkey:first").text(); + }); + if (actual != expected) { + console.log("Private key is not shown"); + console.log("Expected: " + expected); + console.log("Got: " + actual); + fail(); + } + next(); + }); +}); +}, + // Private key visibility can be toggled // More addresses can be generated -- 2.41.0