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/acceptance
Martin Brennan f6528afa01
DEV: Add uploadHandler support to composer-upload-uppy mixin (#14692)
This commit adds uploadHandler support to composer uploads using
uppy. The only things we have that are using this are discourse-brightcove and
discourse-video, which both pop modal windows to handle the file upload and
completely leave out all the composer-type flows. This implementation simply
follows the existing one, where if a single file is uploaded and there
is a matching upload handler we take control away from uppy and hand
it off to the upload handler.

Trying to get this kind of thing working within uppy would require a few
changes because they have no way to restrict uploaders to certain file types
and with the way their uploaders are run it doesn't look like it would be easy
to add this either, so I don't think this is worth the work unless at some
point in the future we plan to have more upload handler integrations.

I also fixed an issue with `cleanUpComposerUploadHandler` which is used
in tests to reset the state of `uploadHandlers` in the composer. This
was doing `uploadHandlers = []` to clear that array, but that creates
a brand new array so anything else referencing the original array will
lose that reference. Better to set `uploadHandlers.length = 0` to
clear it. This was breaking the tests I added to see if upload handlers
were working.
2021-10-26 11:22:33 +10:00
..
about-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
account-created-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
admin-badges-award-test.js FEATURE: Add option to grant badge multiple times to users using Bulk Award (#13571) 2021-07-15 05:53:26 +03:00
admin-badges-show-test.js DEV: prevents badges tests to log 404 (#13859) 2021-07-27 14:46:49 +02:00
admin-emails-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-install-theme-modal-test.js FIX: Allow CodeCommit-style theme .git url format (#12739) 2021-04-16 12:46:34 -04:00
admin-search-log-term-test.js DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
admin-search-logs-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
admin-silence-user-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
admin-site-settings-test.js FIX: force refresh staff action logs when transitioning from site settings (#12096) 2021-02-17 00:18:39 +05:30
admin-site-text-test.js UX: Text customization for different languages. (#11729) 2021-01-18 14:53:45 -03:00
admin-suspend-user-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
admin-user-badges-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-user-emails-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-user-index-test.js FEATURE: Use second factor for admin confirmation (#14293) 2021-09-14 15:19:28 +03:00
admin-users-list-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-watched-words-test.js FIX: only delete the word/phrase when the 'x' icon is clicked (#13547) 2021-06-28 15:14:18 +05:30
auth-complete-test.js UX: login; smaller titles, more consistent spacing, other fixes (#12317) 2021-03-09 17:00:46 -05:00
badges-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
bookmarks-test.js FEATURE: Topic-level bookmarks (#14353) 2021-09-21 08:45:47 +10:00
category-banner-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
category-chooser-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
category-edit-security-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
category-edit-test.js SECURITY: Do not allow unauthorized access to category edit UI (#13252) 2021-06-02 13:18:45 -04:00
category-new-test.js Add category breadcrumbs to edit category page (#13126) 2021-05-25 13:40:11 -05:00
click-track-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
composer-actions-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
composer-attachment-test.js DEV: Add uploadHandler support to composer-upload-uppy mixin (#14692) 2021-10-26 11:22:33 +10:00
composer-draft-saving-test.js FEATURE: Cook drafts excerpt in user activity (#14315) 2021-09-14 15:18:01 +03:00
composer-edit-conflict-test.js FEATURE: Cook drafts excerpt in user activity (#14315) 2021-09-14 15:18:01 +03:00
composer-hyperlink-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
composer-onebox-test.js DEV: observe all elements to prevent any missed mutation (#14507) 2021-10-05 12:00:05 +02:00
composer-tags-test.js FIX: Clientside validate min tags for required tag group (#12758) 2021-04-20 10:39:13 +10:00
composer-test.js DEV: Plugin API for customizing text in the composer conditionally 2021-10-08 13:58:18 -04:00
composer-topic-links-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
composer-uncategorized-test.js FIX: Hide full screen toggle button when textarea is disabled (#14638) 2021-10-18 16:00:22 -04:00
composer-uploads-uppy-test.js DEV: Add uploadHandler support to composer-upload-uppy mixin (#14692) 2021-10-26 11:22:33 +10:00
create-account-external-test.js FEATURE: Allow linking an existing account during external-auth signup 2021-08-10 15:07:40 +01:00
create-account-user-fields-test.js A11Y: Improve create account modal for screen readers (#14234) 2021-09-03 13:04:24 +10:00
create-invite-modal-test.js UX: Change layout of invites page to match other user pages (#14520) 2021-10-05 15:30:31 -05:00
custom-html-set-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
custom-html-template-test.js DEV: Remove ember export which has long been deprecated. 2021-07-30 09:39:31 +08:00
dashboard-test.js FEATURE: Add new features section in admin dashboard (#11731) 2021-01-22 10:09:02 -05:00
do-not-disturb-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
edit-notification-click-test.js FIX: Consistently show history modal when clicking edit notifications (#13912) 2021-08-03 19:06:23 +03:00
email-notice-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
emoji-picker-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
emoji-test.js DEV: Remove JoyPixels emoji option (#12197) 2021-02-26 07:44:52 -05:00
encoded-category-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
enforce-second-factor-test.js DEV: Sync up more Ember CLI features (#11790) 2021-01-21 15:55:39 -05:00
fast-edit-test.js DEV: Add basic acceptance tests for quote shortcut and fast-edit 2021-10-11 10:46:38 +01:00
flag-post-test.js DEV: Use key over the deprecated keyCode (#13795) 2021-08-09 11:41:36 +02:00
forgot-password-test.js FIX: Hide form after password reset (#14526) 2021-10-06 17:16:59 +03:00
group-index-test.js FEATURE: Split Add Members into Add Users & Invite (#13482) 2021-06-23 17:31:25 +03:00
group-manage-categories-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
group-manage-email-settings-test.js DEV: Do not re-throw in popupAjaxError (#13462) 2021-06-22 19:29:20 +02:00
group-manage-interaction-test.js FIX: Wrong default notification level shown for group (#13952) 2021-08-05 13:17:36 +10:00
group-manage-logs-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
group-manage-membership-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
group-manage-profile-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
group-manage-tags-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
group-requests-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
group-test.js UX: Revamp quick search (#14499) 2021-10-06 11:42:52 -04:00
groups-index-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
groups-new-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
hamburger-menu-test.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
hashtags-test.js DEV: observe all elements to prevent any missed mutation (#14507) 2021-10-05 12:00:05 +02:00
invite-accept-test.js FEATURE: Allow linking an existing account from invite acceptance (#13998) 2021-08-11 10:26:37 +01:00
invite-show-user-fields-test.js DEV: Sync up more Ember CLI features (#11790) 2021-01-21 15:55:39 -05:00
jump-to-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
keyboard-shortcuts-test.js DEV: Try fix keyboard shortcut acceptance tests (#13576) 2021-07-01 12:25:26 +10:00
login-redirect-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
login-required-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
login-with-email-and-hide-email-address-taken-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-and-no-social-logins-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-disabled-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
mobile-discovery-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
mobile-pan-test.js DEV: Run tests in Firefox ESR (#14094) 2021-09-03 15:17:11 -03:00
mobile-sign-in-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
mobile-users-test.js FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00
modal-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
new-message-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
new-topic-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
notifications-filter-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
notifications-test.js DEV: little cleanup in the notifications-index component (#14464) 2021-09-29 15:24:55 +04:00
opengraph-tag-updater-test.js FIX: Safari iOS page title and url regression when sharing (#11699) 2021-01-13 11:10:43 -05:00
page-publishing-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
password-reset-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
personal-message-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
plugin-keyboard-shortcut-test.js FIX: Isolate modal and global key-binds (#12477) 2021-03-29 13:58:03 +02:00
plugin-outlet-connector-class-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
plugin-outlet-decorator-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
plugin-outlet-multi-template-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
plugin-outlet-single-template-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
post-admin-menu-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
preferences-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
raw-plugin-outlet-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
redirect-to-top-test.js FEATURE: add period filter in top topics route for tags. (#13415) 2021-07-06 15:25:11 +05:30
reports-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
review-test.js A11Y: do not default to label for aria-label (#14258) 2021-09-07 18:24:39 +02:00
search-full-test.js A11Y: Add labels to some search fields, category notification selector (#14430) 2021-09-23 14:52:34 -04:00
search-mobile-test.js FEATURE: user/category/tag results in full page search (#14346) 2021-09-20 10:01:11 -04:00
search-test.js UX: Add special case for user search when in a topic (#14669) 2021-10-21 10:34:50 -04:00
share-topic-test.js A11Y: do not default to label for aria-label (#14258) 2021-09-07 18:24:39 +02:00
shared-drafts-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
sign-in-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
static-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
tag-groups-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
tags-intersection-test.js FEATURE: Always show tag dropdown when tagging is enabled (#12209) 2021-03-10 21:13:15 -05:00
tags-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
topic-admin-menu-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
topic-anonymous-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
topic-bulk-actions-test.js UX: Better placement for bulk select actions button (#14419) 2021-09-23 10:50:10 -04:00
topic-discovery-test.js FEATURE: add period filter in top topics route for tags. (#13415) 2021-07-06 15:25:11 +05:30
topic-edit-timer-test.js FIX: Reorder and hide topic timer options (#13597) 2021-07-01 13:18:38 +10:00
topic-footer-buttons-mobile-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
topic-list-tracker-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
topic-move-posts-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
topic-notifications-button-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
topic-quote-button-test.js DEV: Add basic acceptance tests for quote shortcut and fast-edit 2021-10-11 10:46:38 +01:00
topic-set-slow-mode-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
topic-slow-mode-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
topic-test.js DEV: Move duplicate selectText helper into qunit-helpers 2021-10-11 10:46:38 +01:00
topic-timeline-test.js FEATURE: Topic-level bookmarks (#14353) 2021-09-21 08:45:47 +10:00
unknown-test.js FIX: handle permalinks with query parameters (#12700) 2021-04-14 20:03:25 +02:00
user-activity-all-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-drafts-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-likes-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-read-test.js FEATURE: improve blank page syndrome on the activity/topics, activity/read and group messages pages (#14313) 2021-09-16 22:24:27 +04:00
user-activity-replies-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-topic-test.js FEATURE: improve blank page syndrome on the activity/topics, activity/read and group messages pages (#14313) 2021-09-16 22:24:27 +04:00
user-anonymous-test.js FIX: user/badges grid fix (#13729) 2021-07-14 16:43:24 +02:00
user-bookmarks-test.js FEATURE: improve "blank page syndrome" on the user bookmarks page 2021-08-20 00:08:59 +04:00
user-card-test.js DEV: Sync up more Ember CLI features (#11790) 2021-01-21 15:55:39 -05:00
user-drafts-stream-test.js FEATURE: Cook drafts excerpt in user activity (#14315) 2021-09-14 15:18:01 +03:00
user-preferences-interface-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
user-preferences-notifications-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
user-preferences-profile-test.js FEATURE: save local date to calendar (#14486) 2021-10-06 14:11:52 +11:00
user-private-messages-test.js FIX: Stop tracking incoming message after navigating away take 2. (#14508) 2021-10-05 15:00:44 +08:00
user-test.js FIX: Consistently show history modal when clicking edit notifications (#13912) 2021-08-03 19:06:23 +03:00
users-test.js FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00