A platform for community discussion. Free, open, simple.
DEV: Load plugins in theme tests (#13028)
Osama Sayeghcf6b823a2d6e
diff --git a/app/views/qunit/theme.html.erb b/app/views/qunit/theme.html.erbindex ee37c2f6f39..3f86645c6d4 100644--- a/app/views/qunit/theme.html.erb+++ b/app/views/qunit/theme.html.erb@@ -13,6 +13,9 @@<%= preload_script "pretty-text-bundle" %><%= preload_script "markdown-it-bundle" %><%= preload_script "application" %>+ <%- Discourse.find_plugin_js_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, request: request).each do |file| %>+ <%= preload_script file %>+ <%- end %><%= preload_script "admin" %><%= preload_script "discourse/tests/theme_qunit_helper" %><%= theme_translations_lookup %>