diff options
| author | netpoetica | 2013-10-25 23:04:45 -0400 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-27 21:48:50 +0000 |
| commit | c36e73de038bca9212d92d9a47777b44cf48912b (patch) | |
| tree | 9bd33584d5facd6bd1b33701c3afc8e946524211 | |
| parent | 0429f6c7f5a9a273095049815f0bc00fe28ea0c4 (diff) | |
| download | angular.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
| -rw-r--r-- | docs/content/guide/dev_guide.e2e-testing.ngdoc | 5 |
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 |
