discourse/spec/system/composer
Renato Atilio 2201f8f7dc
FIX: form template upload type validation (#24148)
When submitting files through the form template upload field, we were having an issue where, although a validation error message was being presented to the user, the upload was still coming through, because `PickFilesButton`'s validation happens **after** the Uppy mixin finished the upload and hit `uploadDone`.

This PR adds a new overridable method to the Uppy mixin and overrides it with the custom validation, which now happens before the file is sent.

Additionally, we're now also using `uploadingOrProcessing` as the source of truth to show the upload/uploading label, which seems more reliable.
2023-11-03 10:11:25 -03:00
..
category_templates_spec.rb FIX: form template upload type validation (#24148) 2023-11-03 10:11:25 -03:00
default_to_subcategory_spec.rb DEV: Remove OpenComposer mixin and refactor related logic (#23015) 2023-08-11 09:53:44 +01:00
dont_feed_the_trolls_popup_spec.rb DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
post_validation_spec.rb FIX: Don't show like error on topic creation (#24084) 2023-10-25 08:40:50 -07:00
preview_spec.rb DEV: Add diffhtml composer preview specs (#22333) 2023-06-29 09:37:44 +02:00
review_media_unless_trust_level_spec.rb DEV: Fix random typos (#22078) 2023-06-13 22:02:21 +02:00
template_validation_spec.rb FEATURE: support to initial values for form templates through /new-topic (#23313) 2023-08-29 18:41:33 -03:00