From c36e73de038bca9212d92d9a47777b44cf48912b Mon Sep 17 00:00:00 2001 From: netpoetica Date: Fri, 25 Oct 2013 23:04:45 -0400 Subject: 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 --- docs/content/guide/dev_guide.e2e-testing.ngdoc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') 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() { }); }); + +Note that +[`input('user')`](https://github.com/angular/angular.js/blob/master/docs/content/guide/dev_guide.e2e-testing.ngdoc#L119) +finds the `` 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 -- cgit v1.2.3