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 spec

Christophe Bliarda96dc7c410c5
diff --git a/spec/features/work_packages/details/relations/hierarchy_spec.rb b/spec/features/work_packages/details/relations/hierarchy_spec.rb
index 023a31586f2..0c0d7861807 100644
--- a/spec/features/work_packages/details/relations/hierarchy_spec.rb
+++ b/spec/features/work_packages/details/relations/hierarchy_spec.rb
@@ -64,23 +64,19 @@ RSpec.shared_examples "work package relations tab", :js, :with_cuprite do
relations.add_parent(parent.id, parent)
wp_page.expect_and_dismiss_toaster(message: "Successful update.")
relations.expect_parent(parent)
+ tabs.expect_counter(relations_tab, 1)
##
# Add child #1
relations.add_existing_child(child)
relations.expect_child(child)
+ tabs.expect_counter(relations_tab, 2)
##
# Add child #2
relations.add_existing_child(child2)
relations.expect_child(child2)
-
- # Count child relations in split view
- # Marking as "visible: :all" because the counter
- # is hidden by some weird white element only in TEST mode
- # in the header.
-
- tabs.expect_counter(relations_tab, 2)
+ tabs.expect_counter(relations_tab, 3)
end
end