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

fixed scheduling_mode_spec

Jonas Jabarie81e9845f4a7
diff --git a/spec/features/work_packages/scheduling/scheduling_mode_spec.rb b/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
index 816cfc664f8..b622cb7f2b5 100644
--- a/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
+++ b/spec/features/work_packages/scheduling/scheduling_mode_spec.rb
@@ -100,7 +100,7 @@ RSpec.describe "scheduling mode", :js do
parent: wp_suc)
end
let(:work_packages_page) { Pages::SplitWorkPackage.new(wp, project) }
-
+ let(:activity_tab) { Components::WorkPackages::Activities.new(wp) }
let(:combined_field) { work_packages_page.edit_field(:combinedDate) }
def expect_dates(work_package, start_date, due_date)
@@ -131,7 +131,9 @@ RSpec.describe "scheduling mode", :js do
work_packages_page.expect_and_dismiss_toaster message: "Successful update."
# Changing the scheduling mode is journalized
- work_packages_page.expect_activity_message("Manual scheduling activated")
+ activity_tab.expect_journal_changed_attribute(
+ text: "Manual scheduling activated"
+ )
expect_dates(wp, "2016-01-05", "2016-01-10")
expect(wp.schedule_manually).to be_truthy