decidim-core 0.28.4 → 0.29.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/cells/decidim/activities_cell.rb +0 -1
- data/app/cells/decidim/activity_cell.rb +5 -7
- data/app/cells/decidim/address/online.erb +2 -2
- data/app/cells/decidim/address_cell.rb +3 -9
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/amendments_cell.rb +0 -2
- data/app/cells/decidim/amendable/announcement_cell.rb +10 -14
- data/app/cells/decidim/amendable/emendation_actions_cell.rb +0 -2
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +0 -2
- data/app/cells/decidim/amendable/wizard_step_form_cell.rb +6 -19
- data/app/cells/decidim/announcement/show.erb +1 -1
- data/app/cells/decidim/announcement_cell.rb +6 -2
- data/app/cells/decidim/attachments_file_tab/show.erb +3 -0
- data/app/cells/decidim/attachments_file_tab_cell.rb +11 -0
- data/app/cells/decidim/attachments_link_tab/show.erb +12 -0
- data/app/cells/decidim/attachments_link_tab_cell.rb +21 -0
- data/app/cells/decidim/author/flag.erb +2 -2
- data/app/cells/decidim/author_cell.rb +0 -2
- data/app/cells/decidim/authorization_modal_cell.rb +0 -3
- data/app/cells/decidim/badge_cell.rb +0 -4
- data/app/cells/decidim/badges_cell.rb +0 -2
- data/app/cells/decidim/button_cell.rb +0 -3
- data/app/cells/decidim/card_cell.rb +1 -5
- data/app/cells/decidim/card_g/show.erb +1 -1
- data/app/cells/decidim/card_g_cell.rb +4 -7
- data/app/cells/decidim/card_l/image.erb +2 -2
- data/app/cells/decidim/card_l/space.erb +1 -1
- data/app/cells/decidim/card_l_cell.rb +3 -8
- data/app/cells/decidim/card_metadata_cell.rb +1 -5
- data/app/cells/decidim/card_s_cell.rb +1 -4
- data/app/cells/decidim/coauthorships_cell.rb +0 -2
- data/app/cells/decidim/comments_button_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/footer_sub_hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/footer_sub_hero_cell.rb +0 -3
- data/app/cells/decidim/content_blocks/hero/show.erb +1 -1
- data/app/cells/decidim/content_blocks/hero_cell.rb +1 -2
- data/app/cells/decidim/content_blocks/highlighted_content_banner/show.erb +1 -1
- data/app/cells/decidim/content_blocks/highlighted_content_banner_cell.rb +0 -2
- data/app/cells/decidim/content_blocks/how_to_participate/show.erb +1 -1
- data/app/cells/decidim/content_blocks/how_to_participate_cell.rb +0 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents/content.erb +1 -1
- data/app/cells/decidim/content_blocks/participatory_space_documents_cell.rb +17 -1
- data/app/cells/decidim/content_blocks/participatory_space_hero_cell.rb +2 -4
- data/app/cells/decidim/content_blocks/participatory_space_last_activity_cell.rb +1 -3
- data/app/cells/decidim/content_blocks/stats/show.erb +1 -1
- data/app/cells/decidim/content_blocks/stats_cell.rb +1 -1
- data/app/cells/decidim/content_blocks/sub_hero_cell.rb +0 -3
- data/app/cells/decidim/date_range/show.erb +10 -10
- data/app/cells/decidim/date_range_cell.rb +0 -2
- data/app/cells/decidim/diff_cell.rb +0 -1
- data/app/cells/decidim/documents_panel/show.erb +4 -0
- data/app/cells/decidim/documents_panel_cell.rb +9 -1
- data/app/cells/decidim/endorsement_buttons_cell.rb +6 -14
- data/app/cells/decidim/flag_modal/flag_user.erb +3 -3
- data/app/cells/decidim/followers_cell.rb +0 -1
- data/app/cells/decidim/following_cell.rb +0 -1
- data/app/cells/decidim/footer_topics/show.erb +8 -0
- data/app/cells/decidim/footer_topics_cell.rb +39 -0
- data/app/cells/decidim/groups_cell.rb +0 -3
- data/app/cells/decidim/linked_resources_for_cell.rb +0 -3
- data/app/cells/decidim/members_cell.rb +0 -1
- data/app/cells/decidim/nav_links/show.erb +3 -3
- data/app/cells/decidim/navbar_admin_link_cell.rb +0 -2
- data/app/cells/decidim/newsletter_templates/base_cell.rb +0 -1
- data/app/cells/decidim/newsletter_templates/basic_only_text/show.erb +2 -2
- data/app/cells/decidim/newsletter_templates/image_text_cta/show.erb +2 -2
- data/app/cells/decidim/notification/show.erb +5 -0
- data/app/cells/decidim/notification_actions/base_cell.rb +13 -0
- data/app/cells/decidim/notification_actions/buttons/show.erb +5 -0
- data/app/cells/decidim/notification_actions/buttons_cell.rb +41 -0
- data/app/cells/decidim/notification_cell.rb +9 -3
- data/app/cells/decidim/notifications_cell.rb +0 -1
- data/app/cells/decidim/pad_iframe/show.erb +2 -2
- data/app/cells/decidim/pad_iframe_cell.rb +0 -1
- data/app/cells/decidim/participatory_space_dropdown_metadata_cell.rb +1 -2
- data/app/cells/decidim/photo_cell.rb +1 -5
- data/app/cells/decidim/photos_list_cell.rb +0 -2
- data/app/cells/decidim/profile_cell.rb +0 -2
- data/app/cells/decidim/profile_sidebar/show.erb +20 -20
- data/app/cells/decidim/profile_sidebar_cell.rb +1 -10
- data/app/cells/decidim/progress_bar/show.erb +8 -6
- data/app/cells/decidim/public_participation/show.erb +1 -1
- data/app/cells/decidim/report_button/flag_modal.erb +1 -1
- data/app/cells/decidim/resource_types_filter/show.erb +12 -11
- data/app/cells/decidim/resource_types_filter_cell.rb +0 -2
- data/app/cells/decidim/scopes_picker/show.erb +1 -1
- data/app/cells/decidim/scopes_picker_cell.rb +0 -1
- data/app/cells/decidim/search_results_cell.rb +1 -1
- data/app/cells/decidim/statistic_cell.rb +0 -2
- data/app/cells/decidim/tab_panels/show.erb +1 -1
- data/app/cells/decidim/tab_panels_cell.rb +12 -2
- data/app/cells/decidim/tags_cell.rb +0 -2
- data/app/cells/decidim/tos_page_cell.rb +0 -3
- data/app/cells/decidim/translation_bar/show.erb +1 -1
- data/app/cells/decidim/translation_bar_cell.rb +0 -2
- data/app/cells/decidim/upload_modal/files.erb +1 -1
- data/app/cells/decidim/upload_modal_cell.rb +1 -3
- data/app/cells/decidim/user_conversation/new.erb +1 -1
- data/app/cells/decidim/user_conversation/show.erb +1 -1
- data/app/cells/decidim/user_conversation_cell.rb +0 -1
- data/app/cells/decidim/user_conversations/show.erb +1 -1
- data/app/cells/decidim/user_conversations_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_invitations_list_cell.rb +0 -1
- data/app/cells/decidim/user_group_pending_requests_list_cell.rb +0 -1
- data/app/cells/decidim/user_timeline/show.erb +1 -1
- data/app/cells/decidim/version_cell.rb +3 -5
- data/app/cells/decidim/versions_list_cell.rb +1 -3
- data/app/cells/decidim/versions_list_item_cell.rb +2 -4
- data/app/cells/decidim/wizard_step_form/wizard_aside.erb +2 -2
- data/app/cells/decidim/wizard_step_form/wizard_header.erb +2 -3
- data/app/cells/decidim/wizard_step_form_cell.rb +0 -8
- data/app/commands/decidim/amendable/create_draft.rb +4 -4
- data/app/commands/decidim/amendable/promote.rb +3 -2
- data/app/commands/decidim/amendable/publish_draft.rb +3 -2
- data/app/commands/decidim/amendable/update_draft.rb +4 -3
- data/app/commands/decidim/amendable/withdraw.rb +1 -1
- data/app/commands/decidim/create_follow.rb +4 -4
- data/app/commands/decidim/create_omniauth_registration.rb +4 -10
- data/app/commands/decidim/create_report.rb +3 -3
- data/app/commands/decidim/create_user_report.rb +5 -5
- data/app/commands/decidim/delete_follow.rb +4 -4
- data/app/commands/decidim/demote_membership.rb +2 -2
- data/app/commands/decidim/destroy_account.rb +21 -19
- data/app/commands/decidim/endorse_resource.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +5 -4
- data/app/commands/decidim/update_account.rb +24 -22
- data/app/commands/decidim/update_notifications_settings.rb +13 -11
- data/app/commands/decidim/update_password.rb +7 -7
- data/app/commands/decidim/update_user_interests.rb +9 -7
- data/app/controllers/concerns/decidim/devise_authentication_methods.rb +1 -1
- data/app/controllers/concerns/decidim/devise_controllers.rb +2 -1
- data/app/controllers/concerns/decidim/filter_resource.rb +1 -1
- data/app/controllers/concerns/decidim/needs_rtl_direction.rb +23 -0
- data/app/controllers/concerns/decidim/paginable.rb +1 -1
- data/app/controllers/concerns/decidim/participatory_space_context.rb +1 -23
- data/app/controllers/concerns/decidim/payload_info.rb +2 -1
- data/app/controllers/concerns/decidim/registers_permissions.rb +4 -4
- data/app/controllers/concerns/decidim/use_organization_time_zone.rb +1 -1
- data/app/controllers/concerns/decidim/withdrawable.rb +1 -1
- data/app/controllers/decidim/account_controller.rb +2 -2
- data/app/controllers/{concerns/decidim → decidim}/amendments_controller.rb +3 -16
- data/app/controllers/decidim/application_controller.rb +1 -1
- data/app/controllers/decidim/components/base_controller.rb +1 -1
- data/app/controllers/decidim/devise/invitations_controller.rb +1 -1
- data/app/controllers/decidim/devise/passwords_controller.rb +2 -2
- data/app/controllers/decidim/endorsements_controller.rb +1 -1
- data/app/controllers/decidim/favicon_controller.rb +1 -1
- data/app/controllers/decidim/follows_controller.rb +2 -2
- data/app/controllers/decidim/group_invites_controller.rb +36 -9
- data/app/controllers/decidim/newsletters_opt_in_controller.rb +1 -1
- data/app/controllers/decidim/notifications_settings_controller.rb +1 -1
- data/app/controllers/decidim/report_users_controller.rb +1 -1
- data/app/controllers/decidim/reports_controller.rb +1 -1
- data/app/controllers/decidim/user_interests_controller.rb +1 -1
- data/app/events/decidim/change_nickname_event.rb +0 -1
- data/app/events/decidim/invited_to_group_event.rb +29 -0
- data/app/events/decidim/welcome_notification_event.rb +2 -4
- data/app/forms/decidim/form.rb +4 -0
- data/app/forms/decidim/omniauth_registration_form.rb +1 -1
- data/app/forms/decidim/upload_validation_form.rb +2 -2
- data/app/helpers/concerns/decidim/flash_helper_extensions.rb +1 -1
- data/app/helpers/decidim/amendments_helper.rb +4 -14
- data/app/helpers/decidim/application_helper.rb +8 -0
- data/app/helpers/decidim/authorization_form_helper.rb +2 -2
- data/app/helpers/decidim/breadcrumb_helper.rb +1 -1
- data/app/helpers/decidim/cells_helper.rb +1 -1
- data/app/helpers/decidim/check_boxes_tree_helper.rb +1 -1
- data/app/helpers/decidim/datalist_select_helper.rb +1 -1
- data/app/helpers/decidim/decidim_form_helper.rb +3 -3
- data/app/helpers/decidim/filters_helper.rb +1 -1
- data/app/helpers/decidim/layout_helper.rb +1 -64
- data/app/helpers/decidim/localized_locales_helper.rb +1 -1
- data/app/helpers/decidim/menu_helper.rb +9 -1
- data/app/helpers/decidim/meta_tags_helper.rb +26 -23
- data/app/helpers/decidim/modal_helper.rb +1 -1
- data/app/helpers/decidim/orders_helper.rb +1 -1
- data/app/helpers/decidim/organization_helper.rb +55 -0
- data/app/helpers/decidim/paginate_helper.rb +5 -3
- data/app/helpers/decidim/resource_helper.rb +0 -7
- data/app/helpers/decidim/scopes_helper.rb +3 -4
- data/app/helpers/decidim/searches_helper.rb +1 -1
- data/app/helpers/decidim/short_link_helper.rb +2 -2
- data/app/helpers/decidim/translations_helper.rb +2 -2
- data/app/helpers/decidim/twitter_search_helper.rb +1 -1
- data/app/helpers/decidim/user_profile_helper.rb +0 -1
- data/app/jobs/decidim/email_notifications_digest_generator_job.rb +2 -2
- data/app/mailers/decidim/application_mailer.rb +6 -2
- data/app/mailers/decidim/block_user_mailer.rb +1 -1
- data/app/mailers/decidim/decidim_devise_mailer.rb +7 -1
- data/app/mailers/decidim/newsletter_mailer.rb +1 -4
- data/app/mailers/decidim/newsletters_opt_in_mailer.rb +2 -2
- data/app/mailers/decidim/notification_mailer.rb +0 -1
- data/app/mailers/decidim/notifications_digest_mailer.rb +0 -1
- data/app/mailers/decidim/reported_mailer.rb +6 -3
- data/app/mailers/decidim/user_report_mailer.rb +1 -1
- data/app/models/decidim/action_log.rb +2 -12
- data/app/models/decidim/area_type.rb +1 -1
- data/app/models/decidim/attachment.rb +28 -4
- data/app/models/decidim/authorization.rb +1 -1
- data/app/models/decidim/authorization_transfer.rb +1 -0
- data/app/models/decidim/component.rb +3 -6
- data/app/models/decidim/content_block.rb +3 -3
- data/app/models/decidim/messaging/message.rb +2 -2
- data/app/models/decidim/newsletter.rb +9 -9
- data/app/models/decidim/notification.rb +2 -2
- data/app/models/decidim/organization.rb +23 -2
- data/app/models/decidim/push_notification_message.rb +1 -1
- data/app/models/decidim/resource_link.rb +1 -1
- data/app/models/decidim/user.rb +14 -14
- data/app/models/decidim/user_group.rb +2 -2
- data/app/packs/src/decidim/a11y.js +61 -11
- data/app/packs/src/decidim/append_redirect_url_to_modals.js +12 -14
- data/app/packs/src/decidim/attachments/file_or_link_tabs.js +55 -0
- data/app/packs/src/decidim/attachments/index.js +1 -0
- data/app/packs/src/decidim/back_to_list.js +1 -1
- data/app/packs/src/decidim/check_boxes_tree.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.js +1 -1
- data/app/packs/src/decidim/data_consent/consent_manager.test.js +6 -6
- data/app/packs/src/decidim/data_consent/index.js +1 -1
- data/app/packs/src/decidim/datepicker/datepicker_functions.js +243 -0
- data/app/packs/src/decidim/datepicker/datepicker_listeners.js +78 -0
- data/app/packs/src/decidim/datepicker/form_datepicker.js +91 -0
- data/app/packs/src/decidim/datepicker/generate_datepicker.js +148 -0
- data/app/packs/src/decidim/datepicker/generate_timepicker.js +298 -0
- data/app/packs/src/decidim/datepicker/test/date.test.js +118 -0
- data/app/packs/src/decidim/datepicker/test/time.test.js +227 -0
- data/app/packs/src/decidim/direct_uploads/upload_modal.js +0 -3
- data/app/packs/src/decidim/editor/extensions/indent/index.js +1 -1
- data/app/packs/src/decidim/editor/extensions/video_embed/index.js +4 -4
- data/app/packs/src/decidim/editor/test/extensions/decidim_kit.test.js +0 -15
- data/app/packs/src/decidim/editor/test/extensions/indent.test.js +1 -1
- data/app/packs/src/decidim/editor/test/fixtures/upload_templates.js +1 -1
- data/app/packs/src/decidim/editor/test/helpers.js +1 -14
- data/app/packs/src/decidim/editor/utilities/paste_transform.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.js +2 -2
- data/app/packs/src/decidim/external_domain_warning.test.js +4 -4
- data/app/packs/src/decidim/form_filter.js +4 -4
- data/app/packs/src/decidim/impersonation.js +1 -1
- data/app/packs/src/decidim/index.js +11 -5
- data/app/packs/src/decidim/input_character_counter.js +2 -2
- data/app/packs/src/decidim/input_emoji.js +171 -72
- data/app/packs/src/decidim/input_hashtags.js +1 -1
- data/app/packs/src/decidim/input_mentions.js +1 -1
- data/app/packs/src/decidim/notifications_actions.js +40 -0
- data/app/packs/src/decidim/sticky_header.js +87 -0
- data/app/packs/src/decidim/sw/sw.js +8 -6
- data/app/packs/src/decidim/tooltips.js +1 -1
- data/app/packs/stylesheets/decidim/_buttons.scss +1 -1
- data/app/packs/stylesheets/decidim/_datepicker.scss +193 -0
- data/app/packs/stylesheets/decidim/_dropdown.scss +45 -9
- data/app/packs/stylesheets/decidim/_emoji.scss +36 -0
- data/app/packs/stylesheets/decidim/_filters.scss +4 -2
- data/app/packs/stylesheets/decidim/_flash.scss +2 -2
- data/app/packs/stylesheets/decidim/_footer.scss +1 -3
- data/app/packs/stylesheets/decidim/_forms.scss +13 -5
- data/app/packs/stylesheets/decidim/_header.scss +70 -50
- data/app/packs/stylesheets/decidim/_home.scss +1 -1
- data/app/packs/stylesheets/decidim/_layout.scss +13 -0
- data/app/packs/stylesheets/decidim/_modal.scss +1 -1
- data/app/packs/stylesheets/decidim/_modal_update.scss +1 -5
- data/app/packs/stylesheets/decidim/_notifications.scss +4 -0
- data/app/packs/stylesheets/decidim/_tabs_x.scss +5 -1
- data/app/packs/stylesheets/decidim/_tooltip.scss +10 -10
- data/app/packs/stylesheets/decidim/application.scss +4 -0
- data/app/packs/stylesheets/decidim/editor.scss +1 -1
- data/app/packs/stylesheets/decidim/legacy/leaflet.scss +1 -1
- data/app/packs/stylesheets/decidim/vendor/_datepicker_light.scss +228 -0
- data/app/permissions/decidim/default_permissions.rb +2 -2
- data/app/presenters/decidim/admin_log/organization_presenter.rb +1 -1
- data/app/presenters/decidim/admin_log/static_page_presenter.rb +1 -1
- data/app/presenters/decidim/authorization_transfer_presenter.rb +1 -1
- data/app/presenters/decidim/component_attachment_collection_presenter.rb +81 -0
- data/app/presenters/decidim/footer_menu_presenter.rb +1 -1
- data/app/presenters/decidim/home_stats_presenter.rb +1 -1
- data/app/presenters/decidim/menu_item_presenter.rb +1 -1
- data/app/presenters/decidim/organization_presenter.rb +1 -1
- data/app/queries/decidim/last_activity.rb +5 -16
- data/app/queries/decidim/metric_measure.rb +1 -1
- data/app/queries/decidim/public_activities.rb +1 -1
- data/app/queries/decidim/user_groups/admin_memberships.rb +1 -1
- data/app/queries/decidim/user_groups/member_memberships.rb +1 -1
- data/app/services/decidim/action_logger.rb +3 -3
- data/app/services/decidim/download_your_data_exporter.rb +25 -36
- data/app/services/decidim/log/diff_changeset_calculator.rb +2 -2
- data/app/services/decidim/notifications_digest_sending_decider.rb +1 -1
- data/app/services/decidim/open_data_exporter.rb +7 -8
- data/app/services/decidim/zip_stream/writer.rb +39 -0
- data/app/uploaders/decidim/organization_favicon_uploader.rb +1 -1
- data/app/uploaders/decidim/record_image_uploader.rb +2 -2
- data/app/validators/organization_present_validator.rb +1 -1
- data/app/validators/passthru_validator.rb +1 -1
- data/app/validators/uploader_image_dimensions_validator.rb +2 -2
- data/app/views/decidim/account/show.html.erb +1 -1
- data/app/views/decidim/amendments/_wizard_header.html.erb +1 -2
- data/app/views/decidim/application/_collection.html.erb +3 -1
- data/app/views/decidim/application/_component_documents.html.erb +4 -0
- data/app/views/decidim/application/_document.html.erb +23 -9
- data/app/views/decidim/block_user_mailer/notify.html.erb +2 -2
- data/app/views/decidim/devise/invitations/edit.html.erb +2 -2
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +2 -2
- data/app/views/decidim/devise/registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/shared/_login_boxes.html.erb +1 -1
- data/app/views/decidim/doorkeeper/authorizations/new.html.erb +1 -1
- data/app/views/decidim/endorsements/_identity.html.erb +1 -1
- data/app/views/decidim/gamification/badges/index.html.erb +1 -1
- data/app/views/decidim/manifests/show.json.erb +4 -4
- data/app/views/decidim/messaging/conversations/_add_conversation_users.html.erb +2 -2
- data/app/views/decidim/messaging/conversations/_error_modal.html.erb +5 -5
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +1 -1
- data/app/views/decidim/newsletters/show.html.erb +1 -1
- data/app/views/decidim/newsletters_opt_in_mailer/notify.html.erb +2 -2
- data/app/views/decidim/offline/show.html.erb +1 -1
- data/app/views/decidim/pages/_tabbed.html.erb +3 -3
- data/app/views/decidim/pages/index.html.erb +1 -2
- data/app/views/decidim/reported_mailer/report.html.erb +4 -2
- data/app/views/decidim/scopes/picker.html.erb +5 -5
- data/app/views/decidim/searches/_resources_filter_block.html.erb +6 -6
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +8 -8
- data/app/views/decidim/shared/_filters.html.erb +5 -5
- data/app/views/decidim/shared/_login_modal.html.erb +1 -1
- data/app/views/decidim/shared/_orders.html.erb +2 -3
- data/app/views/decidim/shared/filters/_check_boxes_tree.html.erb +1 -1
- data/app/views/decidim/shared/filters/_collection.html.erb +1 -1
- data/app/views/decidim/user_interests/_areas.html.erb +2 -2
- data/app/views/decidim/user_report_mailer/notify.html.erb +2 -2
- data/app/views/decidim/user_update_mailer/notify.html.erb +1 -1
- data/app/views/decidim/widgets/_data_picker.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.text.erb +1 -1
- data/app/views/devise/mailer/invite_admin.html.erb +2 -2
- data/app/views/devise/mailer/invite_admin.text.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.html.erb +2 -2
- data/app/views/devise/mailer/invite_collaborator.text.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.html.erb +2 -2
- data/app/views/devise/mailer/invite_private_user.text.erb +2 -2
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/organization_admin_invitation_instructions.text.erb +1 -1
- data/app/views/layouts/decidim/_application.html.erb +3 -6
- data/app/views/layouts/decidim/_data_consent_warning.html.erb +2 -2
- data/app/views/layouts/decidim/_decidim_javascript.html.erb +1 -1
- data/app/views/layouts/decidim/_head.html.erb +1 -1
- data/app/views/layouts/decidim/_head_extra.html.erb +2 -2
- data/app/views/layouts/decidim/_impersonation_warning.html.erb +1 -1
- data/app/views/layouts/decidim/_js_configuration.html.erb +7 -2
- data/app/views/layouts/decidim/_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_logo_mobile.html.erb +11 -0
- data/app/views/layouts/decidim/_mailer_logo.html.erb +2 -2
- data/app/views/layouts/decidim/_meta_tags_config.html.erb +1 -1
- data/app/views/layouts/decidim/_wrapper.html.erb +16 -9
- data/app/views/layouts/decidim/footer/_main.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_intro.html.erb +2 -2
- data/app/views/layouts/decidim/footer/_main_legal.html.erb +2 -3
- data/app/views/layouts/decidim/footer/_main_links.html.erb +13 -11
- data/app/views/layouts/decidim/footer/_main_social_media_links.html.erb +8 -8
- data/app/views/layouts/decidim/header/_main.html.erb +9 -22
- data/app/views/layouts/decidim/header/_main_links_desktop.html.erb +4 -5
- data/app/views/layouts/decidim/header/_main_links_mobile_account.html.erb +11 -4
- data/app/views/layouts/decidim/header/_main_links_mobile_item_account.html.erb +24 -0
- data/app/views/layouts/decidim/header/_main_links_mobile_search.html.erb +0 -21
- data/app/views/layouts/decidim/header/_main_menu_mobile.html.erb +12 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_desktop.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_mobile.html.erb +17 -0
- data/app/views/layouts/decidim/header/_menu_breadcrumb_main_dropdown_top_left.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_breadcrumb_mobile_tablet.html.erb +1 -1
- data/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb +16 -0
- data/app/views/layouts/decidim/header/_mobile_language_choose.html.erb +25 -0
- data/app/views/layouts/decidim/mailer.html.erb +2 -2
- data/app/views/layouts/decidim/shared/_layout_center.html.erb +1 -1
- data/app/views/layouts/decidim/shared/_layout_item.html.erb +0 -14
- data/app/views/layouts/decidim/shared/_layout_user_profile.html.erb +2 -2
- data/config/initializers/active_storage.rb +3 -0
- data/config/initializers/devise.rb +1 -1
- data/config/initializers/new_framework_defaults_7_0.rb +145 -0
- data/config/locales/ar.yml +3 -42
- data/config/locales/bg.yml +56 -57
- data/config/locales/ca.yml +69 -58
- data/config/locales/cs.yml +54 -58
- data/config/locales/de.yml +65 -54
- data/config/locales/el.yml +1 -29
- data/config/locales/en.yml +69 -58
- data/config/locales/es-MX.yml +68 -57
- data/config/locales/es-PY.yml +68 -57
- data/config/locales/es.yml +67 -56
- data/config/locales/eu.yml +71 -60
- data/config/locales/fi-plain.yml +70 -59
- data/config/locales/fi.yml +94 -83
- data/config/locales/fr-CA.yml +61 -56
- data/config/locales/fr.yml +56 -51
- data/config/locales/ga-IE.yml +0 -11
- data/config/locales/gl.yml +1 -18
- data/config/locales/hu.yml +37 -56
- data/config/locales/id-ID.yml +0 -14
- data/config/locales/is-IS.yml +0 -13
- data/config/locales/it.yml +0 -25
- data/config/locales/ja.yml +70 -59
- data/config/locales/lb.yml +0 -25
- data/config/locales/lt.yml +1 -48
- data/config/locales/lv.yml +0 -21
- data/config/locales/nl.yml +0 -24
- data/config/locales/no.yml +0 -25
- data/config/locales/pl.yml +68 -56
- data/config/locales/pt-BR.yml +5 -250
- data/config/locales/pt.yml +0 -25
- data/config/locales/ro-RO.yml +49 -89
- data/config/locales/ru.yml +0 -15
- data/config/locales/sk.yml +0 -21
- data/config/locales/sl.yml +0 -8
- data/config/locales/sv.yml +159 -600
- data/config/locales/tr-TR.yml +4 -27
- data/config/locales/uk.yml +0 -10
- data/config/locales/zh-CN.yml +0 -22
- data/config/locales/zh-TW.yml +1 -47
- data/config/routes.rb +0 -1
- data/db/migrate/20170128112958_change_user_groups_verified_to_timestamp.rb +1 -1
- data/db/migrate/20181025082245_add_timestamps_to_components.rb +1 -5
- data/db/migrate/20240110150230_rename_external_domain_whitelist_to_external_domain_allowlist.rb +7 -0
- data/db/migrate/20240326104215_remove_show_in_footer_in_static_pages.rb +7 -0
- data/db/migrate/20240401192628_change_name_on_decidim_organizations.rb +31 -0
- data/db/seeds/avatars/001.jpg +0 -0
- data/db/seeds/avatars/002.jpg +0 -0
- data/db/seeds/avatars/003.jpg +0 -0
- data/db/seeds/avatars/004.jpg +0 -0
- data/db/seeds/avatars/005.jpg +0 -0
- data/db/seeds/avatars/006.jpg +0 -0
- data/db/seeds/avatars/007.jpg +0 -0
- data/db/seeds/avatars/008.jpg +0 -0
- data/db/seeds/avatars/009.jpg +0 -0
- data/db/seeds/avatars/010.jpg +0 -0
- data/db/seeds/avatars/011.jpg +0 -0
- data/db/seeds/avatars/012.jpg +0 -0
- data/db/seeds/avatars/013.jpg +0 -0
- data/db/seeds/avatars/014.jpg +0 -0
- data/db/seeds/avatars/015.jpg +0 -0
- data/db/seeds/avatars/016.jpg +0 -0
- data/db/seeds/avatars/017.jpg +0 -0
- data/db/seeds/avatars/018.jpg +0 -0
- data/db/seeds/avatars/019.jpg +0 -0
- data/db/seeds/avatars/020.jpg +0 -0
- data/db/seeds/avatars/021.jpg +0 -0
- data/db/seeds/avatars/022.jpg +0 -0
- data/db/seeds/avatars/023.jpg +0 -0
- data/db/seeds/avatars/024.jpg +0 -0
- data/db/seeds/avatars/025.jpg +0 -0
- data/db/seeds/avatars/026.jpg +0 -0
- data/db/seeds/avatars/027.jpg +0 -0
- data/db/seeds/avatars/028.jpg +0 -0
- data/db/seeds/avatars/029.jpg +0 -0
- data/db/seeds/avatars/030.jpg +0 -0
- data/db/seeds/avatars/031.jpg +0 -0
- data/db/seeds/avatars/032.jpg +0 -0
- data/db/seeds/avatars/033.jpg +0 -0
- data/db/seeds/avatars/034.jpg +0 -0
- data/db/seeds/avatars/035.jpg +0 -0
- data/db/seeds/avatars/036.jpg +0 -0
- data/db/seeds/avatars/037.jpg +0 -0
- data/db/seeds/avatars/038.jpg +0 -0
- data/db/seeds/avatars/039.jpg +0 -0
- data/db/seeds/avatars/040.jpg +0 -0
- data/db/seeds/avatars/041.jpg +0 -0
- data/db/seeds/avatars/042.jpg +0 -0
- data/db/seeds/avatars/043.jpg +0 -0
- data/db/seeds/avatars/044.jpg +0 -0
- data/db/seeds/avatars/045.jpg +0 -0
- data/db/seeds/avatars/046.jpg +0 -0
- data/db/seeds/avatars/047.jpg +0 -0
- data/db/seeds/avatars/048.jpg +0 -0
- data/db/seeds/avatars/049.jpg +0 -0
- data/db/seeds/avatars/050.jpg +0 -0
- data/db/seeds/avatars/051.jpg +0 -0
- data/db/seeds/avatars/052.jpg +0 -0
- data/db/seeds/avatars/053.jpg +0 -0
- data/db/seeds/avatars/054.jpg +0 -0
- data/db/seeds/avatars/055.jpg +0 -0
- data/db/seeds/avatars/056.jpg +0 -0
- data/db/seeds/avatars/057.jpg +0 -0
- data/db/seeds/avatars/058.jpg +0 -0
- data/db/seeds/avatars/059.jpg +0 -0
- data/db/seeds/avatars/060.jpg +0 -0
- data/db/seeds/avatars/061.jpg +0 -0
- data/db/seeds/avatars/062.jpg +0 -0
- data/db/seeds/avatars/063.jpg +0 -0
- data/db/seeds/avatars/064.jpg +0 -0
- data/db/seeds/avatars/065.jpg +0 -0
- data/db/seeds/avatars/066.jpg +0 -0
- data/db/seeds/avatars/067.jpg +0 -0
- data/db/seeds/avatars/068.jpg +0 -0
- data/db/seeds/avatars/069.jpg +0 -0
- data/db/seeds/avatars/070.jpg +0 -0
- data/db/seeds/avatars/071.jpg +0 -0
- data/db/seeds/avatars/072.jpg +0 -0
- data/db/seeds/avatars/073.jpg +0 -0
- data/db/seeds/avatars/074.jpg +0 -0
- data/db/seeds/avatars/075.jpg +0 -0
- data/db/seeds/avatars/076.jpg +0 -0
- data/db/seeds/avatars/077.jpg +0 -0
- data/db/seeds/avatars/078.jpg +0 -0
- data/db/seeds/avatars/079.jpg +0 -0
- data/db/seeds/avatars/080.jpg +0 -0
- data/db/seeds/avatars/081.jpg +0 -0
- data/db/seeds/avatars/082.jpg +0 -0
- data/db/seeds/avatars/083.jpg +0 -0
- data/db/seeds/avatars/084.jpg +0 -0
- data/db/seeds/avatars/085.jpg +0 -0
- data/db/seeds/avatars/086.jpg +0 -0
- data/db/seeds/avatars/087.jpg +0 -0
- data/db/seeds/avatars/088.jpg +0 -0
- data/db/seeds/avatars/089.jpg +0 -0
- data/db/seeds/avatars/090.jpg +0 -0
- data/db/seeds/avatars/091.jpg +0 -0
- data/db/seeds/avatars/092.jpg +0 -0
- data/db/seeds/avatars/093.jpg +0 -0
- data/db/seeds/avatars/094.jpg +0 -0
- data/db/seeds/avatars/095.jpg +0 -0
- data/db/seeds/avatars/096.jpg +0 -0
- data/db/seeds/avatars/097.jpg +0 -0
- data/db/seeds/avatars/098.jpg +0 -0
- data/db/seeds/avatars/099.jpg +0 -0
- data/db/seeds/avatars/100.jpg +0 -0
- data/db/seeds/avatars/CREDITS.md +114 -0
- data/db/seeds/avatars/README.md +25 -0
- data/decidim-core.gemspec +7 -5
- data/lib/decidim/acts_as_author.rb +1 -1
- data/lib/decidim/admin_filter.rb +44 -0
- data/lib/decidim/admin_filters_registry.rb +55 -0
- data/lib/decidim/amendable.rb +1 -2
- data/lib/decidim/api/functions/component_finder_base.rb +1 -1
- data/lib/decidim/api/functions/needs_api_filter_and_order.rb +3 -3
- data/lib/decidim/api/functions/participatory_space_finder_base.rb +1 -1
- data/lib/decidim/api/functions/participatory_space_list_base.rb +1 -1
- data/lib/decidim/api/input_filters/user_entity_input_filter.rb +3 -3
- data/lib/decidim/api/interfaces/author_interface.rb +1 -1
- data/lib/decidim/api/types/organization_type.rb +1 -1
- data/lib/decidim/api/types/user_group_type.rb +1 -1
- data/lib/decidim/api/types/user_type.rb +1 -1
- data/lib/decidim/asset_router/pipeline.rb +2 -2
- data/lib/decidim/asset_router/storage.rb +11 -214
- data/lib/decidim/assets/tailwind/instance.rb +1 -1
- data/lib/decidim/assets/tailwind/tailwind.config.js.erb +8 -3
- data/lib/decidim/attribute_object/model.rb +2 -2
- data/lib/decidim/attribute_object/type_resolver.rb +1 -3
- data/lib/decidim/attribute_object.rb +2 -2
- data/lib/decidim/attributes.rb +0 -4
- data/lib/decidim/authorable.rb +5 -0
- data/lib/decidim/command.rb +2 -2
- data/lib/decidim/commands/create_resource.rb +63 -0
- data/lib/decidim/commands/destroy_resource.rb +74 -0
- data/lib/decidim/commands/hook_error.rb +8 -0
- data/lib/decidim/commands/resource_handler.rb +85 -0
- data/lib/decidim/commands/update_resource.rb +64 -0
- data/lib/decidim/component_manifest.rb +3 -1
- data/lib/decidim/component_validator.rb +1 -1
- data/lib/decidim/content_blocks/has_related_components.rb +1 -1
- data/lib/decidim/content_parsers/resource_parser.rb +2 -2
- data/lib/decidim/content_processor.rb +1 -1
- data/lib/decidim/content_security_policy.rb +1 -1
- data/lib/decidim/core/engine.rb +12 -29
- data/lib/decidim/core/menu.rb +13 -3
- data/lib/decidim/core/seeds.rb +120 -147
- data/lib/decidim/core/test/factories.rb +24 -3
- data/lib/decidim/core/test/shared_examples/acts_as_author_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/amendable/withdraw_amendment_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/assembly_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/attachable_interface_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +88 -92
- data/lib/decidim/core/test/shared_examples/comments_reports_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/digest_mail_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/edit_link_shared_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/editor_shared_examples.rb +7 -7
- data/lib/decidim/core/test/shared_examples/fingerprint_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +6 -11
- data/lib/decidim/core/test/shared_examples/has_attachment_collections.rb +4 -2
- data/lib/decidim/core/test/shared_examples/has_attachments.rb +3 -2
- data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +4 -4
- data/lib/decidim/core/test/shared_examples/has_reference.rb +1 -1
- data/lib/decidim/core/test/shared_examples/logo_email.rb +1 -1
- data/lib/decidim/core/test/shared_examples/manage_component_share_tokens.rb +9 -9
- data/lib/decidim/core/test/shared_examples/map_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/paginated_resource_examples.rb +7 -7
- data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/preview_component_with_share_token_examples.rb +3 -3
- data/lib/decidim/core/test/shared_examples/process_announcements_examples.rb +4 -4
- data/lib/decidim/core/test/shared_examples/reports_examples.rb +5 -5
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +10 -10
- data/lib/decidim/core/test/shared_examples/searchable_participatory_space_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +8 -8
- data/lib/decidim/core/test/shared_examples/share_link_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/simple_event.rb +1 -1
- data/lib/decidim/core/test/shared_examples/space_cell_changes_button_text_cta.rb +3 -3
- data/lib/decidim/core/test/shared_examples/system_endorse_resource_examples.rb +15 -113
- data/lib/decidim/core/test/shared_examples/translated_event_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/uncommentable_component_examples.rb +2 -2
- data/lib/decidim/core/test/shared_examples/with_endorsable_permissions_examples.rb +1 -1
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/core.rb +24 -17
- data/lib/decidim/dependency_resolver.rb +3 -3
- data/lib/decidim/diffy_extension.rb +1 -1
- data/lib/decidim/download_your_data_serializers/download_your_data_user_serializer.rb +2 -1
- data/lib/decidim/engine_router.rb +2 -2
- data/lib/decidim/events/base_event.rb +19 -0
- data/lib/decidim/events/simple_event.rb +1 -0
- data/lib/decidim/exporters/export_manifest.rb +1 -1
- data/lib/decidim/faker/localized.rb +3 -3
- data/lib/decidim/form_builder.rb +4 -4
- data/lib/decidim/hashtag.rb +1 -1
- data/lib/decidim/jsonb_attributes.rb +4 -4
- data/lib/decidim/manifest_messages.rb +2 -2
- data/lib/decidim/organization_settings.rb +5 -8
- data/lib/decidim/paddable.rb +1 -1
- data/lib/decidim/participable.rb +1 -1
- data/lib/decidim/participatory_space_manifest.rb +1 -1
- data/lib/decidim/resourceable.rb +1 -1
- data/lib/decidim/search_resource_fields_mapper.rb +2 -2
- data/lib/decidim/searchable.rb +3 -3
- data/lib/decidim/seeds.rb +62 -0
- data/lib/decidim/stats_registry.rb +2 -2
- data/lib/decidim/translatable_attributes.rb +3 -3
- data/lib/decidim/translatable_resource.rb +1 -1
- data/lib/decidim/view_hooks.rb +1 -1
- data/lib/decidim/view_model.rb +5 -1
- data/lib/decidim/webpacker/esbuild.config.js +14 -0
- data/lib/decidim/webpacker/shakapacker.yml +2 -2
- data/lib/decidim/webpacker/tsconfig.json +11 -0
- data/lib/decidim/webpacker/webpack/custom.js +13 -35
- data/lib/devise/models/decidim_newsletterable.rb +1 -1
- data/lib/tasks/decidim_download_your_data_tasks.rake +2 -2
- data/lib/tasks/decidim_locales_tasks.rake +1 -1
- data/lib/tasks/decidim_mailers_tasks.rake +2 -2
- data/lib/tasks/decidim_metrics_tasks.rake +6 -6
- data/lib/tasks/decidim_procfile.rake +9 -3
- data/lib/tasks/decidim_tasks.rake +5 -4
- data/lib/tasks/decidim_webpacker_tasks.rake +126 -117
- data/lib/tasks/upgrade/decidim_active_storage_migration_tasks.rake +80 -0
- data/lib/tasks/upgrade/decidim_content_blocks_tasks.rake +50 -0
- data/lib/tasks/upgrade/decidim_deduplicate_endorsements.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_categorization.rake +0 -100
- data/lib/tasks/upgrade/decidim_fix_nickname_uniqueness.rake +1 -1
- data/lib/tasks/upgrade/decidim_fix_short_url_resolver.rake +1 -1
- data/lib/tasks/upgrade/decidim_moderation_tasks.rake +1 -1
- data/lib/tasks/upgrade/decidim_user_moderation.rake +1 -1
- metadata +218 -79
- data/app/cells/decidim/content_blocks/cta/show.erb +0 -12
- data/app/cells/decidim/content_blocks/cta_cell.rb +0 -31
- data/app/cells/decidim/footer_pages/pages.erb +0 -3
- data/app/cells/decidim/footer_pages/topics.erb +0 -12
- data/app/cells/decidim/footer_pages_cell.rb +0 -68
- data/app/controllers/concerns/decidim/direct_upload.rb +0 -82
- data/app/packs/src/decidim/vendor/modernizr.js +0 -5
- data/app/queries/decidim/similar_emendations.rb +0 -56
- data/app/uploaders/decidim/cw/application_uploader.rb +0 -77
- data/app/uploaders/decidim/cw/attachment_uploader.rb +0 -56
- data/app/uploaders/decidim/cw/avatar_uploader.rb +0 -24
- data/app/uploaders/decidim/cw/banner_image_uploader.rb +0 -7
- data/app/uploaders/decidim/cw/download_your_data_uploader.rb +0 -15
- data/app/uploaders/decidim/cw/downloader.rb +0 -9
- data/app/uploaders/decidim/cw/hero_image_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/homepage_image_uploader.rb +0 -14
- data/app/uploaders/decidim/cw/image_uploader.rb +0 -78
- data/app/uploaders/decidim/cw/newsletter_template_image_uploader.rb +0 -38
- data/app/uploaders/decidim/cw/oauth_application_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_footer_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/official_image_header_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/open_data_uploader.rb +0 -23
- data/app/uploaders/decidim/cw/organization_favicon_uploader.rb +0 -18
- data/app/uploaders/decidim/cw/organization_logo_uploader.rb +0 -10
- data/app/uploaders/decidim/cw/record_image_uploader.rb +0 -15
- data/app/uploaders/decidim/downloader.rb +0 -9
- data/app/views/decidim/amendments/compare_draft.html.erb +0 -18
- data/app/views/layouts/decidim/_edit_link.html.erb +0 -0
- data/app/views/layouts/decidim/header/_main_links_mobile.html.erb +0 -36
- data/config/initializers/carrierwave.rb +0 -15
- data/lib/decidim/carrier_wave_migrator_service.rb +0 -287
- data/lib/decidim/seven_zip_wrapper.rb +0 -29
- data/lib/tasks/decidim_active_storage_migration_tasks.rake +0 -114
- data/lib/tasks/decidim_content_blocks_tasks.rake +0 -48
- data/lib/tasks/upgrade/decidim_attachments.rake +0 -14
- /data/app/views/layouts/decidim/header/{_menu_breadcrumb_main_dropdown.html.erb → _menu_breadcrumb_main_dropdown_desktop.html.erb} +0 -0
@@ -1,12 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
# the same group of examples where this is included. Otherwise you may end up
|
5
|
-
# in race conditions that cause these to fail as explained at:
|
6
|
-
# https://github.com/decidim/decidim/pull/6161
|
7
|
-
shared_examples "followable content for users" do
|
3
|
+
shared_examples "follows" do
|
8
4
|
before do
|
9
|
-
switch_to_host(organization.host)
|
10
5
|
login_as user, scope: :user
|
11
6
|
end
|
12
7
|
|
@@ -15,7 +10,7 @@ shared_examples "followable content for users" do
|
|
15
10
|
it "makes the user follow the followable" do
|
16
11
|
visit followable_path
|
17
12
|
expect do
|
18
|
-
|
13
|
+
click_on "Follow"
|
19
14
|
expect(page).to have_content "Stop following"
|
20
15
|
end.to change(Decidim::Follow, :count).by(1)
|
21
16
|
end
|
@@ -31,7 +26,7 @@ shared_examples "followable content for users" do
|
|
31
26
|
it "makes the user follow the followable" do
|
32
27
|
visit followable_path
|
33
28
|
expect do
|
34
|
-
|
29
|
+
click_on "Stop following"
|
35
30
|
expect(page).to have_content "Follow"
|
36
31
|
end.to change(Decidim::Follow, :count).by(-1)
|
37
32
|
end
|
@@ -39,9 +34,9 @@ shared_examples "followable content for users" do
|
|
39
34
|
end
|
40
35
|
end
|
41
36
|
|
42
|
-
shared_examples "
|
37
|
+
shared_examples "follows with a component" do
|
43
38
|
include_context "with a component"
|
44
|
-
include_examples "
|
39
|
+
include_examples "follows"
|
45
40
|
|
46
41
|
context "when the user is following the followable's participatory space" do
|
47
42
|
before do
|
@@ -52,7 +47,7 @@ shared_examples "followable content for users with a component" do
|
|
52
47
|
it "makes the user follow the followable" do
|
53
48
|
visit followable_path
|
54
49
|
expect do
|
55
|
-
|
50
|
+
click_on "Follow"
|
56
51
|
expect(page).to have_content "Stop following"
|
57
52
|
end.to change(Decidim::Follow, :count).by(1)
|
58
53
|
end
|
@@ -6,6 +6,7 @@ shared_examples_for "has attachment collections" do
|
|
6
6
|
context "when it has attachment collections" do
|
7
7
|
let(:attachment_collection) { create(:attachment_collection, collection_for:) }
|
8
8
|
let!(:document) { create(:attachment, :with_pdf, attached_to:, attachment_collection:) }
|
9
|
+
let!(:link) { create(:attachment, :with_link, attached_to:, attachment_collection:) }
|
9
10
|
let!(:other_document) { create(:attachment, :with_pdf, attached_to:, attachment_collection: nil) }
|
10
11
|
|
11
12
|
before do
|
@@ -19,7 +20,8 @@ shared_examples_for "has attachment collections" do
|
|
19
20
|
it "show their documents" do
|
20
21
|
within "[id*=documents-#{attachment_collection.id}]", visible: false do
|
21
22
|
expect(page).to have_content(:all, translated(document.title))
|
22
|
-
expect(page).
|
23
|
+
expect(page).to have_content(:all, translated(link.title))
|
24
|
+
expect(page).to have_no_content(:all, translated(other_document.title))
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
@@ -53,7 +55,7 @@ shared_examples_for "has attachment collections" do
|
|
53
55
|
|
54
56
|
it "is not present" do
|
55
57
|
expect(page).to have_content(translated(attachment_collection.name))
|
56
|
-
expect(page).
|
58
|
+
expect(page).to have_no_content(translated(empty_attachment_collection.name))
|
57
59
|
end
|
58
60
|
end
|
59
61
|
end
|
@@ -48,7 +48,7 @@ end
|
|
48
48
|
shared_examples_for "has attachments tabs" do
|
49
49
|
context "when it has attachments" do
|
50
50
|
let!(:document) { create(:attachment, :with_pdf, attached_to:) }
|
51
|
-
|
51
|
+
let!(:link) { create(:attachment, :with_link, attached_to:) }
|
52
52
|
let!(:image) { create(:attachment, attached_to:) }
|
53
53
|
|
54
54
|
before do
|
@@ -59,6 +59,7 @@ shared_examples_for "has attachments tabs" do
|
|
59
59
|
find("li [data-controls='panel-documents']").click
|
60
60
|
within "#panel-documents" do
|
61
61
|
expect(page).to have_content(translated(document.title))
|
62
|
+
expect(page).to have_content(translated(link.title))
|
62
63
|
end
|
63
64
|
|
64
65
|
find("li [data-controls='panel-images']").click
|
@@ -69,7 +70,7 @@ shared_examples_for "has attachments tabs" do
|
|
69
70
|
end
|
70
71
|
|
71
72
|
context "when are ordered by weight" do
|
72
|
-
let!(:last_document) { create(:attachment, :
|
73
|
+
let!(:last_document) { create(:attachment, :with_link, attached_to:, weight: 2) }
|
73
74
|
let!(:first_document) { create(:attachment, :with_pdf, attached_to:, weight: 1) }
|
74
75
|
let!(:last_image) { create(:attachment, attached_to:, weight: 2) }
|
75
76
|
let!(:first_image) { create(:attachment, attached_to:, weight: 1) }
|
@@ -13,20 +13,20 @@ shared_examples "shows contextual help" do
|
|
13
13
|
visit index_path
|
14
14
|
|
15
15
|
within "#floating-helper-tip" do
|
16
|
-
|
16
|
+
click_on
|
17
17
|
end
|
18
18
|
|
19
19
|
within "#floating-helper-block" do
|
20
20
|
expect(page).to have_content("Some relevant help")
|
21
|
-
|
21
|
+
click_on
|
22
22
|
end
|
23
23
|
|
24
24
|
visit current_path
|
25
25
|
|
26
|
-
expect(page).
|
26
|
+
expect(page).to have_no_content("Some relevant help")
|
27
27
|
|
28
28
|
within "#floating-helper-tip" do
|
29
|
-
|
29
|
+
click_on
|
30
30
|
end
|
31
31
|
|
32
32
|
within "#floating-helper-block" do
|
@@ -5,7 +5,7 @@ require "spec_helper"
|
|
5
5
|
shared_examples "email with logo" do
|
6
6
|
context "when organization has a logo" do
|
7
7
|
let(:organization_logo) { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
|
8
|
-
let(:organization) { create(:organization, name: "O'Higgins", logo: organization_logo) }
|
8
|
+
let(:organization) { create(:organization, name: { en: "O'Higgins" }, logo: organization_logo) }
|
9
9
|
let(:mail) { described_class.event_received(event, event_class_name, resource, user, :follower, extra) }
|
10
10
|
let(:logo_path) { Rails.application.routes.url_helpers.rails_representation_path(organization.logo.variant(resize_to_fit: [600, 160]), only_path: true) }
|
11
11
|
|
@@ -9,7 +9,7 @@ RSpec.shared_examples "manage component share tokens" do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
it "has a share button that opens the share url for the component" do
|
12
|
-
share_window = window_opened_by {
|
12
|
+
share_window = window_opened_by { click_on "Share", wait: 2 }
|
13
13
|
|
14
14
|
within_window share_window do
|
15
15
|
expect(current_url).to include(component.share_tokens.reload.last.url)
|
@@ -25,14 +25,14 @@ RSpec.shared_examples "manage component share tokens" do
|
|
25
25
|
before do
|
26
26
|
visit components_path
|
27
27
|
|
28
|
-
within
|
29
|
-
|
28
|
+
within "tr", text: component.name["en"] do
|
29
|
+
click_on "Configure"
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
it "displays all tokens" do
|
34
34
|
within ".share_tokens" do
|
35
|
-
expect(page).to
|
35
|
+
expect(page).to have_css("tbody tr", count: 3)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -48,7 +48,7 @@ RSpec.shared_examples "manage component share tokens" do
|
|
48
48
|
it "has a share link for each token" do
|
49
49
|
urls = share_tokens.map(&:url).map { |url| url.split("?").first }
|
50
50
|
within ".share_tokens tbody tr:first-child" do
|
51
|
-
share_window = window_opened_by {
|
51
|
+
share_window = window_opened_by { click_on "Share" }
|
52
52
|
|
53
53
|
within_window share_window do
|
54
54
|
expect(urls).to include(page.current_path)
|
@@ -58,11 +58,11 @@ RSpec.shared_examples "manage component share tokens" do
|
|
58
58
|
|
59
59
|
it "has a link to delete tokens" do
|
60
60
|
within ".share_tokens tbody tr:first-child" do
|
61
|
-
accept_confirm {
|
61
|
+
accept_confirm { click_on "Delete" }
|
62
62
|
end
|
63
63
|
|
64
64
|
expect(page).to have_admin_callout("successfully")
|
65
|
-
expect(page).to
|
65
|
+
expect(page).to have_css("tbody tr", count: 2)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
@@ -70,8 +70,8 @@ RSpec.shared_examples "manage component share tokens" do
|
|
70
70
|
before do
|
71
71
|
visit components_path
|
72
72
|
|
73
|
-
within
|
74
|
-
|
73
|
+
within "tr", text: component.name["en"] do
|
74
|
+
click_on "Configure"
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -115,7 +115,7 @@ shared_context "with frontend map elements" do
|
|
115
115
|
end
|
116
116
|
|
117
117
|
after do
|
118
|
-
expect(page).to
|
118
|
+
expect(page).to have_css("#ready_indicator", text: "Document ready")
|
119
119
|
|
120
120
|
expect_no_js_errors
|
121
121
|
|
@@ -148,10 +148,10 @@ shared_examples "a page with dynamic map" do
|
|
148
148
|
it_behaves_like "accessible page"
|
149
149
|
|
150
150
|
it "displays the maps" do
|
151
|
-
expect(page).to
|
152
|
-
expect(page).to
|
153
|
-
expect(page).to
|
154
|
-
expect(page).to
|
151
|
+
expect(page).to have_css("#map1", visible: :all)
|
152
|
+
expect(page).to have_css("#map1_inner", visible: :all)
|
153
|
+
expect(page).to have_css("#map2", visible: :all)
|
154
|
+
expect(page).to have_css("#map2_inner", visible: :all)
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -1,27 +1,27 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
shared_examples "a paginated resource" do
|
4
|
-
let(:collection_size) {
|
4
|
+
let(:collection_size) { 30 }
|
5
5
|
|
6
6
|
before do
|
7
7
|
visit_component
|
8
8
|
end
|
9
9
|
|
10
|
-
it "lists
|
11
|
-
expect(page).to have_css(resource_selector, count:
|
12
|
-
expect(page).to have_css("[data-pages] [data-page]", count:
|
10
|
+
it "lists 10 resources per page by default" do
|
11
|
+
expect(page).to have_css(resource_selector, count: 10)
|
12
|
+
expect(page).to have_css("[data-pages] [data-page]", count: 3)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "results per page can be changed from the selector" do
|
16
16
|
expect(page).to have_css("[data-pagination]")
|
17
17
|
|
18
18
|
within "[data-pagination]" do
|
19
|
-
page.find("summary", text: "
|
20
|
-
|
19
|
+
page.find("summary", text: "10").click
|
20
|
+
click_on "50"
|
21
21
|
end
|
22
22
|
|
23
23
|
sleep 2
|
24
24
|
expect(page).to have_css(resource_selector, count: collection_size)
|
25
|
-
expect(page).
|
25
|
+
expect(page).to have_no_css("[data-pagination]")
|
26
26
|
end
|
27
27
|
end
|
data/lib/decidim/core/test/shared_examples/participatory_space_dropdown_metadata_cell_examples.rb
CHANGED
@@ -38,7 +38,7 @@ shared_examples_for "participatory space dropdown metadata cell" do
|
|
38
38
|
|
39
39
|
context "when there are no activities" do
|
40
40
|
it "does not render an activities block" do
|
41
|
-
expect(subject).
|
41
|
+
expect(subject).to have_no_css("div.activity__container")
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
@@ -64,7 +64,7 @@ shared_examples_for "participatory space dropdown metadata cell" do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it "does not render an activities block" do
|
67
|
-
expect(subject).
|
67
|
+
expect(subject).to have_no_css("div.activity__container")
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -85,7 +85,7 @@ shared_examples_for "participatory space dropdown metadata cell hashtag" do
|
|
85
85
|
let(:hashtag) { nil }
|
86
86
|
|
87
87
|
it "does not render the hashtag symbol" do
|
88
|
-
expect(subject).
|
88
|
+
expect(subject).to have_no_content("#")
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -15,7 +15,7 @@ shared_examples_for "preview component with share_token" do
|
|
15
15
|
|
16
16
|
it "does not allow visiting component" do
|
17
17
|
expect(page).to have_content "You are not authorized"
|
18
|
-
expect(page).
|
18
|
+
expect(page).to have_no_current_path(main_component_path(component), ignore_query: true)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -31,7 +31,7 @@ shared_examples_for "preview component with share_token" do
|
|
31
31
|
|
32
32
|
context "when a valid share_token is provided" do
|
33
33
|
it "allows visiting component" do
|
34
|
-
expect(page).
|
34
|
+
expect(page).to have_no_content "You are not authorized"
|
35
35
|
expect(page).to have_current_path(main_component_path(component), ignore_query: true)
|
36
36
|
end
|
37
37
|
end
|
@@ -41,7 +41,7 @@ shared_examples_for "preview component with share_token" do
|
|
41
41
|
|
42
42
|
it "does not allow visiting component" do
|
43
43
|
expect(page).to have_content "You are not authorized"
|
44
|
-
expect(page).
|
44
|
+
expect(page).to have_no_current_path(main_component_path(component), ignore_query: true)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -4,12 +4,12 @@ shared_examples "manage processes announcements" do
|
|
4
4
|
let!(:participatory_process) { create(:participatory_process, :with_content_blocks, organization:, blocks_manifests: [:announcement]) }
|
5
5
|
|
6
6
|
it "can customize a general announcement for the process" do
|
7
|
-
within
|
8
|
-
|
7
|
+
within "tr", text: translated(participatory_process.title) do
|
8
|
+
click_on translated(participatory_process.title)
|
9
9
|
end
|
10
10
|
|
11
11
|
within_admin_sidebar_menu do
|
12
|
-
|
12
|
+
click_on "About this process"
|
13
13
|
end
|
14
14
|
|
15
15
|
fill_in_i18n_editor(
|
@@ -28,7 +28,7 @@ shared_examples "manage processes announcements" do
|
|
28
28
|
|
29
29
|
visit decidim_admin_participatory_processes.participatory_processes_path
|
30
30
|
|
31
|
-
new_window = window_opened_by { page.find("tr", text: translated(participatory_process.title)).
|
31
|
+
new_window = window_opened_by { page.find("tr", text: translated(participatory_process.title)).click_on("Preview") }
|
32
32
|
|
33
33
|
page.within_window(new_window) do
|
34
34
|
expect(page).to have_content("An important announcement")
|
@@ -15,7 +15,7 @@ shared_examples "logged in user reports content" do
|
|
15
15
|
expect(page).to have_css(".flag-modal", visible: :visible)
|
16
16
|
|
17
17
|
within ".flag-modal" do
|
18
|
-
|
18
|
+
click_on "Report"
|
19
19
|
end
|
20
20
|
|
21
21
|
expect(page).to have_content "report has been created"
|
@@ -50,7 +50,7 @@ shared_examples "higher user role hides" do
|
|
50
50
|
|
51
51
|
within ".flag-modal" do
|
52
52
|
find(:css, "input[name='report[hide]']").set(true)
|
53
|
-
|
53
|
+
click_on "Hide"
|
54
54
|
end
|
55
55
|
|
56
56
|
expect(reportable.reload).to be_hidden
|
@@ -72,7 +72,7 @@ shared_examples "higher user role does not have hide" do
|
|
72
72
|
expect(page).to have_css(".flag-modal", visible: :visible)
|
73
73
|
|
74
74
|
within ".flag-modal" do
|
75
|
-
expect(page).
|
75
|
+
expect(page).to have_no_field(name: "report[hide]")
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
@@ -83,9 +83,9 @@ shared_examples "reports" do
|
|
83
83
|
it "gives the option to sign in" do
|
84
84
|
visit reportable_path
|
85
85
|
|
86
|
-
expect(page).
|
86
|
+
expect(page).to have_no_css("html.is-disabled")
|
87
87
|
|
88
|
-
|
88
|
+
click_on "Report"
|
89
89
|
|
90
90
|
expect(page).to have_css("html.is-disabled")
|
91
91
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
shared_examples "having a rich text editor for field" do |selector, toolbar|
|
4
4
|
it "has a rich text editor" do
|
5
5
|
within selector do
|
6
|
-
expect(page).to
|
6
|
+
expect(page).to have_css("div.editor-container[data-toolbar='#{toolbar}']", visible: :all)
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
@@ -26,15 +26,15 @@ shared_examples "rendering safe content" do |css|
|
|
26
26
|
|
27
27
|
it "renders potentially safe HTML tags unescaped" do
|
28
28
|
within css do
|
29
|
-
expect(page).to
|
30
|
-
expect(page).to
|
31
|
-
expect(page).to
|
29
|
+
expect(page).to have_css("em", text: "em")
|
30
|
+
expect(page).to have_css("u", text: "u")
|
31
|
+
expect(page).to have_css("strong", text: "strong")
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
it "sanitizes potentially malicious HTML tags" do
|
36
36
|
within css do
|
37
|
-
expect(page).
|
37
|
+
expect(page).to have_no_css("script", visible: :all)
|
38
38
|
expect(page).to have_content("alert('SCRIPT')")
|
39
39
|
end
|
40
40
|
end
|
@@ -45,19 +45,19 @@ shared_examples "rendering unsafe content" do |css|
|
|
45
45
|
|
46
46
|
it "sanitizes potentially safe HTML tags" do
|
47
47
|
within css do
|
48
|
-
expect(page).
|
48
|
+
expect(page).to have_no_css("em")
|
49
49
|
expect(page).to have_content("em")
|
50
|
-
expect(page).
|
50
|
+
expect(page).to have_no_css("u")
|
51
51
|
expect(page).to have_content("u")
|
52
|
-
expect(page).
|
52
|
+
expect(page).to have_no_css("strong")
|
53
53
|
expect(page).to have_content("strong")
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
57
|
it "strips potentially malicious HTML tags" do
|
58
58
|
within css do
|
59
|
-
expect(page).
|
60
|
-
expect(page).
|
59
|
+
expect(page).to have_no_css("script", visible: :all)
|
60
|
+
expect(page).to have_no_content("alert('SCRIPT')")
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
@@ -125,7 +125,7 @@ shared_examples "global search of participatory spaces" do
|
|
125
125
|
attrs.delete("id")
|
126
126
|
attrs.delete("created_at")
|
127
127
|
attrs.delete("updated_at")
|
128
|
-
expect(attrs.delete("datetime").
|
128
|
+
expect(attrs.delete("datetime").to_fs(:short)).to eq(space.published_at.to_fs(:short))
|
129
129
|
expect(attrs).to eq(expected_searchable_resource_attrs(space, locale))
|
130
130
|
end
|
131
131
|
|
@@ -21,7 +21,7 @@ shared_examples "searchable results" do
|
|
21
21
|
|
22
22
|
expect(page).to have_current_path decidim.search_path, ignore_query: true
|
23
23
|
expect(page).to have_content(%(Results for the search: "#{term}"))
|
24
|
-
expect(page).to
|
24
|
+
expect(page).to have_css(".filter-search.filter-container")
|
25
25
|
expect(page.find("#search-count h1").text.to_i).to be_positive
|
26
26
|
end
|
27
27
|
|
@@ -48,7 +48,7 @@ shared_examples "searchable results" do
|
|
48
48
|
|
49
49
|
expect(page).to have_current_path decidim.search_path, ignore_query: true
|
50
50
|
expect(page).to have_content(%(Results for the search: "#{term}"))
|
51
|
-
expect(page).to
|
51
|
+
expect(page).to have_css(".filter-search.filter-container")
|
52
52
|
expect(page.find("#search-count h1").text.to_i).to be_positive
|
53
53
|
|
54
54
|
searchables.each do |searchable|
|
@@ -67,13 +67,13 @@ shared_examples "searchable results" do
|
|
67
67
|
|
68
68
|
expect(page).to have_current_path decidim.search_path, ignore_query: true
|
69
69
|
expect(page).to have_content(%(Results for the search: "#{term}"))
|
70
|
-
expect(page).to
|
70
|
+
expect(page).to have_css(".filter-search.filter-container")
|
71
71
|
expect(page.find("#search-count h1").text.to_i).not_to be_positive
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
75
|
context "when participatory space is not visible" do
|
76
|
-
shared_examples_for "no
|
76
|
+
shared_examples_for "no searches found" do
|
77
77
|
it "not contains these searchables" do
|
78
78
|
expect(searchables).not_to be_empty
|
79
79
|
expect(term).not_to be_empty
|
@@ -83,7 +83,7 @@ shared_examples "searchable results" do
|
|
83
83
|
|
84
84
|
expect(page).to have_current_path decidim.search_path, ignore_query: true
|
85
85
|
expect(page).to have_content(%(Results for the search: "#{term}"))
|
86
|
-
expect(page).to
|
86
|
+
expect(page).to have_css(".filter-search.filter-container")
|
87
87
|
expect(page.find("#search-count h1").text.to_i).not_to be_positive
|
88
88
|
end
|
89
89
|
|
@@ -95,7 +95,7 @@ shared_examples "searchable results" do
|
|
95
95
|
expect(page.find("#search-count h1").text.to_i).not_to be_positive
|
96
96
|
|
97
97
|
within "#results" do
|
98
|
-
expect(page).
|
98
|
+
expect(page).to have_no_content(hashtag)
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
@@ -106,7 +106,7 @@ shared_examples "searchable results" do
|
|
106
106
|
perform_enqueued_jobs { participatory_space.update!(published_at: nil) }
|
107
107
|
end
|
108
108
|
|
109
|
-
it_behaves_like "no
|
109
|
+
it_behaves_like "no searches found"
|
110
110
|
end
|
111
111
|
|
112
112
|
context "when participatory space is private" do
|
@@ -114,7 +114,7 @@ shared_examples "searchable results" do
|
|
114
114
|
perform_enqueued_jobs { participatory_space.update!(private_space: true) }
|
115
115
|
end
|
116
116
|
|
117
|
-
it_behaves_like "no
|
117
|
+
it_behaves_like "no searches found"
|
118
118
|
end
|
119
119
|
end
|
120
120
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
shared_examples "share link" do
|
4
4
|
it "allows copying the share link from the share modal" do
|
5
|
-
|
5
|
+
click_on("Share")
|
6
6
|
|
7
7
|
# This overrides document.execCommand in order to ensure it was called.
|
8
8
|
page.execute_script(
|
@@ -29,7 +29,7 @@ shared_examples "share link" do
|
|
29
29
|
expect(page).to have_content("Share")
|
30
30
|
expect(page).to have_content("Copy")
|
31
31
|
|
32
|
-
input =
|
32
|
+
input = find_by_id("urlShareLink")
|
33
33
|
|
34
34
|
find("[data-clipboard-copy]").click
|
35
35
|
|
@@ -29,7 +29,7 @@ shared_context "when a simple event" do
|
|
29
29
|
let(:resource_path) { resource_locator(resource).path }
|
30
30
|
let(:resource_url) { resource_locator(resource).url }
|
31
31
|
let(:resource_title) { decidim_sanitize_translated(resource.title) }
|
32
|
-
# to be used when resource is a component resource, not a participatory space, in which case should be
|
32
|
+
# to be used when resource is a component resource, not a participatory space, in which case should be overridden
|
33
33
|
let(:participatory_space) { resource.participatory_space }
|
34
34
|
let(:participatory_space_title) { decidim_sanitize_translated(participatory_space.title) }
|
35
35
|
let(:participatory_space_path) { Decidim::ResourceLocatorPresenter.new(participatory_space).path }
|
@@ -6,7 +6,7 @@ shared_examples_for "space cell changes button text CTA" do
|
|
6
6
|
describe "within the card footer" do
|
7
7
|
context "when it has no components" do
|
8
8
|
it "renders 'More info' in the CTA button text" do
|
9
|
-
expect(subject).to
|
9
|
+
expect(subject).to have_css(".card__footer--spaces .card__button", text: "More info")
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -15,7 +15,7 @@ shared_examples_for "space cell changes button text CTA" do
|
|
15
15
|
let!(:component) { create(:component, :unpublished, manifest_name: "dummy", participatory_space: model) }
|
16
16
|
|
17
17
|
it "renders 'More info' in the CTA button text" do
|
18
|
-
expect(subject).to
|
18
|
+
expect(subject).to have_css(".card__footer--spaces .card__button", text: "More info")
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -23,7 +23,7 @@ shared_examples_for "space cell changes button text CTA" do
|
|
23
23
|
let!(:component) { create(:component, :published, manifest_name: "dummy", participatory_space: model) }
|
24
24
|
|
25
25
|
it "renders 'Take part' in the CTA button text" do
|
26
|
-
expect(subject).to
|
26
|
+
expect(subject).to have_css(".card__footer--spaces .card__button", text: "Take part")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|