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

Correct i18n

Klaus Zandersc4b36d0189d5
diff --git a/spec/features/work_packages/share/filter_spec.rb b/spec/features/work_packages/share/filter_spec.rb
index 993db90e1c3..741725934ee 100644
--- a/spec/features/work_packages/share/filter_spec.rb
+++ b/spec/features/work_packages/share/filter_spec.rb
@@ -147,7 +147,7 @@ RSpec.describe "Work package sharing",
share_modal.expect_shared_count_of(6)
# Filter for: all principals with Edit permission
- share_modal.filter("role", I18n.t("sharing.permissions.edit"))
+ share_modal.filter("role", I18n.t("work_package.permissions.edit"))
share_modal.expect_shared_count_of(3)
share_modal.expect_shared_with(inherited_project_user, "Edit")
@@ -158,7 +158,7 @@ RSpec.describe "Work package sharing",
share_modal.expect_not_shared_with(shared_non_project_group)
# Filter for: all principals with View permission
- share_modal.filter("role", I18n.t("sharing.permissions.view"))
+ share_modal.filter("role", I18n.t("work_package.permissions.view"))
share_modal.expect_shared_count_of(2)
share_modal.expect_shared_with(project_user, "View")
@@ -169,7 +169,7 @@ RSpec.describe "Work package sharing",
share_modal.expect_not_shared_with(shared_project_group)
# Filter for: all principals with Comment permission
- share_modal.filter("role", I18n.t("sharing.permissions.comment"))
+ share_modal.filter("role", I18n.t("work_package.permissions.comment"))
share_modal.expect_shared_count_of(1)
share_modal.expect_shared_with(project_user2, "Comment")
@@ -180,7 +180,7 @@ RSpec.describe "Work package sharing",
share_modal.expect_not_shared_with(shared_non_project_group)
# Clicking again on the filter will reset it
- share_modal.filter("role", I18n.t("sharing.permissions.comment"))
+ share_modal.filter("role", I18n.t("work_package.permissions.comment"))
share_modal.expect_shared_count_of(6)
share_modal.expect_shared_with(project_user, "View")
@@ -198,7 +198,7 @@ RSpec.describe "Work package sharing",
# Filter for: all principals with View permission
# role: view
# type: none
- share_modal.filter("role", I18n.t("sharing.permissions.view"))
+ share_modal.filter("role", I18n.t("work_package.permissions.view"))
share_modal.expect_shared_count_of(2)
share_modal.expect_shared_with(project_user, "View")
@@ -237,7 +237,7 @@ RSpec.describe "Work package sharing",
# Reset role filter
# role: none
# type: non-project members (groups only)
- share_modal.filter("role", I18n.t("sharing.permissions.view"))
+ share_modal.filter("role", I18n.t("work_package.permissions.view"))
share_modal.expect_shared_count_of(1)
share_modal.expect_shared_with(shared_non_project_group, "View")
@@ -265,7 +265,7 @@ RSpec.describe "Work package sharing",
it 'does not check the "toggle all" checkbox' do
share_modal.expect_open
share_modal.filter("type", I18n.t("sharing.filter.not_project_member"))
- share_modal.filter("role", I18n.t("sharing.permissions.view"))
+ share_modal.filter("role", I18n.t("work_package.permissions.view"))
share_modal.expect_empty_search_blankslate
share_modal.expect_shared_count_of(0)
diff --git a/spec/support/components/work_packages/share_modal.rb b/spec/support/components/work_packages/share_modal.rb
index 023e237eca7..f67d395db94 100644
--- a/spec/support/components/work_packages/share_modal.rb
+++ b/spec/support/components/work_packages/share_modal.rb
@@ -324,7 +324,7 @@ module Components
def expect_no_invite_option
within_modal do
expect(page)
- .to have_text(I18n.t("sharing.permissions.denied"))
+ .to have_text(I18n.t("work_package.permissions.denied"))
end
end