diff options
Diffstat (limited to 'tests.js')
-rw-r--r-- | tests.js | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 |
1107 | function() { | ||
1108 | page.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 |