FIX: Allow the clear callbacks to execute in acceptance tests

This commit is contained in:
Robin Ward 2019-06-14 13:29:13 -04:00
parent 73bce82c82
commit 035e63c81f

View File

@ -126,7 +126,6 @@ export function acceptance(name, options) {
initSearchData();
resetDecorators();
resetPostCookedDecorators();
resetWidgetCleanCallbacks();
resetOneboxCache();
resetCustomPostMessageCallbacks();
Discourse._runInitializer("instanceInitializers", function(
@ -138,6 +137,9 @@ export function acceptance(name, options) {
}
});
Discourse.reset();
// We do this after reset so that the willClearRender will have already fired
resetWidgetCleanCallbacks();
}
});
}