Test private keys are shown in address table

This commit is contained in:
Ian Coleman
2016-08-26 12:29:31 +10:00
parent 21372fab36
commit 8cd5e23162

View File

@@ -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