From b0fb45b9f170f415826608379abf3a9b636c10a8 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 5 Oct 2016 12:37:01 +1100 Subject: Template code in comment for future tests. --- tests.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests.js b/tests.js index 3518aa0..1b2ae4c 100644 --- a/tests.js +++ b/tests.js @@ -1762,6 +1762,37 @@ page.open(url, function(status) { }); }, +// If you wish to add more tests, do so here... + +// Here is a blank test template +/* + +function() { +page.open(url, function(status) { + // Do something on the page + page.evaluate(function() { + $(".phrase").val("abandon abandon ability").trigger("input"); + }); + waitForGenerate(function() { + // Check the result of doing the thing + var expected = "1Di3Vp7tBWtyQaDABLAjfWtF6V7hYKJtug"; + var actual = page.evaluate(function() { + return $(".address:first").text(); + }); + if (actual != expected) { + console.log("A specific message about what failed"); + console.log("Expected: " + expected); + console.log("Actual: " + actual); + fail(); + } + // Run the next test + next(); + }); +}); +}, + +*/ + ]; console.log("Running tests..."); -- cgit v1.2.3