}
phraseChangeTimeoutEvent = setTimeout(function() {
phraseChanged();
- var entropy = mnemonic.toRawEntropyBin(DOM.phrase.val());
+ var entropy = mnemonic.toRawEntropyHex(DOM.phrase.val());
if (entropy !== null) {
DOM.entropyMnemonicLength.val("raw");
DOM.entropy.val(entropy);
+ DOM.entropyTypeInputs.filter("[value='hexadecimal']").prop("checked", true);
+ entropyTypeAutoDetect = false;
}
}, 400);
}
driver.findElement(By.css('.entropy'))
.getAttribute("value")
.then(function(entropy) {
- expect(entropy).toBe("00000000000000000000000000000001");
+ expect(entropy).toBe("00000001");
driver.findElement(By.css('.phrase'))
.getAttribute("value")
.then(function(phrase) {