Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Add wait helper documentation to component testing guide #911

Merged

Conversation

toddjordan
Copy link
Contributor

Fix to issue #909

I created an example I thought might be fairly common. I would use an ajax example but I didn't want to complicate things by using something like pretender in the guides. Am open to suggestions though.

@toddjordan toddjordan force-pushed the add-wait-helper-to-testing-components branch from a8da4cf to c6833b7 Compare October 23, 2015 14:56
`wait` helper is designed to handle these these scenarios, by providing a hook to ensure assertions are made after
all ajax requests and timers are complete.

Imagine you have a typahead component that uses `Ember.run.debounce` to limit requests to the server, and you want
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a link to http://emberjs.com/api/classes/Ember.run.html#method_debounce, and briefly explain what it does.

@michaelrkn
Copy link
Contributor

This looks great! I added a couple comments. @locks can you look over it as well?

@toddjordan toddjordan force-pushed the add-wait-helper-to-testing-components branch from c6833b7 to 37e0d30 Compare October 23, 2015 15:31
update some wording around the test

address review comments

spelling fix
@toddjordan toddjordan force-pushed the add-wait-helper-to-testing-components branch from 37e0d30 to fa9d353 Compare October 23, 2015 15:41
locks added a commit that referenced this pull request Oct 23, 2015
…mponents

Add wait helper documentation to component testing guide
@locks locks merged commit deaea37 into emberjs:master Oct 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants