From 5f844c622fb0c133feb3472769c6ee5bd547c67b Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 24 Aug 2016 19:26:41 +1000 Subject: [PATCH] Test address table shows derivation path --- tests.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests.js b/tests.js index 2c304f3..83c99d9 100644 --- a/tests.js +++ b/tests.js @@ -881,6 +881,30 @@ page.open(url, function(status) { }, // Derivation path is shown in table +function() { +page.open(url, function(status) { + // set the phrase + var expected = "m/44'/0'/0'/0/0"; + page.evaluate(function() { + $(".phrase").val("abandon abandon ability"); + $(".phrase").trigger("input"); + }); + // check for derivation path in table + waitForGenerate(function() { + var actual = page.evaluate(function() { + return $(".index:first").text(); + }); + if (actual != expected) { + console.log("Derivation path shown incorrectly in table"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + next(); + }); +}); +}, + // Derivation path for address can be hardened // Derivation path visibility can be toggled // Address is shown -- 2.41.0