+function() {
+page.open(url, function(status) {
+ // set the phrase and coin
+ var expected = "xCp4sakjVx4pUAZ6cBCtuin8Ddb6U1sk9y";
+ page.evaluate(function() {
+ $(".phrase").val("abandon abandon ability");
+ $(".phrase").trigger("input");
+ $(".network option[selected]").removeAttr("selected");
+ $(".network option[value=9]").prop("selected", true);
+ $(".network").trigger("change");
+ });
+ // check the address is generated correctly
+ setTimeout(function() {
+ var actual = page.evaluate(function() {
+ return $(".address:first").text();
+ });
+ if (actual != expected) {
+ console.log("CLAM address is incorrect");
+ console.log("Expected: " + expected);
+ console.log("Actual: " + actual);
+ fail();
+ }
+ next();
+ }, 1000);
+});
+},
+
+// TODO finish these tests