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 a float value for time entry hours in the specs
as-op40ad68a37073
diff --git a/modules/reporting/spec/features/export_cost_report_spec.rb b/modules/reporting/spec/features/export_cost_report_spec.rbindex 99c2b943290..a687fdd7cc4 100644--- a/modules/reporting/spec/features/export_cost_report_spec.rb+++ b/modules/reporting/spec/features/export_cost_report_spec.rb@@ -44,7 +44,7 @@ RSpec.describe "Cost reports XLS export", :js, with_flag: { track_start_and_end_create(:time_entry, user:, work_package:, project:,start_time: 1 * 60,spent_on: 2.days.ago,- hours: 1.0,+ hours: 1.95,time_zone: "UTC")endshared_let(:time_entry_long) do@@ -120,7 +120,7 @@ RSpec.describe "Cost reports XLS export", :js, with_flag: { track_start_and_end_title, _, time_entry_row, time_entry_long_row = subject.second.rowsexpect_sheet_title titleif allow_show_start_and_end_times- expect_time_entry time_entry_row, time_entry, "01:00 AM", "02:00 AM"+ expect_time_entry time_entry_row, time_entry, "01:00 AM", "02:57 AM"expect_time_entry time_entry_long_row, time_entry_long, "01:00 AM","#{(time_entry_long.spent_on + 1.day).iso8601} 05:00 AM"elsediff --git a/modules/reporting/spec/features/time_entries_spec.rb b/modules/reporting/spec/features/time_entries_spec.rbindex c919ac1a0b3..d7867e33d44 100644--- a/modules/reporting/spec/features/time_entries_spec.rb+++ b/modules/reporting/spec/features/time_entries_spec.rb@@ -13,7 +13,7 @@ RSpec.describe "Cost report showing time entries with start & end times", :js,create :time_entry, user:, work_package:, project:,start_time: 1 * 60,spent_on: 1.day.ago,- hours: 1.0,+ hours: 1.25,time_zone: "UTC"endshared_let(:time_entry_long) do@@ -37,8 +37,8 @@ RSpec.describe "Cost report showing time entries with start & end times", :js,table.expect_sort_header_column("TIME", present: true)table.rows_count 2- table.expect_value("1.00 hours", 1)- table.expect_cell_text("01:00 AM - 02:00 AM", 1, 2)+ table.expect_value("1.25 hours", 1)+ table.expect_cell_text("01:00 AM - 02:15 AM", 1, 2)table.expect_value("28.00 hours", 2)table.expect_cell_text("01:00 AM - 05:00 AM (+1d)", 2, 2)