aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 90dcab5..49a95b7 100644
--- a/tests.js
+++ b/tests.js
@@ -1500,6 +1500,38 @@ page.open(url, function(status) {
1500}, 1500},
1501 1501
1502// Derivation path not starting with m shows error 1502// Derivation path not starting with m shows error
1503function() {
1504page.open(url, function(status) {
1505 // set the mnemonic phrase
1506 page.evaluate(function() {
1507 $(".phrase").val("abandon abandon ability").trigger("input");
1508 });
1509 waitForGenerate(function() {
1510 // select the bip32 tab so custom derivation path can be set
1511 page.evaluate(function() {
1512 $("#bip32-tab a").click();
1513 });
1514 waitForGenerate(function() {
1515 // set the incorrect derivation path
1516 page.evaluate(function() {
1517 $("#bip32 .path").val("n/0").trigger("input");
1518 });
1519 waitForFeedback(function() {
1520 var feedback = page.evaluate(function() {
1521 return $(".feedback").text();
1522 });
1523 if (feedback != "First character must be 'm'") {
1524 console.log("Derivation path not starting with m should show error");
1525 console.log("Error: " + error);
1526 fail();
1527 }
1528 next();
1529 });
1530 });
1531 });
1532});
1533},
1534
1503// Derivation path containing invalid characters shows useful error 1535// Derivation path containing invalid characters shows useful error
1504 1536
1505// Github Issue 11: Default word length is 15 1537// Github Issue 11: Default word length is 15