From 5215e2095cfd42a0363eb02eded34e03fa2b0cd3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Thu, 20 May 2010 15:55:41 -0700 Subject: basic end to end runner --- scenario/widgets-scenarios.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'scenario/widgets-scenarios.js') diff --git a/scenario/widgets-scenarios.js b/scenario/widgets-scenarios.js index 663b06da..a1e6c0ed 100644 --- a/scenario/widgets-scenarios.js +++ b/scenario/widgets-scenarios.js @@ -3,28 +3,28 @@ angular.scenarioDef.widgets = { {Given:"browser", at:"widgets.html"} ], checkWidgetBinding:[ - {Then:"text", at:"{{name}}", should_be:""}, - {When:"enter", text:"John", at:":input[name=name]"}, - {Then:"text", at:"{{name}}", should_be:"John"}, - - {Then:"text", at:"{{gender}}", should_be:""}, - {When:"click", at:"input:radio[value=male]"}, + {Then:"text", at:"{{text.basic}}", should_be:""}, + {When:"enter", text:"John", at:":input[name=text.basic]"}, + {Then:"text", at:"{{text.basic}}", should_be:"John"}, + {Then:"text", at:"{{gender}}", should_be:"male"}, - + {When:"click", at:"input:radio[value=female]"}, + {Then:"text", at:"{{gender}}", should_be:"female"}, + {Then:"text", at:"{{tea}}", should_be:"on"}, {When:"click", at:"input[name=tea]"}, {Then:"text", at:"{{tea}}", should_be:""}, - + {Then:"text", at:"{{coffee}}", should_be:""}, {When:"click", at:"input[name=coffee]"}, {Then:"text", at:"{{coffee}}", should_be:"on"}, - + {Then:"text", at:"{{count}}", should_be:0}, {When:"click", at:"form :button"}, {When:"click", at:"form :submit"}, {When:"click", at:"form :image"}, {Then:"text", at:"{{count}}", should_be:3}, - + {Then:"text", at:"{{select}}", should_be:"A"}, {When:"select", at:"select[name=select]", option:"B"}, {Then:"text", at:"{{select}}", should_be:"B"}, @@ -36,7 +36,7 @@ angular.scenarioDef.widgets = { {Then:"text", at:"{{multiple}}", should_be:["A", "B"]}, {When:"select", at:"select[name=multiple]", option:"A"}, {Then:"text", at:"{{multiple}}", should_be:["B"]}, - + {Then:"text", at:"{{hidden}}", should_be:"hiddenValue"}, {Then:"text", at:"{{password}}", should_be:"passwordValue"}, -- cgit v1.2.3