2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:15:08 +08:00
discourse/spec/lib/plugin
Sérgio Saquetim b38b13ecf1
FIX: Restore plugin data attributes on script tags lost in #37763 (#38039)
- Restores `data-discourse-plugin`, `data-preinstalled`, and
`data-official` attributes on plugin `<script>` tags that were lost when
#37763 moved script tag generation from ember-cli to Rails
- Fixes `discourse-test-load-dynamic-js.js` where `script.dataset =
element.dataset` was a silent no-op (dataset is a readonly property),
preventing data attributes from being copied to dynamically created
script elements
- Without these attributes, `setup-tests.js` treats all test runs as
core tests and always enables `configureRaiseOnDeprecation()`, causing
private plugin tests to fail on deprecation warnings they should be
exempt from

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2026-02-26 15:21:44 -03:00
..
filter_manager_spec.rb
instance_spec.rb FIX: Restore plugin data attributes on script tags lost in #37763 (#38039) 2026-02-26 15:21:44 -03:00
metadata_spec.rb