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 expecation for type now being upcase

Oliver Günther0ccb4d240344
diff --git a/spec/features/work_packages/details/relations/relations_spec.rb b/spec/features/work_packages/details/relations/relations_spec.rb
index b37550c16c2..abbbfccf751 100644
--- a/spec/features/work_packages/details/relations/relations_spec.rb
+++ b/spec/features/work_packages/details/relations/relations_spec.rb
@@ -101,8 +101,8 @@ describe 'Work package relations tab', js: true, selenium: true do
expect(page).to have_selector('.relation-group--header', text: 'FOLLOWS')
expect(page).to have_selector('.relation-group--header', text: 'RELATED TO')
- expect(page).to have_selector('.relation-row--type', text: type_1.name)
- expect(page).to have_selector('.relation-row--type', text: type_2.name)
+ expect(page).to have_selector('.relation-row--type', text: type_1.name.upcase)
+ expect(page).to have_selector('.relation-row--type', text: type_2.name.upcase)
find(toggle_btn_selector).click
expect(page).to have_selector(toggle_btn_selector, text: 'Group by relation type', wait: 10)
diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rb
index 240bb92c34f..8dee65ec154 100644
--- a/spec/support/components/work_packages/relations.rb
+++ b/spec/support/components/work_packages/relations.rb
@@ -110,7 +110,7 @@ module Components
text: relation_label.upcase,
wait: 10)
- expect(page).to have_selector('.relation-row--type', text: to.type.name)
+ expect(page).to have_selector('.relation-row--type', text: to.type.name.upcase)
expect(page).to have_selector('.wp-relations--subject-field', text: to.subject)