aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2019-09-16 10:46:32 +1000
committerGitHub <noreply@github.com>2019-09-16 10:46:32 +1000
commitbc32c841663821ba94c12afc5a7e73d689c7b153 (patch)
tree11d636d9e8f8708dd5532e449d1e3dec71bd13ea /tests
parent5b689bd6e77f047eff37e43f0ffa487cb59edc45 (diff)
parent76120cb0b42530e3a40476272c1edbeac679db35 (diff)
downloadBIP39-bc32c841663821ba94c12afc5a7e73d689c7b153.tar.gz
BIP39-bc32c841663821ba94c12afc5a7e73d689c7b153.tar.zst
BIP39-bc32c841663821ba94c12afc5a7e73d689c7b153.zip
Merge pull request #353 from Groestlcoin/add-groestlcoin
Add Groestlcoin with Tests
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/tests.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index ab82e2e..2add419 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1594,6 +1594,20 @@ it('Allows selection of Wagerr', function(done) {
1594 }; 1594 };
1595 testNetwork(done, params); 1595 testNetwork(done, params);
1596}); 1596});
1597it('Allows selection of Groestlcoin', function(done) {
1598 var params = {
1599 selectText: "GRS - Groestlcoin",
1600 firstAddress: "FZycsFvZ1eH1hbtyjBpAgJSukVw1bN6PBN",
1601 };
1602 testNetwork(done, params);
1603});
1604it('Allows selection of Groestlcoin Testnet', function(done) {
1605 var params = {
1606 selectText: "GRS - Groestlcoin Testnet",
1607 firstAddress: "mucaU5iiDaJDb69BHLeDv8JFfGiygRPne9",
1608 };
1609 testNetwork(done, params);
1610});
1597 1611
1598// BIP39 seed is set from phrase 1612// BIP39 seed is set from phrase
1599it('Sets the bip39 seed from the prhase', function(done) { 1613it('Sets the bip39 seed from the prhase', function(done) {
@@ -4057,6 +4071,27 @@ it('Shows litecoin BIP49 addresses', function(done) {
4057 }); 4071 });
4058}); 4072});
4059 4073
4074it('Shows Groestlcoin BIP49 addresses', function(done) {
4075 driver.findElement(By.css('.phrase'))
4076 .sendKeys('abandon abandon ability');
4077 selectNetwork("GRS - Groestlcoin");
4078 driver.findElement(By.css('#bip49-tab a'))
4079 .click()
4080 // bip49 addresses are shown
4081 driver.sleep(generateDelay).then(function() {
4082 driver.findElement(By.css('#bip49 .available'))
4083 .getAttribute("class")
4084 .then(function(classes) {
4085 expect(classes).not.toContain("hidden");
4086 // check first address
4087 getFirstAddress(function(address) {
4088 expect(address).toBe("3HXSCZwCypLyixMsF4Z1sN49noJtrm8gnX");
4089 done();
4090 });
4091 });
4092 });
4093});
4094
4060it('Can use root keys to generate segwit table rows', function(done) { 4095it('Can use root keys to generate segwit table rows', function(done) {
4061 // segwit uses ypub / zpub instead of xpub but the root key should still 4096 // segwit uses ypub / zpub instead of xpub but the root key should still
4062 // be valid regardless of the encoding used to import that key. 4097 // be valid regardless of the encoding used to import that key.