Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

A bit more Rubocop fixing

Klaus Zandersba1fb3829c13
diff --git a/app/components/shares/modal_body_component.rb b/app/components/shares/modal_body_component.rb
index 741c2fd5eba..c02507607d5 100644
--- a/app/components/shares/modal_body_component.rb
+++ b/app/components/shares/modal_body_component.rb
@@ -71,7 +71,7 @@ module Shares
"op-share-dialog-active-shares"
end
- def blankslate_config
+ def blankslate_config # rubocop:disable Metrics/AbcSize
@blankslate_config ||= {}.tap do |config|
if params[:filters].blank?
config[:icon] = :people
diff --git a/app/components/shares/modal_upsale_component.rb b/app/components/shares/modal_upsale_component.rb
index 6935205290a..933a8f06161 100644
--- a/app/components/shares/modal_upsale_component.rb
+++ b/app/components/shares/modal_upsale_component.rb
@@ -27,7 +27,7 @@
#++
module Shares
- class ModalUpsaleComponent < ApplicationComponent
+ class ModalUpsaleComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent
include ApplicationHelper
include OpTurbo::Streamable
include OpPrimer::ComponentHelpers
diff --git a/spec/support/components/work_packages/share_modal.rb b/spec/support/components/work_packages/share_modal.rb
index ef9b4f67fdb..ab5be93450f 100644
--- a/spec/support/components/work_packages/share_modal.rb
+++ b/spec/support/components/work_packages/share_modal.rb
@@ -213,7 +213,7 @@ module Components
select_invite_role(role_name)
within_modal do
- click_button "Share"
+ click_on "Share"
end
end
@@ -245,7 +245,7 @@ module Components
def select_invite_role(role_name)
within modal_element.find('[data-test-selector="op-share-dialog-invite-role"]') do
# Open the ActionMenu
- click_button "View"
+ click_on "View"
find(".ActionListContent", text: role_name).click
end
@@ -256,7 +256,7 @@ module Components
find('[data-test-selector="op-share-dialog-update-role"]').click
within ".ActionListWrap" do
- click_button role_name
+ click_on role_name
end
end
end
@@ -285,7 +285,7 @@ module Components
def click_share
within_modal do
- click_button "Share"
+ click_on "Share"
end
end
@@ -330,7 +330,7 @@ module Components
def resend_invite(user)
within user_row(user) do
- click_button I18n.t("sharing.user_details.resend_invite")
+ click_on I18n.t("sharing.user_details.resend_invite")
end
end