-
-
Notifications
You must be signed in to change notification settings - Fork 868
Fix for Issue #501 Update examples in "Testing Components" guide to use Integration Tests #774
Conversation
}); | ||
``` | ||
|
||
<!--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this was already commented I went ahead and deleted. I can work on bringing it back if we feel its important. Now that we use integration tests I don't really think there's going to be much different about nested components that cause this section. you'd just declare the components in the render template and assert the DOM
Thanks a bunch for picking this up, @toddjordan! |
|
||
Let's assume we have a component with a `style` property that is updated | ||
whenever the value for its `name` property changes. The `style` attribute of the | ||
component is bound to its `style` property. | ||
|
||
> You can follow along by generating your own component with `ember generate | ||
> component pretty-color`. | ||
> component pretty-color --pod`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not going to encourage people to use the pod directory structure until it's format has settled down. Can you re-do the examples with the "regular" structure for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely. I'll go back and update
@locks can you review as well? |
@michaelrkn I also have a new section on stubbing services using the example in my blog post here: http://presentationtier.com/stubbing-services-in-emberjs-integration-tests/ I'd like to add a new section to "Testing Components" based on the example, with language consistent with the others. Should I add the section to this PR? Here a PR within my guides fork with the added section: https://github.com/toddjordan/guides/pull/2/files |
@toddjordan I'd say open a separate PR for that, after this is merged. It's easier and faster to review things individually. @locks Can you review this so that @toddjordan can move forward? Thanks! |
will do, thx |
@toddjordan I'm concerned with
Nice writeup though! |
Thx for the tip. I'll look into modifying the example to a lookup alternative. |
@toddjordan Also note that Ember 2.1 has tweaked some of these APIs. You can find links to data about those changes in this issue. |
I noticed the PR where you can do the same thing in a test with |
Minor edits before PR Update integration test paths that were wrong Updates from initial PR comments update after ember suave run
@toddjordan is this ready to merge? I don't see |
@michaelrkn yeah that discussion was around another PR for the new section on stubbing services for component integration tests. I haven't PR'd that to guides yet. This PR is just converting this existing examples, so yes, its good to go when you guys are ok with it. |
Update examples in "Testing Components" guide to use Integration Tests
See issue #501
I redid the same examples using integration tests. I also got the examples working in a sample app to verify them. I also included some other newer practices such as pods and some more es6 mechanisms.
There's enough changes here where you might want to look at the split diff