aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests.js b/tests.js
index 2e2e38b..4a67ed7 100644
--- a/tests.js
+++ b/tests.js
@@ -902,6 +902,36 @@ page.open(url, function(status) {
902}); 902});
903}, 903},
904 904
905// Network can be set to myriadcoin
906function() {
907page.open(url, function(status) {
908 // set the phrase and coin
909 var expected = "MJEswvRR46wh9BoiVj9DzKYMBkCramhoBV";
910 page.evaluate(function() {
911 $(".phrase").val("abandon abandon ability");
912 $(".phrase").trigger("input");
913 $(".network option[selected]").removeAttr("selected");
914 $(".network option").filter(function() {
915 return $(this).html() == "XMY - Myriadcoin";
916 }).prop("selected", true);
917 $(".network").trigger("change");
918 });
919 // check the address is generated correctly
920 waitForGenerate(function() {
921 var actual = page.evaluate(function() {
922 return $(".address:first").text();
923 });
924 if (actual != expected) {
925 console.log("Myriadcoin address is incorrect");
926 console.log("Expected: " + expected);
927 console.log("Actual: " + actual);
928 fail();
929 }
930 next();
931 });
932});
933},
934
905// BIP39 seed is set from phrase 935// BIP39 seed is set from phrase
906function() { 936function() {
907page.open(url, function(status) { 937page.open(url, function(status) {