aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authornetpoetica2013-10-25 23:04:45 -0400
committerPete Bacon Darwin2013-10-27 21:48:50 +0000
commitc36e73de038bca9212d92d9a47777b44cf48912b (patch)
tree9bd33584d5facd6bd1b33701c3afc8e946524211 /docs/content/guide
parent0429f6c7f5a9a273095049815f0bc00fe28ea0c4 (diff)
downloadangular.js-c36e73de038bca9212d92d9a47777b44cf48912b.tar.bz2
docs(guide/e2e-testing): callout ngmodel vs attr
Add note that `input()` fn matches ng-model instead of HTML name attribute. About five users on forums were snagged by this assumption: http://docs.angularjs.org/guide/dev_guide.e2e-testing#comment-898079915 Closes #4655
Diffstat (limited to 'docs/content/guide')
-rw-r--r--docs/content/guide/dev_guide.e2e-testing.ngdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/guide/dev_guide.e2e-testing.ngdoc b/docs/content/guide/dev_guide.e2e-testing.ngdoc
index d0481512..60a87050 100644
--- a/docs/content/guide/dev_guide.e2e-testing.ngdoc
+++ b/docs/content/guide/dev_guide.e2e-testing.ngdoc
@@ -41,6 +41,11 @@ it('should filter results', function() {
});
});
</pre>
+
+Note that
+[`input('user')`](https://github.com/angular/angular.js/blob/master/docs/content/guide/dev_guide.e2e-testing.ngdoc#L119)
+finds the `<input>` element with `ng-model="user"` not `name="user"`.
+
This scenario describes the requirements of a Buzz Client, specifically, that it should be able to
filter the stream of the user. It starts by entering a value in the input field with ng-model="user", clicking
the only button on the page, and then it verifies that there are 10 items listed. It then enters