]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - tests/spec/tests.js
Test for Pull Request 271
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / tests / spec / tests.js
index 2add419ba0253aba769bf36f9caf47ccf70c947b..977294ca28ade58b2a55c390b52e37792ae2cb50 100644 (file)
@@ -1608,6 +1608,13 @@ it('Allows selection of Groestlcoin Testnet', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Elastos', function(done) {
+    var params = {
+        selectText: "ELA - Elastos",
+        firstAddress: "EMccDcsn3SwPDcfeQMf3w7utqi8ioWYtkg",
+    };
+    testNetwork(done, params);
+});
 
 // BIP39 seed is set from phrase
 it('Sets the bip39 seed from the prhase', function(done) {
@@ -4111,4 +4118,21 @@ it('Can use root keys to generate segwit table rows', function(done) {
     });
 });
 
+// Pull Request 271
+// Allow converting mnemonic back to raw entropy value
+fit('Converts mnemonics into raw entropy', function(done) {
+    driver.findElement(By.css('.phrase'))
+        .sendKeys('abandon abandon about');
+    driver.sleep(generateDelay).then(function() {
+        driver.findElement(By.css('.use-entropy'))
+            .click();
+        driver.findElement(By.css('.entropy'))
+            .getAttribute("value")
+            .then(function(entropy) {
+                expect(entropy).toBe("00000001");
+                done();
+            });
+    });
+});
+
 });