};
testNetwork(done, params);
});
+it('Allows selection of game', function(done) {
+ var params = {
+ selectText: "KMD - Komodo",
+ firstAddress: "RJL777dmaB3PYqHEJGMJKWWkLPdu1ypGi4",
+ };
+ testNetwork(done, params);
+});
it('Allows selection of namecoin', function(done) {
var params = {
selectText: "NMC - Namecoin",
};
testNetwork(done, params);
});
+it('Allows selection of onixcoin', function(done) {
+ var params = {
+ selectText: "ONX - Onixcoin",
+ firstAddress: "XGwMqddeKjT3ddgX73QokjVbCL3aK6Yxfk",
+ };
+ testNetwork(done, params);
+});
it('Allows selection of peercoin', function(done) {
var params = {
selectText: "PPC - Peercoin",
});
});
+it('Shows the entropy used by the PRNG when clicking generate', function(done) {
+ driver.findElement(By.css('.generate')).click();
+ driver.sleep(generateDelay).then(function() {
+ driver.findElement(By.css('.entropy'))
+ .getAttribute("value")
+ .then(function(entropy) {
+ expect(entropy).not.toBe("");
+ done();
+ });
+ });
+});
+
+it('Shows the index of each word in the mnemonic', function(done) {
+ driver.findElement(By.css('.phrase'))
+ .sendKeys("abandon abandon ability");
+ driver.sleep(generateDelay).then(function() {
+ driver.findElement(By.css('.use-entropy'))
+ .click();
+ driver.findElement(By.css('.word-indexes'))
+ .getText()
+ .then(function(indexes) {
+ expect(indexes).toBe("0, 0, 1");
+ done();
+ });
+ });
+});
+
});