Slide 32
Slide 32 text
#frontendtesting
test('it renders completed class properly', function(assert) {
set(this, 'currentStepIndex', 0);
set(this, 'step', { index: 1 });
this.render(hbs`{{progress-bar/progress-step this}}`);
assert.notOk(this.$(‘.progress-bar__step').hasClass('progress-bar__step--completed'),
'step is not marked complete');
run(() => {
set(this, 'currentStepIndex', 1);
});
assert.ok(this.$(‘.progress-bar__step').hasClass('progress-bar__step--completed'),
'step is marked complete');
});