diff options
Diffstat (limited to 'tests.js')
-rw-r--r-- | tests.js | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -601,6 +601,35 @@ page.open(url, function(status) { | |||
601 | }); | 601 | }); |
602 | }, | 602 | }, |
603 | 603 | ||
604 | function() { | ||
605 | page.open(url, function(status) { | ||
606 | // set the phrase and coin | ||
607 | var expected = "yaR52EN4oojdJfBgzWJTymC4uuCLPT29Gw"; | ||
608 | page.evaluate(function() { | ||
609 | $(".phrase").val("abandon abandon ability"); | ||
610 | $(".phrase").trigger("input"); | ||
611 | $(".network option[selected]").removeAttr("selected"); | ||
612 | $(".network option").filter(function() { | ||
613 | return $(this).html() == "DASH Testnet"; | ||
614 | }).prop("selected", true); | ||
615 | $(".network").trigger("change"); | ||
616 | }); | ||
617 | // check the address is generated correctly | ||
618 | waitForGenerate(function() { | ||
619 | var actual = page.evaluate(function() { | ||
620 | return $(".address:first").text(); | ||
621 | }); | ||
622 | if (actual != expected) { | ||
623 | console.log("DASH Testnet address is incorrect"); | ||
624 | console.log("Expected: " + expected); | ||
625 | console.log("Actual: " + actual); | ||
626 | fail(); | ||
627 | } | ||
628 | next(); | ||
629 | }); | ||
630 | }); | ||
631 | }, | ||
632 | |||
604 | // Network can be set to game | 633 | // Network can be set to game |
605 | function() { | 634 | function() { |
606 | page.open(url, function(status) { | 635 | page.open(url, function(status) { |