aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-08-26 12:33:47 +1000
committerIan Coleman <coleman.ian@gmail.com>2016-08-26 12:33:47 +1000
commit6848d03ba16685c51d8af454fe3086ebb3e19386 (patch)
treed368b19c7697e4b43780a1031ca28acd7b893f91
parent8cd5e23162bd8b339954f9cd57fcb533e619a158 (diff)
downloadBIP39-6848d03ba16685c51d8af454fe3086ebb3e19386.tar.gz
BIP39-6848d03ba16685c51d8af454fe3086ebb3e19386.tar.zst
BIP39-6848d03ba16685c51d8af454fe3086ebb3e19386.zip
Test toggling private key visibility
-rw-r--r--tests.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 683af9b..f82ce0d 100644
--- a/tests.js
+++ b/tests.js
@@ -1104,6 +1104,30 @@ page.open(url, function(status) {
1104}, 1104},
1105 1105
1106// Private key visibility can be toggled 1106// Private key visibility can be toggled
1107function() {
1108page.open(url, function(status) {
1109 // set the phrase
1110 page.evaluate(function() {
1111 $(".phrase").val("abandon abandon ability");
1112 $(".phrase").trigger("input");
1113 });
1114 waitForGenerate(function() {
1115 // toggle private key visibility
1116 page.evaluate(function() {
1117 $(".private-key-toggle").click();
1118 });
1119 // check the private key is not visible
1120 var isInvisible = page.evaluate(function() {
1121 return $(".privkey:first span").hasClass("invisible");
1122 });
1123 if (!isInvisible) {
1124 console.log("Toggled private key is visible");
1125 fail();
1126 }
1127 next();
1128 });
1129});
1130},
1107 1131
1108// More addresses can be generated 1132// More addresses can be generated
1109// A custom number of additional addresses can be generated 1133// A custom number of additional addresses can be generated