mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
0429f6c7f5
commit
c36e73de03
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue