mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-05-25 01:54:44 +00:00
Test toggling derivation path
This commit is contained in:
@@ -944,6 +944,32 @@ page.open(url, function(status) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Derivation path visibility can be toggled
|
// Derivation path visibility can be toggled
|
||||||
|
function() {
|
||||||
|
page.open(url, function(status) {
|
||||||
|
// set the phrase
|
||||||
|
page.evaluate(function() {
|
||||||
|
$(".phrase").val("abandon abandon ability");
|
||||||
|
$(".phrase").trigger("input");
|
||||||
|
});
|
||||||
|
// check the path is not shown
|
||||||
|
waitForGenerate(function() {
|
||||||
|
// toggle path visibility
|
||||||
|
page.evaluate(function() {
|
||||||
|
$(".index-toggle").click();
|
||||||
|
});
|
||||||
|
// check the path is not visible
|
||||||
|
var isInvisible = page.evaluate(function() {
|
||||||
|
return $(".index:first span").hasClass("invisible");
|
||||||
|
});
|
||||||
|
if (!isInvisible) {
|
||||||
|
console.log("Toggled derivation path is visible");
|
||||||
|
fail();
|
||||||
|
}
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// Address is shown
|
// Address is shown
|
||||||
// Addresses are shown in order of derivation path
|
// Addresses are shown in order of derivation path
|
||||||
// Address visibility can be toggled
|
// Address visibility can be toggled
|
||||||
|
|||||||
Reference in New Issue
Block a user