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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use ruby snake_case instead of camelCase
Henriette Dinger0286f0979fc8
diff --git a/spec/features/work_packages/spent_time_display_spec.rb b/spec/features/work_packages/spent_time_display_spec.rbindex 12f27ae5f01..ae676ffb778 100644--- a/spec/features/work_packages/spent_time_display_spec.rb+++ b/spec/features/work_packages/spent_time_display_spec.rb@@ -67,12 +67,12 @@ describe 'Logging time within the work package view', type: :feature, js: true dlogin_as(admin)wp_page.visit!loading_indicator_saveguard- spent_time_field.timeLogIconVisible true+ spent_time_field.time_log_icon_visible trueendit 'shows a logging button within the display field and can log time via a modal' do# click on button opens modal- spent_time_field.openTimeLogModal+ spent_time_field.open_time_log_modallog_time_via_modalend@@ -94,7 +94,7 @@ describe 'Logging time within the work package view', type: :feature, js: true dendit 'shows no logging button within the display field' do- spent_time_field.timeLogIconVisible false+ spent_time_field.time_log_icon_visible falsespent_time_field.expect_display_value '-'endenddiff --git a/spec/support/edit_fields/spent_time_edit_field.rb b/spec/support/edit_fields/spent_time_edit_field.rbindex 7d4787a552e..e9328753444 100644--- a/spec/support/edit_fields/spent_time_edit_field.rb+++ b/spec/support/edit_fields/spent_time_edit_field.rb@@ -1,7 +1,7 @@require_relative './edit_field'class SpentTimeEditField < EditField- def timeLogIconVisible(visible)+ def time_log_icon_visible(visible)if visibleexpect(page).to have_selector("#{@selector} #{display_selector} #{icon}")else@@ -9,7 +9,7 @@ class SpentTimeEditField < EditFieldendend- def openTimeLogModal+ def open_time_log_modalpage.find("#{@selector} #{display_selector} #{icon}").clickend