You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe('pretty-color integration test',function(){setupComponentTest('pretty-color',{integration: true});it('renders with color',function(){this.set('name','green');this.render(Ember.Handlebars.compile(`{{pretty-color name=name}}`));expect(Ember.$.trim(this.$().text())).to.equal('Pretty Color: green');});it('renders a second time without',function(){this.render(Ember.Handlebars.compile(`{{pretty-color name=name}}`));expect(Ember.$.trim(this.$().text())).to.equal('Pretty Color:');});});
Expected behavior: the second test should pass since the context on each test is being reset and name should be undefined.
Actual behavior: the name value from the first test bleeds into the second test and results in Pretty Color: green instead.
Expected behavior: the second test should pass since the context on each test is being reset and
name
should beundefined
.Actual behavior: the
name
value from the first test bleeds into the second test and results inPretty Color: green
instead.Thanks to @acburdine for figuring this out! (see TryGhost/Admin#206 (comment))
This seems to have been introduced by v0.9.x, but it not limited to the new testing API.
The text was updated successfully, but these errors were encountered: