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 button translation in date_edit_field.rb

Dombi Attila8781825d048e
diff --git a/spec/support/edit_fields/date_edit_field.rb b/spec/support/edit_fields/date_edit_field.rb
index 23eb391cd10..e187c10469d 100644
--- a/spec/support/edit_fields/date_edit_field.rb
+++ b/spec/support/edit_fields/date_edit_field.rb
@@ -162,11 +162,11 @@ class DateEditField < EditField
end
def submit_by_click
- scroll_to_and_click action_button('Save')
+ scroll_to_and_click action_button(I18n.t(:button_save))
end
def cancel_by_click
- scroll_to_and_click action_button('Cancel')
+ scroll_to_and_click action_button(I18n.t(:button_cancel))
end
def action_button(text)