Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
the older syntax with data-test-selector="something" was still used in
one place.
also rephrased the section about stripping the data attributes in
production to make it clearer what exactly is removed.
  • Loading branch information
Pierpaolo Frasa committed Aug 24, 2016
1 parent 9af53ad commit 2b36741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ following template:

```hbs
<article>
<h1 data-test-selector="post-title">{{post.title}}</h1>
<h1 data-test-post-title>{{post.title}}</h1>
<p>{{post.body}}</p>
</article>
```
Expand All @@ -82,7 +82,7 @@ allows to encode more data in the markup like e.g. the post's id:
</article>
```

`ember-test-selectors` makes sure to remove all these `data` attributes in the
`ember-test-selectors` makes sure to remove all these `data-test-*` attributes in the
`production` environment so that __users will have perfectly clean HTML
delivered__:

Expand Down

0 comments on commit 2b36741

Please sign in to comment.