DEV: Correct core test run detection for theme-qunit (#20635)
Followup to 8f1a5c9392
This commit is contained in:
parent
8f1a5c9392
commit
3e8d349465
|
@ -388,11 +388,10 @@ export default function setupTests(config) {
|
|||
reportMemoryUsageAfterTests();
|
||||
patchFailedAssertion();
|
||||
|
||||
const hasPluginJs = Array.from(
|
||||
document.querySelector("#dynamic-test-js").content.childNodes
|
||||
).some((script) => script.dataset?.discoursePlugin);
|
||||
const hasPluginJs = !!document.querySelector("script[data-discourse-plugin]");
|
||||
const hasThemeJs = !!document.querySelector("script[data-theme-id]");
|
||||
|
||||
if (skipPlugins || !hasPluginJs) {
|
||||
if (!hasPluginJs && !hasThemeJs) {
|
||||
configureRaiseOnDeprecation();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue