diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/spec/tests.js | 35 |
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 | }); |
1597 | it('Allows selection of Groestlcoin', function(done) { | ||
1598 | var params = { | ||
1599 | selectText: "GRS - Groestlcoin", | ||
1600 | firstAddress: "FZycsFvZ1eH1hbtyjBpAgJSukVw1bN6PBN", | ||
1601 | }; | ||
1602 | testNetwork(done, params); | ||
1603 | }); | ||
1604 | it('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 |
1599 | it('Sets the bip39 seed from the prhase', function(done) { | 1613 | it('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 | ||
4074 | it('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 | |||
4060 | it('Can use root keys to generate segwit table rows', function(done) { | 4095 | it('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. |