From 38122a3d58cef9040b6308fd4d8c393b63bc36b0 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Tue, 27 Mar 2018 10:31:23 +1100 Subject: [PATCH] Add test for testnet p2wpkh parameters --- tests/spec/tests.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 80add73..64ed71b 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js @@ -2968,4 +2968,20 @@ it('Shows the checksum for the entropy with the correct groupings', function(don }); }); +it('Uses vprv for bitcoin testnet p2wpkh', function(done) { + selectNetwork("BTC - Bitcoin Testnet"); + driver.findElement(By.css('#bip84-tab a')) + .click() + driver.findElement(By.css('.phrase')) + .sendKeys('abandon abandon ability'); + driver.sleep(generateDelay).then(function() { + driver.findElement(By.css('.root-key')) + .getAttribute("value") + .then(function(path) { + expect(path).toBe("vprv9DMUxX4ShgxML9N2YV5CvWEebWrM9aJ5ULpbRRyzyWu6vs4BzTvbfFFrH41N5hVi7MYSfiugd765L3JmAfDM5po36Y8ouCKRDeYQwByCmS7"); + done(); + }) + }); +}); + }); -- 2.41.0