ember-learn / ember-learn/guides-source

Add new section under testing "Using test waiters"

Open
#2,076 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.