ember-learn / ember-learn/guides-source
Add new section under testing "Using test waiters"
Open
- Dominant language
- HTML
- Stars
- 161
- Forks
- 512
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 4
Description
this is one of the most important topics in testing, and we don't say anything haha
What is settled?
when do you want to be settled?
renderSettled?
some techniques for defining settledness?
- with modifiers (floating-ui, for example)
- async
- observer-gating
how to debug waiters?
```js
// in test-helper.ts
Object.assign(window, { getSettledState, getPendingWaiterState, currentURL, currentRouteName });
// (this should probably be in the blueprint)
```
and then when a test haults, you can use getSettledState, etc
Contributor guide
Assessment
This issue has not been assessed yet.