From 3f1faa4d0e0212b1bc26f2ac8e5f0c486ccc1858 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 26 Aug 2016 12:21:55 +1000 Subject: [PATCH] Test ordering of addresses in table --- tests.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests.js b/tests.js index 47938a4..12a6c5b 100644 --- a/tests.js +++ b/tests.js @@ -1022,6 +1022,37 @@ page.open(url, function(status) { }, // Addresses are shown in order of derivation path +function() { +page.open(url, function(status) { + // set the phrase + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + // get the derivation paths + waitForGenerate(function() { + var paths = page.evaluate(function() { + return $(".index").map(function(i, e) { + return $(e).text(); + }); + }); + if (paths.length != 20) { + console.log("Total paths is less than expected: " + paths.length); + fail(); + } + for (var i=0; i