docbrown/spec/system
Alex bc8c126497
Validate file uploads client-side (#6737)
* JavaScript MVP

- First round of linting
- Use for testing

* Add some default UI error handling

* Add file validation to updating profile image

* Add type validation and fix size bug

* Refactor and add file validation to article cover

* Add file validation to body images

* Add accept field to profile image form

* Add parseInt to maxFileSizeMb

* Add accept and max-file-size-mb to article images

* Change parseInt to Number

* Add file validations to podcast form

* Add accept image to podcasts

* Add file validation and accept field to org form

* Use appendChild for error message

* Add file validation to comment form

* Add JS Docs comments

* Remove redundant format check

* Add documentation to override default values

* Update documention (spelling, formatting, etc.)

* Update max-file-size-mb to 25

* Bump default max file size for images to 25

* Change appendChild to append

* Refactor remove error message

* Refactor JS, remove console logs, update error msg

* Remove video from permitted file types

* Update error messaging

* Update docs for funciton params...oops 🙈

* Fix file size check logic

- Allow for 0 maxFileSizeMb
- Use JSON.parse() for permittedFileTypes to get an Array

* Add specs

* Change blackbox to black box

* Remove wait_for_javascript

* Remove comments from spec
2020-03-24 09:21:49 +01:00
..
admin A couple of rubocop fixes (#6648) 2020-03-16 16:15:52 +03:00
articles Fix collection order with cross posted articles (#6768) [deploy] 2020-03-23 16:05:32 +01:00
comments Validate file uploads client-side (#6737) 2020-03-24 09:21:49 +01:00
dashboards Add pagination to followers and following page in dashboard (#258) (#4375) [deploy] 2019-11-20 18:21:18 -05:00
homepage Homepage UI Improvements (#5890) [deploy] 2020-02-19 11:24:44 -05:00
internal Allow admins to delete users without emails (#6530) [deploy] 2020-03-10 22:20:36 +01:00
organization Fix rubocop Rails.root.path complaints (#5114) 2019-12-16 12:13:15 -05:00
podcasts Adds Podcast Episode metadata as JSON to avoid scraping the HTML (#6727) [deploy] 2020-03-20 10:28:24 -04:00
pro_memberships Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
user Move user deletion by moderator to worker (#5887) [deploy] 2020-02-05 08:27:07 -05:00
videos Fix community name (#2415) 2019-04-13 16:12:21 -04:00
banned_user_interactions_spec.rb Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
link_for_tags_in_posts_in_notifications_spec.rb Migrate feature test to system test (#2301) 2019-04-04 12:15:10 -04:00
user_leaves_top_level_comment_spec.rb Migrate feature test to system test (#2301) 2019-04-04 12:15:10 -04:00
user_logs_in_with_twitter_spec.rb Allow communities to dictate authentication providers (#6639) [deploy] 2020-03-18 16:41:39 -04:00
user_selects_looking_for_work_spec.rb Migrate Users/FollowJob to Sidekiq (#5403) 2020-01-08 15:03:18 -05:00
user_uses_the_editor_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
user_views_a_reading_list_spec.rb Improve reading list (#2695) 2019-05-05 19:19:30 -04:00
user_visits_a_comments_page_spec.rb Bump capybara from 3.26.0 to 3.27.0 (#3556) 2019-07-30 16:47:08 -04:00
user_visits_downloads_page_spec.rb Fix rubocop lints (#3922) [ci skip] 2019-09-03 10:09:48 -04:00