Skip to content

Commit 36f65fd

Browse files
netpoeticajamesdaily
netpoetica
authored andcommitted
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 angular#4655
1 parent 2c72e6c commit 36f65fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/content/guide/dev_guide.e2e-testing.ngdoc

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ it('should filter results', function() {
4141
});
4242
});
4343
</pre>
44+
45+
Note that
46+
[`input('user')`](https://github.com/angular/angular.js/blob/master/docs/content/guide/dev_guide.e2e-testing.ngdoc#L119)
47+
finds the `<input>` element with `ng-model="user"` not `name="user"`.
48+
4449
This scenario describes the requirements of a Buzz Client, specifically, that it should be able to
4550
filter the stream of the user. It starts by entering a value in the input field with ng-model="user", clicking
4651
the only button on the page, and then it verifies that there are 10 items listed. It then enters

0 commit comments

Comments
 (0)