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 test

Christophe Bliard454a11149449
diff --git a/spec/features/work_packages/table/duration_field_spec.rb b/spec/features/work_packages/table/duration_field_spec.rb
index 5b04f74ead8..a3286856445 100644
--- a/spec/features/work_packages/table/duration_field_spec.rb
+++ b/spec/features/work_packages/table/duration_field_spec.rb
@@ -5,11 +5,12 @@ describe 'Duration field in the work package table',
js: true do
shared_let(:current_user) { create :admin }
shared_let(:work_package) do
+ next_monday = Time.zone.today.beginning_of_week.next_occurring(:monday)
create :work_package,
subject: 'moved',
author: current_user,
- start_date: Time.zone.today.beginning_of_week.next_occurring(:monday),
- due_date: Time.zone.today.beginning_of_week.next_occurring(:thursday)
+ start_date: next_monday,
+ due_date: next_monday.next_occurring(:thursday)
end
let!(:wp_table) { Pages::WorkPackagesTable.new(work_package.project) }