aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Coleman <ian@iancoleman.io>2018-02-06 10:23:56 +1100
committerIan Coleman <ian@iancoleman.io>2018-02-06 10:33:21 +1100
commit5dfe77e4a3f5dafaf74bf0a4a86d94f862ce9965 (patch)
tree37eaf42a47e210f5eb230604eb656a11bf31bf39 /tests
parente21e32da3199b9c8471bb44707f1f228a62f339b (diff)
downloadBIP39-5dfe77e4a3f5dafaf74bf0a4a86d94f862ce9965.tar.gz
BIP39-5dfe77e4a3f5dafaf74bf0a4a86d94f862ce9965.tar.zst
BIP39-5dfe77e4a3f5dafaf74bf0a4a86d94f862ce9965.zip
Fix tests which generate more rows
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/tests.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 9a80424..167a496 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -941,13 +941,13 @@ it('Can generate more rows in the table', function(done) {
941 941
942// A custom number of additional addresses can be generated 942// A custom number of additional addresses can be generated
943it('Can generate more rows in the table', function(done) { 943it('Can generate more rows in the table', function(done) {
944 driver.findElement(By.css('.rows-to-add'))
945 .clear();
946 driver.findElement(By.css('.rows-to-add'))
947 .sendKeys('1');
948 driver.findElement(By.css('.phrase')) 944 driver.findElement(By.css('.phrase'))
949 .sendKeys('abandon abandon ability'); 945 .sendKeys('abandon abandon ability');
950 driver.sleep(generateDelay).then(function() { 946 driver.sleep(generateDelay).then(function() {
947 driver.findElement(By.css('.rows-to-add'))
948 .clear();
949 driver.findElement(By.css('.rows-to-add'))
950 .sendKeys('1');
951 driver.findElement(By.css('.more')) 951 driver.findElement(By.css('.more'))
952 .click(); 952 .click();
953 driver.sleep(generateDelay).then(function() { 953 driver.sleep(generateDelay).then(function() {
@@ -2167,10 +2167,11 @@ it('Can change details while old addresses are still being generated', function(
2167 driver.findElement(By.css('.phrase')) 2167 driver.findElement(By.css('.phrase'))
2168 .sendKeys("abandon abandon ability"); 2168 .sendKeys("abandon abandon ability");
2169 driver.sleep(generateDelay).then(function() { 2169 driver.sleep(generateDelay).then(function() {
2170 // generate more addresses
2171 driver.findElement(By.css('.more'))
2172 .click();
2173 // change tabs which should cancel the previous generating 2170 // change tabs which should cancel the previous generating
2171 driver.findElement(By.css('.rows-to-add'))
2172 .clear();
2173 driver.findElement(By.css('.rows-to-add'))
2174 .sendKeys('20');
2174 driver.findElement(By.css('#bip32-tab a')) 2175 driver.findElement(By.css('#bip32-tab a'))
2175 .click() 2176 .click()
2176 driver.sleep(generateDelay).then(function() { 2177 driver.sleep(generateDelay).then(function() {
@@ -2183,7 +2184,7 @@ it('Can change details while old addresses are still being generated', function(
2183 }); 2184 });
2184 }); 2185 });
2185 }); 2186 });
2186}); 2187}, generateDelay + 5000);
2187 2188
2188// Github issue 49 2189// Github issue 49
2189// padding for binary should give length with multiple of 256 2190// padding for binary should give length with multiple of 256