aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index f76baf8..0176ba8 100644
--- a/tests.js
+++ b/tests.js
@@ -1456,6 +1456,27 @@ page.open(url, function(status) {
1456}, 1456},
1457 1457
1458// Incorrect word shows suggested replacement 1458// Incorrect word shows suggested replacement
1459function() {
1460page.open(url, function(status) {
1461 // set the root key
1462 page.evaluate(function() {
1463 $(".phrase").val("abandon abandon abiliti").trigger("input");
1464 });
1465 // check there is a suggestion shown
1466 waitForFeedback(function() {
1467 var feedback = page.evaluate(function() {
1468 return $(".feedback").text();
1469 });
1470 if (feedback.indexOf("did you mean ability?") < 0) {
1471 console.log("Incorrect word does not show suggested replacement");
1472 console.log("Error: " + error);
1473 fail();
1474 }
1475 next();
1476 });
1477});
1478},
1479
1459// Incorrect BIP32 root key shows error 1480// Incorrect BIP32 root key shows error
1460// Derivation path not starting with m shows error 1481// Derivation path not starting with m shows error
1461// Derivation path containing invalid characters shows useful error 1482// Derivation path containing invalid characters shows useful error