it('Allows selection of denarius', function(done) {
var params = {
selectText: "DNR - Denarius",
- firstAddress: "D9feDKo88SHir79b2Kqhk7JAtaddmxDjNV",
+ firstAddress: "DFdFMVUMzU9xX88EywXvAGwjiwpxyh9vKb",
};
testNetwork(done, params);
});
it('Allows selection of bitcoin gold', function(done) {
var params = {
selectText: "BTG - Bitcoin Gold",
- firstAddress: "GWYxuwSqANWGV3WT7Gpr6HE91euYXBqtwQ",
+ firstAddress: "GdDqug4WUsn5syNbSTHatNn4XnuwZtzedx",
};
testNetwork(done, params);
});
});
}, bip38delay + 5000);
+it('Shows the checksum for the entropy', function(done) {
+ driver.findElement(By.css('.use-entropy'))
+ .click();
+ driver.findElement(By.css('.entropy'))
+ .sendKeys("00000000000000000000000000000000");
+ driver.sleep(generateDelay).then(function() {
+ driver.findElement(By.css('.checksum'))
+ .getText()
+ .then(function(text) {
+ expect(text).toBe("1");
+ done();
+ });
+ });
+});
+
+it('Shows the checksum for the entropy with the correct groupings', function(done) {
+ driver.findElement(By.css('.use-entropy'))
+ .click();
+ // create a checksum of 20 bits, which spans multiple words
+ driver.findElement(By.css('.entropy'))
+ .sendKeys("F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
+ driver.sleep(generateDelay).then(function() {
+ driver.findElement(By.css('.checksum'))
+ .getText()
+ .then(function(text) {
+ // first group is 9 bits, second group is 11
+ expect(text).toBe("011010111 01110000110");
+ done();
+ });
+ });
+});
+
});