discourse/app/assets/javascripts/pretty-text/addon
Martin Brennan ac7bf98ad1
DEV: Load client site settings YML into JS tests (#18413)
Our method of loading a subset of client settings into tests via
tests/helpers/site-settings.js can be improved upon. Currently we have a
hardcoded subset of the client settings, which may get out of date and not have
the correct defaults. As well as this plugins do not get their settings into the
tests, so whenever you need a setting from a plugin, even if it has a default,
you have to do needs.setting({ ... }) which is inconvenient.

This commit introduces an ember CLI build step to take the site_settings.yml and
all the plugin settings.yml files, pull out the client settings, and dump them
into a variable in a single JS file we can load in our tests, so we have the
correct selection of settings and default values in our JS tests. It also fixes
many, many tests that were operating under incorrect assumptions or old
settings.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2022-11-08 09:17:43 +10:00
..
emoji FEATURE: Add missing emojis (#15582) 2022-01-14 17:51:13 -03:00
engines DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
allow-lister.js A11Y: Set role=presentation if alt attr is missing (#18546) 2022-10-12 14:07:37 +03:00
censored-words.js DEV: Ensure censorFn copes with null regexpList (#17754) 2022-08-02 11:09:51 +01:00
emoji.js DEV: Emoji picker keyboard accessibility updates (#18331) 2022-09-22 15:21:34 -07:00
guid.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
inline-oneboxer.js DEV: removes jquery usage from onebox (#14683) 2021-10-22 13:15:46 +02:00
oneboxer-cache.js DEV: removes jquery usage from onebox (#14683) 2021-10-22 13:15:46 +02:00
oneboxer.js DEV: Introduce discourseLater (#17532) 2022-07-17 00:50:49 +02:00
pretty-text.js DEV: Add force_quote_link option to PrettyText (#16034) 2022-02-23 16:13:46 +10:00
sanitizer.js DEV: Extensively use includes() (#17541) 2022-07-17 20:48:36 +02:00
upload-short-url.js DEV: Rename secure_media to secure_uploads (#18376) 2022-09-29 09:24:33 +10:00