docbrown/spec/requests/admin
Ridhwana e250b46ed2
Using a Form Object that will persist for the Creator Settings Form (#15684)
* WIP: add a creatore settings form

* WIP: updat the controller to use the Creator Settings FOREM

* feat: use the creator settings form for the new action

* feat: add some default values for the new action

* a note about form data

* update the initiaize function to set some default values

* feat: update the form to use the model data

* feat: permit adn use the attributes within creator_settings_form

* update the flash error

* refactor: require and permit parameters

* chore: use booleans, set defaults and validate the form

* spec: update all the creator_settings tests

* chore: remove comment

* refactor: use self

* feat: aggregate failures'

* chore: remove the logo uploader in the controller

* refactor: update error handling

* feat: update the wasy the controller handles success and error

* chore: remove the resource errors

* feat: show flash message on new line

* fix: use a redirect so that we can get back to /new

* refactor: pass these values through as they seem to be caching whne setting them as default

* chore: change default values

* spec: update tests

* Fix CreatorSettingsForm specs

* fix: use a boolean for public

* spec: add another test for the success var

* fix: radio button labels to correspond + cyress specs

* spec: update based on new changes

* spec: update the params and the expected output

* spec: update the comments and status

* feat: no need for the initialize as we use Active Record Attributes

* feat: update the tac and coc to be persisted when ticked

* fix: amend spec

* blank space

* Message

Co-authored-by: Michael Kohl <me@citizen428.net>
2021-12-10 17:07:40 +02:00
..
tags role deprecation cleanup (#15717) 2021-12-09 15:27:45 -06:00
users Refactor Admin Member Detail view - Tools section (#14283) 2021-08-17 18:55:53 +02:00
articles_spec.rb Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
badge_achievements_spec.rb Admin Save Confirmation - Removing Badge Achievements (#14684) 2021-09-15 21:25:01 -04:00
badges_spec.rb [15-min-fix] Remove badge slug field b/c auto-gen by title (#13649) 2021-05-05 13:49:43 -04:00
broadcasts_spec.rb Heavy Confirmation Flow for Broadcast-Destroy (#14819) 2021-09-29 07:43:00 -04:00
comments_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
configs_spec.rb Spelling (#15702) 2021-12-07 06:59:10 -07:00
consumer_apps_spec.rb Have specs run without Redis and refactor ConsumerApp and Device (#13647) 2021-05-07 08:03:16 +02:00
creator_settings_spec.rb Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
data_update_scripts_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
display_ads_spec.rb Remove organization dependency and improve display ad UX (#14913) 2021-10-05 08:29:08 -04:00
feedback_messages_spec.rb Create Settings::SMTP (#13943) 2021-06-14 10:29:43 -04:00
html_variants_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
invitations_spec.rb Only enable user invitations page when SMTP is enabled (#15219) 2021-10-29 17:41:30 +02:00
listings_categories_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
listings_spec.rb [15-min-fix] Add org id to admin listings form (#14162) 2021-07-08 09:23:10 -04:00
moderator_actions_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
moderator_logs_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
mods_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
navigation_link_spec.rb Static Sections for Site Navigation - Pt1 (#14213) 2021-07-14 11:01:56 -04:00
nested_sidebar_spec.rb chore: uncomment the test (#13658) 2021-05-05 19:00:15 +02:00
organization_memberships_spec.rb Refactor Admin Member Detail view - Tools section (#14283) 2021-08-17 18:55:53 +02:00
organizations_spec.rb Spelling (#15702) 2021-12-07 06:59:10 -07:00
overview_spec.rb Spelling (#15702) 2021-12-07 06:59:10 -07:00
pages_spec.rb Only tech admins can manage page feature flags (#14618) 2021-08-31 15:35:42 -04:00
permissions_spec.rb [15-min-fix] Remove/Update the last of the admin hardcoded paths (#13681) 2021-05-06 15:12:06 +02:00
podcasts_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
privileged_reactions_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
profile_field_groups_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
profile_fields_spec.rb Refactor profile refreshing (#14643) 2021-09-13 12:15:04 -04:00
reactions_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
response_templates_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
secrets_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
sponsorships_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
tags_spec.rb Remove name from allowed tag params in admin (#15382) 2021-11-15 14:58:24 -06:00
tools_spec.rb RFC 50: Remove hardcoded paths and use path_helpers instead (in the specs) (#13549) 2021-04-28 21:32:51 +02:00
users_manage_spec.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
users_spec.rb Admin productivity: Allow admins to unpublish all posts from a user (#15054) 2021-10-15 08:56:59 +02:00
welcome_spec.rb Fix constant lookup in Admin::WelcomeController (#14320) 2021-07-26 08:12:47 -06:00