Quantcast
Viewing all articles
Browse latest Browse all 4828

Testing interim states with the latest test-helpers

@jgwhite wrote:

I’m sure it used to be possible to do something like this:

let promise = fillIn('.some-field', 'Some value');

assert.ok(someInterimState);

await promise;

// ...

But all the helpers in @ember/test-helpers appear to be wrapped in a nextTickPromise so nothing happens synchronously. Is there any way to achieve the above these days?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles