discourse/plugins/discourse-presence
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
..
assets DEV: Support colocation of component templates in plugins (#18598) 2022-10-17 09:38:20 +01:00
config FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
spec/integration Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
test/javascripts/acceptance DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
README.md DEV: Update discourse-presence plugin to use new PresenceChannel system (#14519) 2021-10-21 12:42:46 +01:00
plugin.rb DEV: Transpile all plugin js by default (#17175) 2022-06-21 22:07:10 +02:00

README.md

Discourse Presence plugin

This plugin shows which users are currently writing a reply at the same time as you.