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
This commit is contained in:
netpoetica 2013-10-25 23:04:45 -04:00 committed by Pete Bacon Darwin
parent 0429f6c7f5
commit c36e73de03

View file

@ -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