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
Adjust specs to new duration formats
Aaron Contreras67b52fdcc1fa
diff --git a/modules/costs/spec/features/time_entries_spec.rb b/modules/costs/spec/features/time_entries_spec.rbindex 3d6002cc368..eb7c5c03a42 100644--- a/modules/costs/spec/features/time_entries_spec.rb+++ b/modules/costs/spec/features/time_entries_spec.rb@@ -54,7 +54,7 @@ RSpec.describe "Work Package table cost entries", :js dolet(:wp_table) { Pages::WorkPackagesTable.new(project) }let(:query) do- query = build(:query, user:, project:)+ query = build(:query, user:, project:)query.column_names = %w(id subject spent_hours)query.save!@@ -73,8 +73,8 @@ RSpec.describe "Work Package table cost entries", :js doparent_row = wp_table.row(parent)wp_row = wp_table.row(work_package)- expect(parent_row).to have_css(".inline-edit--container.spentTime", text: "12.5 h")- expect(wp_row).to have_css(".inline-edit--container.spentTime", text: "2.5 h")+ expect(parent_row).to have_css(".inline-edit--container.spentTime", text: "12h 30m")+ expect(wp_row).to have_css(".inline-edit--container.spentTime", text: "2h 30m")endit "creates an activity" dodiff --git a/modules/costs/spec/features/view_own_rates_spec.rb b/modules/costs/spec/features/view_own_rates_spec.rbindex ae9d5b4b798..34c5a072d34 100644--- a/modules/costs/spec/features/view_own_rates_spec.rb+++ b/modules/costs/spec/features/view_own_rates_spec.rb@@ -109,7 +109,7 @@ RSpec.describe "Only see your own rates", :js doit "only displays own entries and rates" do# All the values do not include the entries made by the other user- wp_page.expect_attributes spent_time: "1 h",+ wp_page.expect_attributes spent_time: "1h",costs_by_type: "2 Translations",overall_costs: "24.00 EUR",labor_costs: "10.00 EUR",diff --git a/spec/features/activities/work_package_activity_spec.rb b/spec/features/activities/work_package_activity_spec.rbindex 7604f302926..fd72f6f943b 100644--- a/spec/features/activities/work_package_activity_spec.rb+++ b/spec/features/activities/work_package_activity_spec.rb@@ -58,13 +58,13 @@ RSpec.describe "Work package activity", :js, :with_cuprite dowp_page.expect_and_dismiss_toaster(message: "Successful update.")end- it "displays changed attributes in the activity tab" do+ it "displays changed attributes in the activity tab", :aggregate_failures dowithin("activity-entry", text: admin.name) doexpect(page).to have_list_item(text: "% Complete set to 50%")- expect(page).to have_list_item(text: "Work set to 10.00")- expect(page).to have_list_item(text: "Remaining work set to 5.00")- expect(page).to have_list_item(text: "Total work set to 20.00")- expect(page).to have_list_item(text: "Total remaining work set to 8.00")+ expect(page).to have_list_item(text: "Work set to 10h")+ expect(page).to have_list_item(text: "Remaining work set to 5h")+ expect(page).to have_list_item(text: "Total work set to 20h")+ expect(page).to have_list_item(text: "Total remaining work set to 8h")expect(page).to have_list_item(text: "Total % complete set to 60%")endenddiff --git a/spec/features/types/form_configuration_spec.rb b/spec/features/types/form_configuration_spec.rbindex 2b8c93a0a32..fd4751c2824 100644--- a/spec/features/types/form_configuration_spec.rb+++ b/spec/features/types/form_configuration_spec.rb@@ -227,7 +227,7 @@ RSpec.describe "form configuration", :js dowp_page.expect_group("Estimates and progress") dowp_page.expect_attributes estimated_time: "-"- wp_page.expect_attributes spent_time: "0 h"+ wp_page.expect_attributes spent_time: "0h"end# New work package has the same configurationdiff --git a/spec/features/work_packages/display_fields/spent_time_display_spec.rb b/spec/features/work_packages/display_fields/spent_time_display_spec.rbindex ed7da8592b3..e5db5620d11 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@@ -85,7 +85,7 @@ RSpec.describe "Logging time within the work package view", :js doend.to change(TimeEntry, :count).by(1)# the value is updated automatically- spent_time_field.expect_display_value "1 h"+ spent_time_field.expect_display_value "1h"TimeEntry.last.tap do |te|expect(te.work_package).to eq(work_package)@@ -112,7 +112,7 @@ RSpec.describe "Logging time within the work package view", :js dolog_time_via_modal log_for_user: other_user# the value is updated automatically- spent_time_field.expect_display_value "1 h"+ spent_time_field.expect_display_value "1h"time_entry = TimeEntry.lastexpect(time_entry.user).to eq other_user@@ -128,7 +128,7 @@ RSpec.describe "Logging time within the work package view", :js dolog_time_via_modal# the value is updated automatically- spent_time_field.expect_display_value "1 h"+ spent_time_field.expect_display_value "1h"endcontext "with a user with non-one unit numbers", with_settings: { available_languages: %w[en ja] } do@@ -145,7 +145,7 @@ RSpec.describe "Logging time within the work package view", :js dolog_time_via_modal# the value is updated automatically- spent_time_field.expect_display_value "1 h"+ spent_time_field.expect_display_value "1h"endendend@@ -164,7 +164,7 @@ RSpec.describe "Logging time within the work package view", :js doit "shows no logging button within the display field" dospent_time_field.time_log_icon_visible false- spent_time_field.expect_display_value "0 h"+ spent_time_field.expect_display_value "0h"endend@@ -188,7 +188,7 @@ RSpec.describe "Logging time within the work package view", :js dolog_time_via_modal user_field_visible: false# the value is updated automatically- spent_time_field.expect_display_value "1 h"+ spent_time_field.expect_display_value "1h"endend@@ -213,8 +213,8 @@ RSpec.describe "Logging time within the work package view", :js dolog_time_via_modal- expect(page).to have_css("tr:nth-of-type(1) .wp-table--cell-td.spentTime", text: "1 h")- expect(page).to have_css("tr:nth-of-type(2) .wp-table--cell-td.spentTime", text: "0 h")+ expect(page).to have_css("tr:nth-of-type(1) .wp-table--cell-td.spentTime", text: "1h")+ expect(page).to have_css("tr:nth-of-type(2) .wp-table--cell-td.spentTime", text: "0h")endendenddiff --git a/spec/features/work_packages/display_fields/work_display_spec.rb b/spec/features/work_packages/display_fields/work_display_spec.rbindex 2770e732fb3..7bbd7a756e4 100644--- a/spec/features/work_packages/display_fields/work_display_spec.rb+++ b/spec/features/work_packages/display_fields/work_display_spec.rb@@ -91,7 +91,7 @@ RSpec.describe "Work display", :js dochild | 3h |TABLE- include_examples "work display", expected_text: "1 h·Σ 4 h"+ include_examples "work display", expected_text: "1h·Σ 4h"endcontext "with just work" do@@ -101,7 +101,7 @@ RSpec.describe "Work display", :js dochild | 0h |TABLE- include_examples "work display", expected_text: "1 h"+ include_examples "work display", expected_text: "1h"endcontext "with just total work with (parent work 0 h)" do@@ -111,7 +111,7 @@ RSpec.describe "Work display", :js dochild | 3h |TABLE- include_examples "work display", expected_text: "0 h·Σ 3 h"+ include_examples "work display", expected_text: "0h·Σ 3h"endcontext "with just total work (parent work unset)" do@@ -121,7 +121,7 @@ RSpec.describe "Work display", :js dochild | 3h |TABLE- include_examples "work display", expected_text: "-·Σ 3 h"+ include_examples "work display", expected_text: "-·Σ 3h"endcontext "with neither work nor total work (both 0 h)" do@@ -131,7 +131,7 @@ RSpec.describe "Work display", :js dochild | 0h |TABLE- include_examples "work display", expected_text: "0 h"+ include_examples "work display", expected_text: "0h"endcontext "with just total work being 0h" do@@ -141,7 +141,7 @@ RSpec.describe "Work display", :js dochild | 0h |TABLE- include_examples "work display", expected_text: "-·Σ 0 h"+ include_examples "work display", expected_text: "-·Σ 0h"endcontext "with neither work nor total work (both unset)" do@@ -172,11 +172,11 @@ RSpec.describe "Work display", :js dowp_table.visit_query query# parent- expect(page).to have_content("5 h·Σ 20 h")- expect(page).to have_link("Σ 20 h")+ expect(page).to have_content("5h·Σ 20h")+ expect(page).to have_link("Σ 20h")# child 2- expect(page).to have_content("3 h·Σ 15 h")- expect(page).to have_link("Σ 15 h")+ expect(page).to have_content("3h·Σ 15h")+ expect(page).to have_link("Σ 15h")endcontext "when clicking the link of a top parent" do@@ -185,7 +185,7 @@ RSpec.describe "Work display", :js doendit "shows a work package table with a parent filter to list the direct children" do- click_on("Σ 20 h")+ click_on("Σ 20h")wp_table.expect_work_package_count(4)wp_table.expect_work_package_listed(parent, child1, child2, child3)@@ -202,8 +202,8 @@ RSpec.describe "Work display", :js doendit "shows also all ancestors in the work package table" do- expect(page).to have_content("Work\n3 h·Σ 15 h")- click_on("Σ 15 h")+ expect(page).to have_content("Work\n3h·Σ 15h")+ click_on("Σ 15h")wp_table.expect_work_package_count(3)wp_table.expect_work_package_listed(parent, child2, grand_child21)diff --git a/spec/features/work_packages/edit_work_package_spec.rb b/spec/features/work_packages/edit_work_package_spec.rbindex 8e38c724787..e7308a5f04b 100644--- a/spec/features/work_packages/edit_work_package_spec.rb+++ b/spec/features/work_packages/edit_work_package_spec.rb@@ -143,8 +143,8 @@ RSpec.describe "edit work package", :js doresponsible: manager.name,assignee: manager.name,combinedDate: "03/04/2013 - 03/20/2013",- estimatedTime: "10 h",- remainingTime: "7 h",+ estimatedTime: "10h",+ remainingTime: "7h",percentageDone: "30%",subject: "a new subject",description: "a new description",diff --git a/spec/features/work_packages/index_sums_spec.rb b/spec/features/work_packages/index_sums_spec.rbindex 5c894d85da3..f94ea54f76c 100644--- a/spec/features/work_packages/index_sums_spec.rb+++ b/spec/features/work_packages/index_sums_spec.rb@@ -144,14 +144,16 @@ RSpec.describe "Work package index sums", :js dowp_table.expect_work_package_listed work_package1, work_package2# Expect the total sums row- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "25 h")- expect(row).to have_css(".remainingTime", text: "12.5 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")- expect(row).to have_css(".laborCosts", text: "15.00 EUR")- expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "1d 1h")+ expect(row).to have_css(".remainingTime", text: "12h 30m")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")+ expect(row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ endend# Update the sum@@ -160,14 +162,16 @@ RSpec.describe "Work package index sums", :js dowp_table.edit_field(work_package1, :remainingTime).update "12"- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "35 h")- expect(row).to have_css(".remainingTime", text: "19.5 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")- expect(row).to have_css(".laborCosts", text: "15.00 EUR")- expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "1d 11h")+ expect(row).to have_css(".remainingTime", text: "19h 30m")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")+ expect(row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ endend# Enable groups@@ -179,32 +183,38 @@ RSpec.describe "Work package index sums", :js dofirst_sum_row, second_sum_row = *find_all(:row, "Sum")# First status row- expect(first_sum_row).to have_css(".estimatedTime", text: "20 h")- expect(first_sum_row).to have_css(".remainingTime", text: "12 h")- expect(first_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "5")- expect(first_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "5.5")- expect(first_sum_row).to have_css(".laborCosts", text: "15.00 EUR")- expect(first_sum_row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(first_sum_row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ expect(first_sum_row).to have_css(".estimatedTime", text: "20h")+ expect(first_sum_row).to have_css(".remainingTime", text: "12h")+ expect(first_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "5")+ expect(first_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "5.5")+ expect(first_sum_row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(first_sum_row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(first_sum_row).to have_css(".overallCosts", text: "22.50 EUR")+ end# Second status row- expect(second_sum_row).to have_css(".estimatedTime", text: "15 h")- expect(second_sum_row).to have_css(".remainingTime", text: "7.5 h")- expect(second_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "7")- expect(second_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "7.7")- expect(second_sum_row).to have_css(".laborCosts", text: "", exact_text: true)- expect(second_sum_row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs- expect(second_sum_row).to have_css(".overallCosts", text: "", exact_text: true)+ aggregate_failures do+ expect(second_sum_row).to have_css(".estimatedTime", text: "15h")+ expect(second_sum_row).to have_css(".remainingTime", text: "7h 30m")+ expect(second_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "7")+ expect(second_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "7.7")+ expect(second_sum_row).to have_css(".laborCosts", text: "", exact_text: true)+ expect(second_sum_row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs+ expect(second_sum_row).to have_css(".overallCosts", text: "", exact_text: true)+ end# Total sums row is unchanged- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "35 h")- expect(row).to have_css(".remainingTime", text: "19.5 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")- expect(row).to have_css(".laborCosts", text: "15.00 EUR")- expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "1d 11h")+ expect(row).to have_css(".remainingTime", text: "19h 30m")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")+ expect(row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ endend# Collapsing groups will also hide the sums row@@ -270,14 +280,16 @@ RSpec.describe "Work package index sums", :js dowp_table.expect_work_package_listed work_package1, work_package2, work_package3, work_package4# Expect the total sums row without filtering- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "50 h")- expect(row).to have_css(".remainingTime", text: "25 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "24")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "26.4")- expect(row).to have_css(".laborCosts", text: "40.00 EUR")- expect(row).to have_css(".materialCosts", text: "18.00 EUR") # Unit costs- expect(row).to have_css(".overallCosts", text: "58.00 EUR")+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "2d 2h")+ expect(row).to have_css(".remainingTime", text: "1d 1h")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "24")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "26.4")+ expect(row).to have_css(".laborCosts", text: "40.00 EUR")+ expect(row).to have_css(".materialCosts", text: "18.00 EUR") # Unit costs+ expect(row).to have_css(".overallCosts", text: "58.00 EUR")+ endend# Filter@@ -289,14 +301,16 @@ RSpec.describe "Work package index sums", :js doexpect(page).to have_row("WorkPackage", count: 2) # works because the subject name includes "WorkPackage"# Expect the total sums row to have changed- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "30 h")- expect(row).to have_css(".remainingTime", text: "15 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "14")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "15.4")- expect(row).to have_css(".laborCosts", text: "", exact_text: true)- expect(row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs- expect(row).to have_css(".overallCosts", text: "", exact_text: true)+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "1d 6h")+ expect(row).to have_css(".remainingTime", text: "15h")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "14")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "15.4")+ expect(row).to have_css(".laborCosts", text: "", exact_text: true)+ expect(row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs+ expect(row).to have_css(".overallCosts", text: "", exact_text: true)+ endend# Filter by status open@@ -313,32 +327,38 @@ RSpec.describe "Work package index sums", :js dofirst_sum_row, second_sum_row = *find_all(:row, "Sum")# First status row- expect(first_sum_row).to have_css(".estimatedTime", text: "10 h")- expect(first_sum_row).to have_css(".remainingTime", text: "5 h")- expect(first_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "5")- expect(first_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "5.5")- expect(first_sum_row).to have_css(".laborCosts", text: "15.00 EUR")- expect(first_sum_row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(first_sum_row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ expect(first_sum_row).to have_css(".estimatedTime", text: "10h")+ expect(first_sum_row).to have_css(".remainingTime", text: "5h")+ expect(first_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "5")+ expect(first_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "5.5")+ expect(first_sum_row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(first_sum_row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(first_sum_row).to have_css(".overallCosts", text: "22.50 EUR")+ end# Second status row- expect(second_sum_row).to have_css(".estimatedTime", text: "15 h")- expect(second_sum_row).to have_css(".remainingTime", text: "7.5 h")- expect(second_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "7")- expect(second_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "7.7")- expect(second_sum_row).to have_css(".laborCosts", text: "", exact_text: true)- expect(second_sum_row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs- expect(second_sum_row).to have_css(".overallCosts", text: "", exact_text: true)+ aggregate_failures do+ expect(second_sum_row).to have_css(".estimatedTime", text: "15h")+ expect(second_sum_row).to have_css(".remainingTime", text: "7h 30m")+ expect(second_sum_row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "7")+ expect(second_sum_row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "7.7")+ expect(second_sum_row).to have_css(".laborCosts", text: "", exact_text: true)+ expect(second_sum_row).to have_css(".materialCosts", text: "", exact_text: true) # Unit costs+ expect(second_sum_row).to have_css(".overallCosts", text: "", exact_text: true)+ end# Total sum- within(:row, "Total sum") do |row|- expect(row).to have_css(".estimatedTime", text: "25 h")- expect(row).to have_css(".remainingTime", text: "12.5 h")- expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")- expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")- expect(row).to have_css(".laborCosts", text: "15.00 EUR")- expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs- expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ aggregate_failures do+ within(:row, "Total sum") do |row|+ expect(row).to have_css(".estimatedTime", text: "1d 1h")+ expect(row).to have_css(".remainingTime", text: "12h 30m")+ expect(row).to have_css(".#{int_cf.attribute_name(:camel_case)}", text: "12")+ expect(row).to have_css(".#{float_cf.attribute_name(:camel_case)}", text: "13.2")+ expect(row).to have_css(".laborCosts", text: "15.00 EUR")+ expect(row).to have_css(".materialCosts", text: "7.50 EUR") # Unit costs+ expect(row).to have_css(".overallCosts", text: "22.50 EUR")+ endendendenddiff --git a/spec/features/work_packages/remaining_time_spec.rb b/spec/features/work_packages/remaining_time_spec.rbindex 7d253396f69..7283d7142db 100644--- a/spec/features/work_packages/remaining_time_spec.rb+++ b/spec/features/work_packages/remaining_time_spec.rb@@ -50,7 +50,7 @@ RSpec.describe "Work packages remaining time", :js, :with_cuprite do# need to update work first to enable the remaining work fieldwp_page.update_attributes estimatedTime: "200" # rubocop:disable Rails/ActiveRecordAliaseswp_page.update_attributes remainingTime: "125" # rubocop:disable Rails/ActiveRecordAliases- wp_page.expect_attributes remainingTime: "125 h"+ wp_page.expect_attributes remainingTime: "5d 5h"work_package.reloadexpect(work_package.remaining_hours).to eq 125.0@@ -70,8 +70,8 @@ RSpec.describe "Work packages remaining time", :js, :with_cuprite do# need to update work first to enable the remaining work fieldwp_table_page.update_work_package_attributes work_package, estimatedTime: "200"wp_table_page.update_work_package_attributes work_package, remainingTime: "125"- wp_table_page.expect_work_package_with_attributes work_package, remainingTime: "125 h"- wp_table_page.expect_sums_row_with_attributes remainingTime: "125 h"+ wp_table_page.expect_work_package_with_attributes work_package, remainingTime: "5d 5h"+ wp_table_page.expect_sums_row_with_attributes remainingTime: "5d 5h"work_package.reloadexpect(work_package.remaining_hours).to eq 125.0