discourse/app/assets/javascripts
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
..
admin Improve route error handling in admin/plugins (#18911) 2022-11-07 16:39:27 +00:00
confirm-new-email DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
discourse DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
discourse-common Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
discourse-plugins DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
discourse-widget-hbs Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
pretty-text DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
select-kit Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
truth-helpers Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
wizard Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Introduce minification and source maps for Theme JS (#18646) 2022-10-18 18:20:10 +01:00
handlebars-shim.js
package.json DEV: Introduce flag for compiling Plugin JS with Ember CLI (#17965) 2022-08-22 09:56:39 +01:00
polyfills.js DEV: Add polyfill for String.prototype.replaceAll (#16301) 2022-03-28 17:18:56 +01:00
service-worker.js.erb DEV: Rename secure_media to secure_uploads (#18376) 2022-09-29 09:24:33 +10:00
yarn.lock Build(deps): Bump ember-source in /app/assets/javascripts (#18859) 2022-11-03 11:36:08 +00:00