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

Fix expected string in case unlocalized

Oliver Güntherd9b916293a39
diff --git a/spec/features/projects/projects_custom_fields_spec.rb b/spec/features/projects/projects_custom_fields_spec.rb
index 146bf8be6a8..eb8d0ef4873 100644
--- a/spec/features/projects/projects_custom_fields_spec.rb
+++ b/spec/features/projects/projects_custom_fields_spec.rb
@@ -169,12 +169,12 @@ describe 'Projects custom fields', type: :feature, js: true do
visit new_project_path
name_field.set_value 'My project name'
- find('.op-fieldset--toggle', text: 'ERWEITERTE EINSTELLUNGEN').click
+ find('.op-fieldset--toggle', text: I18n.t('js.forms.advanced_settings').upcase).click
float_field.set_value '10000,55'
# Save project settings
- click_on 'Speichern'
+ click_on I18n.t('js.button_save')
expect(page).to have_current_path /\/projects\/my-project-name\/?/
project = Project.find_by(name: 'My project name')
diff --git a/spec/features/work_packages/display_fields/spent_time_display_spec.rb b/spec/features/work_packages/display_fields/spent_time_display_spec.rb
index 91806efd203..477483ce8e4 100644
--- a/spec/features/work_packages/display_fields/spent_time_display_spec.rb
+++ b/spec/features/work_packages/display_fields/spent_time_display_spec.rb
@@ -56,7 +56,7 @@ describe 'Logging time within the work package view', type: :feature, js: true d
# a click on save creates a time entry
time_logging_modal.perform_action I18n.t('js.label_create')
- wp_page.expect_and_dismiss_toaster message: I18n.t(:notice_successful_create)
+ wp_page.expect_and_dismiss_toaster message: I18n.t('js.notice_successful_create')
end
context 'as an admin' do
diff --git a/spec/support/pages/reminders/settings.rb b/spec/support/pages/reminders/settings.rb
index 01f2da66047..23c251f1649 100644
--- a/spec/support/pages/reminders/settings.rb
+++ b/spec/support/pages/reminders/settings.rb
@@ -138,7 +138,7 @@ module Pages
end
def save
- click_button I18n.t(:button_save)
+ click_button I18n.t('js.button_save')
end
end
end