aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/tests.js')
-rw-r--r--tests/spec/tests.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index efb395f..9d07edb 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
4965it('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
4964it('Allows entropy type to be manually selected', function(done) { 4982it('Allows entropy type to be manually selected', function(done) {
4965 driver.findElement(By.css('.use-entropy')) 4983 driver.findElement(By.css('.use-entropy'))