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
Make sure the test won't fail in 2030
Christophe Bliard2c3c433208bd
diff --git a/spec/features/work_packages/datepicker/datepicker_non_working_day_spec.rb b/spec/features/work_packages/datepicker/datepicker_non_working_day_spec.rbindex 0b9e2b9913d..2ed4049bfd9 100644--- a/spec/features/work_packages/datepicker/datepicker_non_working_day_spec.rb+++ b/spec/features/work_packages/datepicker/datepicker_non_working_day_spec.rb@@ -45,13 +45,11 @@ RSpec.describe "Datepicker modal individual non working days (WP #44453)", :js,create(:non_working_day,date: Time.zone.today.beginning_of_week.next_occurring(:tuesday))end- shared_let(:working_day_this_week) { Time.zone.today.beginning_of_week.next_occurring(:wednesday) }shared_let(:non_working_day_next_year) docreate(:non_working_day,date: Time.zone.today.end_of_year.next_occurring(:tuesday))end- shared_let(:working_day_next_year) { Time.zone.today.end_of_year.next_occurring(:wednesday) }shared_examples "shows individual non working days" dolet(:work_packages_page) { Pages::FullWorkPackage.new(work_package, project) }@@ -114,12 +112,12 @@ RSpec.describe "Datepicker modal individual non working days (WP #44453)", :js,# Set the start date to a non working daydatepicker.set_start_date non_working_day_this_week.date# The date is automatically updated to the next working day- datepicker.expect_start_date working_day_this_week+ datepicker.expect_start_date non_working_day_this_week.date + 1.day# Set the due date to a non working daydatepicker.set_due_date non_working_day_next_year.date# The date is automatically updated to the next working day- datepicker.expect_due_date working_day_next_year+ datepicker.expect_due_date non_working_day_next_year.date + 1.dayendendend