diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/tests.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 1e1f12e..c4f3188 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -4960,6 +4960,24 @@ it('Shows split prase cards', function(done) { | |||
4960 | }); | 4960 | }); |
4961 | }); | 4961 | }); |
4962 | 4962 | ||
4963 | // Pull Request 454 https://github.com/iancoleman/bip39/pull/454 | ||
4964 | // Add BIP85 support | ||
4965 | it('Show BIP85', function(done) { | ||
4966 | var originalPhrase = "install scatter logic circle pencil average fall shoe quantum disease suspect usage"; | ||
4967 | driver.findElement(By.css('.phrase')) | ||
4968 | .sendKeys(originalPhrase); | ||
4969 | driver.sleep(generateDelay).then(function() { | ||
4970 | driver.findElement(By.css('.showBip85')).click(); | ||
4971 | driver.findElement(By.css('.showBip85')).isSelected().then(function(isSelected) { | ||
4972 | expect(isSelected).toBe(true) | ||
4973 | driver.findElement(By.css('#bip85Field')).getAttribute("value").then(function(childMnemonic) { | ||
4974 | expect(childMnemonic).toBe('girl mad pet galaxy egg matter matrix prison refuse sense ordinary nose') | ||
4975 | done(); | ||
4976 | }) | ||
4977 | }); | ||
4978 | }); | ||
4979 | }); | ||
4980 | |||
4963 | // It allows manually specifying the entropy type | 4981 | // It allows manually specifying the entropy type |
4964 | it('Allows entropy type to be manually selected', function(done) { | 4982 | it('Allows entropy type to be manually selected', function(done) { |
4965 | driver.findElement(By.css('.use-entropy')) | 4983 | driver.findElement(By.css('.use-entropy')) |