mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-06 02:43:49 +00:00
Test private keys are shown in address table
This commit is contained in:
23
tests.js
23
tests.js
@@ -1080,6 +1080,29 @@ page.open(url, function(status) {
|
||||
},
|
||||
|
||||
// Private key is shown
|
||||
function() {
|
||||
page.open(url, function(status) {
|
||||
var expected = "L26cVSpWFkJ6aQkPkKmTzLqTdLJ923e6CzrVh9cmx21QHsoUmrEE";
|
||||
// set the phrase
|
||||
page.evaluate(function() {
|
||||
$(".phrase").val("abandon abandon ability").trigger("input");
|
||||
});
|
||||
// get the address
|
||||
waitForGenerate(function() {
|
||||
var actual = page.evaluate(function() {
|
||||
return $(".privkey:first").text();
|
||||
});
|
||||
if (actual != expected) {
|
||||
console.log("Private key is not shown");
|
||||
console.log("Expected: " + expected);
|
||||
console.log("Got: " + actual);
|
||||
fail();
|
||||
}
|
||||
next();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
// Private key visibility can be toggled
|
||||
|
||||
// More addresses can be generated
|
||||
|
||||
Reference in New Issue
Block a user