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
Loïc Guitaut 1166db12b4
FIX: Make watched words uploads work as intended (#17097)
* FIX: Make watched words uploads work as intended

Currently when we upload a file containing watched words, it will always
add the words to the action that was initially selected: this is the
`block` action by default but if changing manually the action in the URL
to `flag` for example, then this action will be selected and uploaded
watched words will be categorised as `flag` no matter what.

The problem lies with how the component works: it’s an Uppy object where
extra data is defined to provide an action key to the server but when
navigating to another listed action, while this action key is properly
updated on the component itself, the underlying Uppy object has already
been created and doesn’t care about the new value.

This patch solves this by using the `_perFileData` method instead of
`data`: the former is merged just before uploading a file whereas the
latter is used when the Uppy object is created.
2022-06-17 11:07:58 +02:00
..
select-kit FIX: Topic list nav items count not respecting tracked filter. (#16935) 2022-06-01 14:54:42 +08:00
ace-editor-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
activation-controls-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
admin-report-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-user-field-item-test.js REFACTOR: admin-user-field-item (#16499) 2022-04-19 13:31:43 +02:00
avatar-uploader-test.js DEV: Add test for avatar-uploader (#15633) 2022-01-21 19:51:24 +02:00
badge-button-test.js FIX: prefers computed over discourseComputed (#16562) 2022-04-26 11:43:41 +02:00
badge-title-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
bookmark-icon-test.js DEV: Allow for null bookmark in bookmark-icon (#16909) 2022-05-25 13:22:59 +10:00
bookmark-test.js FIX: show the Next Monday label instead of Monday on Sundays (#15745) 2022-01-31 15:15:20 +04:00
cook-text-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
d-button-test.js DEV: cleanup is-loading state of d-button component (#16012) 2022-02-22 12:40:47 -05:00
d-editor-test.js FIX: Ensure emoji is inserted in the correct location (#17107) 2022-06-16 12:16:53 +01:00
d-icon-test.js DEV: Remove xlink hrefs (#15059) 2021-11-25 15:22:43 +11:00
d-navigation-test.js FIX: indirectly muted categories for topic-tracking-state (#16067) 2022-03-02 15:02:09 +11:00
d-popover-test.js UX: allows to close popover on escape (#16698) 2022-05-10 13:41:02 +02:00
date-input-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
date-time-input-range-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
date-time-input-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
emoji-picker-test.js DEV: emoji picker - make it possible to choose picker's placement and add a dedicated class for an anchor (#16969) 2022-06-01 22:24:23 +04:00
emoji-uploader-test.js DEV: Simplify emoji-uploader tests (#15672) 2022-01-21 19:51:04 +02:00
empty-state-test.js DEV: Fix pending posts page, make tests work in legacy env (#15132) 2021-11-30 13:01:39 +01:00
flat-button-test.js UX: flat-btn should also respond to Enter (#15584) 2022-01-14 15:51:31 +01:00
future-date-input-test.js FIX: changing date should recompute input (#16937) 2022-05-27 11:57:09 +02:00
group-list-setting-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-membership-button-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
hidden-details-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
highlighted-code-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
html-safe-helper-test.js DEV: Migrate more tests to our Ember CLI format. (#11899) 2021-02-01 09:01:47 -05:00
iframed-html-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
input-size-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
invite-panel-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
load-more-test.js DEV: Migrate more tests to our Ember CLI format. (#11899) 2021-02-01 09:01:47 -05:00
pending-post-test.js DEV: Fix pending posts page, make tests work in legacy env (#15132) 2021-11-30 13:01:39 +01:00
relative-time-picker-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
secret-value-list-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
simple-list-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
site-header-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
slow-mode-info-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
text-field-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
themes-list-item-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
themes-list-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
time-input-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
time-shortcut-picker-test.js DEV: improve timezone API on the client (#16660) 2022-05-13 13:21:56 +04:00
topic-list-item-test.js FEATURE: Add newly loaded topics to bulk-select automatically if Select All is on (#12026) 2021-03-05 17:16:03 +03:00
topic-list-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
uppy-image-uploader-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-avatar-flair-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-info-test.js FIX: Prioritize names and usernames consistently (#16686) 2022-05-09 18:46:27 +03:00
user-selector-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
value-list-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
watched-word-uploader-test.js FIX: Make watched words uploads work as intended (#17097) 2022-06-17 11:07:58 +02:00