This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/integration/components
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
..
select-kit DEV: Use store.createRecord for Topic models (#18837) 2022-11-03 12:32:20 +01:00
sidebar DEV: Add displaySection to sidebar sections (#18479) 2022-10-05 13:57:52 +10:00
user-menu DEV: Use store.createRecord for Topic models (#18837) 2022-11-03 12:32:20 +01:00
widgets DEV: Load client site settings YML into JS tests (#18413) 2022-11-08 09:17:43 +10:00
ace-editor-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
activation-controls-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
admin-report-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
admin-user-field-item-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
avatar-uploader-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
badge-button-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
badge-title-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
bookmark-alert-test.js FIX: Removed bookmark reminder alert for reminders set in the past (#18398) 2022-09-30 10:35:42 +08:00
bookmark-icon-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
bookmark-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
category-badge-helper-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
cook-text-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
d-button-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
d-document-test.js DEV: Use all unread notifications count for the count in document title (#18120) 2022-08-30 05:37:03 +03:00
d-editor-test.js A11Y: makes toolbar tabindex independent from its context (#17889) 2022-08-12 15:24:20 -04:00
d-icon-helper-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
d-navigation-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
d-popover-test.js DEV: Refine showPopover / hidePopover + introduce isPopoverShown helper for use with d-popover (#18334) 2022-09-26 20:39:17 +02:00
d-tooltip-test.js DEV: a new d-tooltip component (#17513) 2022-07-28 18:33:20 +04:00
date-input-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
date-time-input-range-test.js DEV: Ensure date-time-input-range-test works in all timezones (#17923) 2022-08-15 11:28:30 +02:00
date-time-input-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
dialog-holder-test.js DEV: Refactor the last few bootbox dialogs (#18416) 2022-10-07 11:38:27 -04:00
emoji-picker-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
emoji-uploader-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
empty-state-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
flat-button-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
group-list-setting-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
group-membership-button-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
hidden-details-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
highlighted-code-test.js DEV: Add test case for syntax highlight of complex HTML (#18320) 2022-09-21 19:09:53 -03:00
html-safe-helper-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
iframed-html-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
input-size-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
invite-panel-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
load-more-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
pending-post-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
relative-time-picker-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
secret-value-list-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
simple-list-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
site-header-test.js FIX: Clientside checks for personal_message_enabled_groups (#18691) 2022-10-21 14:38:33 +10:00
site-setting-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
slow-mode-info-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
software-update-prompt-test.js DEV: Always await for publishToMessageBus (#17626) 2022-07-24 19:55:58 +02:00
text-field-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
themes-list-item-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
themes-list-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
time-input-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
time-shortcut-picker-test.js FEATURE: show default custom date on time-shortcut-pickers (#17867) 2022-08-18 14:55:54 +04:00
topic-list-item-test.js DEV: Use store.createRecord for Topic models (#18837) 2022-11-03 12:32:20 +01:00
topic-list-test.js DEV: Use store.createRecord for Topic models (#18837) 2022-11-03 12:32:20 +01:00
uppy-image-uploader-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
user-avatar-flair-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
user-info-test.js DEV: add status to the user info component (#17809) 2022-08-05 16:54:54 +04:00
user-selector-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
user-status-message-test.js DEV: Make it possible to hide tooltip on the user status (#17808) 2022-08-05 16:53:28 +04:00
user-status-picker-test.js DEV: Pass a status object to the user-status-picker instead of passing emoji + description (#18513) 2022-10-08 02:21:53 +04:00
value-list-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
watched-word-uploader-test.js DEV: refactor bootbox alerts (#18292) 2022-09-27 14:47:13 -04:00
wizard-invite-list-test.js FEATURE: revamped wizard (#17477) 2022-07-27 06:53:01 +05:30