aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2016-08-24 20:04:23 +1000
committerIan Coleman <coleman.ian@gmail.com>2016-08-24 20:04:23 +1000
commita775b5c66d26e4c57b3d2bb9515e31c6ecd187a8 (patch)
treeae3f567a276142e4fb8ff5519119c1e6f8fb9c58 /tests.js
parent4974fd7f0024213a8b5af4ff569a2510e711e3b0 (diff)
downloadBIP39-a775b5c66d26e4c57b3d2bb9515e31c6ecd187a8.tar.gz
BIP39-a775b5c66d26e4c57b3d2bb9515e31c6ecd187a8.tar.zst
BIP39-a775b5c66d26e4c57b3d2bb9515e31c6ecd187a8.zip
Test toggling derivation path
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index c9189a7..bb3c4fc 100644
--- a/tests.js
+++ b/tests.js
@@ -944,6 +944,32 @@ page.open(url, function(status) {
944}, 944},
945 945
946// Derivation path visibility can be toggled 946// Derivation path visibility can be toggled
947function() {
948page.open(url, function(status) {
949 // set the phrase
950 page.evaluate(function() {
951 $(".phrase").val("abandon abandon ability");
952 $(".phrase").trigger("input");
953 });
954 // check the path is not shown
955 waitForGenerate(function() {
956 // toggle path visibility
957 page.evaluate(function() {
958 $(".index-toggle").click();
959 });
960 // check the path is not visible
961 var isInvisible = page.evaluate(function() {
962 return $(".index:first span").hasClass("invisible");
963 });
964 if (!isInvisible) {
965 console.log("Toggled derivation path is visible");
966 fail();
967 }
968 next();
969 });
970});
971},
972
947// Address is shown 973// Address is shown
948// Addresses are shown in order of derivation path 974// Addresses are shown in order of derivation path
949// Address visibility can be toggled 975// Address visibility can be toggled