DEV: Load plugins in theme tests (#13028)

Some themes/components depend on plugins, and it would be impossible to write tests for those themes without installing/loading the plugins they depend on.
This commit is contained in:
Osama Sayegh 2021-05-11 17:38:50 +03:00 committed by GitHub
parent e8f6e00dc9
commit cf6b823a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 %>