diff options
Diffstat (limited to 'tests.js')
-rw-r--r-- | tests.js | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1186,6 +1186,33 @@ page.open(url, function(status) { | |||
1186 | }, | 1186 | }, |
1187 | 1187 | ||
1188 | // More addresses can be generated | 1188 | // More addresses can be generated |
1189 | function() { | ||
1190 | page.open(url, function(status) { | ||
1191 | // set the phrase | ||
1192 | page.evaluate(function() { | ||
1193 | $(".phrase").val("abandon abandon ability"); | ||
1194 | $(".phrase").trigger("input"); | ||
1195 | }); | ||
1196 | waitForGenerate(function() { | ||
1197 | // generate more addresses | ||
1198 | page.evaluate(function() { | ||
1199 | $(".more").click(); | ||
1200 | }); | ||
1201 | waitForGenerate(function() { | ||
1202 | // check there are more addresses | ||
1203 | var addressCount = page.evaluate(function() { | ||
1204 | return $(".address").length; | ||
1205 | }); | ||
1206 | if (addressCount != 40) { | ||
1207 | console.log("More addresses cannot be generated"); | ||
1208 | fail(); | ||
1209 | } | ||
1210 | next(); | ||
1211 | }); | ||
1212 | }); | ||
1213 | }); | ||
1214 | }, | ||
1215 | |||
1189 | // A custom number of additional addresses can be generated | 1216 | // A custom number of additional addresses can be generated |
1190 | // Additional addresses are shown in order of derivation path | 1217 | // Additional addresses are shown in order of derivation path |
1191 | 1218 | ||