Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

When is the right time to move to async acceptance tests?

$
0
0

@sam wrote:

I am a huge fan of the new “style” of acceptance tests in Ember.

This to me reads so much clearer that the andThen pattern:

QUnit.test('close temporarily', async function(assert) {
  await click('.something');
  assert.equal(1 === 1);
  await click('.something-else');
  assert.equal(1 === 1);
})

At Discourse we are still on 2.13.3 today (Apr 2018). I was wondering… is it ok to start making the move now to the new patterns or do we need to hold out till we upgraded to 3.0 ?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles