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[#50499] Add data-test-selector="op-breadcrumb" in BreadcrumbHelper

Dominic Bräunleinbad3790ccb32
diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb
index de43d290505..6ba26624ab2 100644
--- a/app/helpers/breadcrumb_helper.rb
+++ b/app/helpers/breadcrumb_helper.rb
@@ -29,7 +29,7 @@
module BreadcrumbHelper
def full_breadcrumbs
items = breadcrumb_paths.compact
- render(Primer::Beta::Breadcrumbs.new) do |breadcrumbs|
+ render(Primer::Beta::Breadcrumbs.new(data: { 'test-selector': "op-breadcrumb" })) do |breadcrumbs|
items.each do |item|
item = anchor_string_to_object(item) if item.is_a?(String) && item.start_with?("\u003c")