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

use correct expectation

ulferts3b4e3bde0134
diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rb
index 6d65473e5f6..b3734e5f0aa 100644
--- a/spec/support/components/work_packages/relations.rb
+++ b/spec/support/components/work_packages/relations.rb
@@ -119,10 +119,10 @@ module Components
def expect_relation(relatable)
expect(relations_group).to have_selector('.wp-relations--subject-field', text: relatable.subject)
- end
+ end
def expect_relation_by_text(text)
- expect(relations_group).to have_text('.wp-relations--subject-field', text)
+ expect(relations_group).to have_selector('.wp-relations--subject-field', text: text)
end
def expect_no_relation(relatable)