From: Ian Coleman Date: Wed, 24 Aug 2016 09:26:41 +0000 (+1000) Subject: Test address table shows derivation path X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5f844c622fb0c133feb3472769c6ee5bd547c67b;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git Test address table shows derivation path --- 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