mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 12:11:12 +08:00
FIX: Don't cloak in test mode. Should help with intermittant failures
This commit is contained in:
@ -5,7 +5,7 @@ test("Enter a Topic", () => {
|
|||||||
visit("/t/internationalization-localization/280/1");
|
visit("/t/internationalization-localization/280/1");
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
ok(exists("#topic"), "The topic was rendered");
|
ok(exists("#topic"), "The topic was rendered");
|
||||||
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
|
ok(exists("#topic .cooked"), "The topic has cooked posts");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -115,6 +115,9 @@ QUnit.testStart(function(ctx) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Don't cloak in testing
|
||||||
|
Ember.CloakedCollectionView = Ember.CollectionView;
|
||||||
|
|
||||||
QUnit.testDone(function() {
|
QUnit.testDone(function() {
|
||||||
Ember.run.debounce = origDebounce;
|
Ember.run.debounce = origDebounce;
|
||||||
window.sandbox.restore();
|
window.sandbox.restore();
|
||||||
|
Reference in New Issue
Block a user