From 40892aba5013cd75927f63e66492f46b2d206ec9 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 4 Jan 2017 11:30:45 +1100 Subject: Generation process stopped when table rows cleared Closes #44 --- tests.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'tests.js') diff --git a/tests.js b/tests.js index 48e863b..16f1963 100644 --- a/tests.js +++ b/tests.js @@ -3291,6 +3291,50 @@ page.open(url, function(status) { }); }, +// Github issue 44 +// display error switching tabs while addresses are generating +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + waitForGenerate(function() { + // set to generate 500 more addresses + // generate more addresses + // change tabs which should cancel the previous generating + page.evaluate(function() { + $(".rows-to-add").val("100"); + $(".more").click(); + $("#bip32-tab a").click(); + }); + // check the derivation paths are in order and of the right quantity + waitForGenerate(function() { + var paths = page.evaluate(function() { + return $(".index").map(function(i, e) { + return $(e).text(); + }); + }); + for (var i=0; i