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

Add missing values for test scenarios

Henriette Dargea6426d6e6702
diff --git a/spec/features/work_packages/details/date_editor_spec.rb b/spec/features/work_packages/details/date_editor_spec.rb
index 13930ff3754..e6914488115 100644
--- a/spec/features/work_packages/details/date_editor_spec.rb
+++ b/spec/features/work_packages/details/date_editor_spec.rb
@@ -233,7 +233,7 @@ RSpec.describe "date inplace editor", :js, :selenium, with_settings: { date_form
start_date.expect_state_text Time.zone.today.strftime("%Y-%m-%d")
end
- it "can set a negative duration which gets transformed (Regression #44219)" do
+ it "can set a negative duration which shows an error message (Regression #44219)" do
start_date.activate!
start_date.expect_active!
@@ -511,6 +511,8 @@ RSpec.describe "date inplace editor", :js, :selenium, with_settings: { date_form
context "when work package is manually scheduled" do
let(:schedule_manually) { true }
+ let(:wp_start_date) { nil }
+ let(:wp_due_date) { nil }
it "shows a banner that the relations are ignored" do
expect(page).to have_css(test_selector("op-modal-banner-warning").to_s,
@@ -534,6 +536,8 @@ RSpec.describe "date inplace editor", :js, :selenium, with_settings: { date_form
context "when work package is not manually scheduled" do
let(:schedule_manually) { false }
+ let(:wp_start_date) { nil }
+ let(:wp_due_date) { nil }
it "shows a banner that the start date it set by the predecessor" do
expect(page).to have_css(test_selector("op-modal-banner-info").to_s,