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

Update test expectations for renamed menu entries

Christophe Bliard579e5a532c17
diff --git a/spec/features/work_packages/details/relations/hierarchy_milestone_spec.rb b/spec/features/work_packages/details/relations/hierarchy_milestone_spec.rb
index 757f0c950b6..cc4fc3ba837 100644
--- a/spec/features/work_packages/details/relations/hierarchy_milestone_spec.rb
+++ b/spec/features/work_packages/details/relations/hierarchy_milestone_spec.rb
@@ -50,12 +50,14 @@ RSpec.describe "work package hierarchies for milestones", :js, :with_cuprite do
end
it "does not provide links to add children or existing children (Regression #28745 and #60512)" do
- # A work package has a menu entry to link a child
+ # A work package has a menu entry to link or create a child
visit_relations_tab_for(task_work_package)
- relations.expect_new_relation_type("Child")
+ relations.expect_new_relation_type("New child")
+ relations.expect_new_relation_type("Existing child")
- # A milestone work package does NOT have a menu entry to link a child
+ # A milestone work package does NOT have a menu entry to link or create a child
visit_relations_tab_for(milestone_work_package)
- relations.expect_no_new_relation_type("Child")
+ relations.expect_no_new_relation_type("New child")
+ relations.expect_no_new_relation_type("Existing child")
end
end