diff options
-rw-r--r-- | tests/spec/tests.js | 17 |
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 |
943 | it('Can generate more rows in the table', function(done) { | 943 | it('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 |