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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix double menu entry now that child menu is rendered in rails
Oliver Günther41d5dc49af81
diff --git a/modules/reporting/spec/features/menu_spec.rb b/modules/reporting/spec/features/menu_spec.rbindex 4491fa72add..793af7fc536 100644--- a/modules/reporting/spec/features/menu_spec.rb+++ b/modules/reporting/spec/features/menu_spec.rb@@ -67,7 +67,7 @@ RSpec.describe 'project menu' doendit 'leads to cost reports' do- click_on 'Time and costs'+ find('#main-menu [data-qa-selector="op-menu--item-action"]', text: 'Time and costs').clickexpect(page).to have_current_path("/projects/ponyo/cost_reports")end@@ -95,9 +95,7 @@ RSpec.describe 'project menu' doit 'leads to cost reports' do# doing what no human can - click on invisible items.# This way, we avoid having to use selenium and by that increase stability.- within '#more-menu', visible: false do- click_on 'Time and costs', visible: false- end+ find('#main-menu [data-qa-selector="op-menu--item-action"]', text: 'Time and costs').click# to make sure we're not seeing the project cost reports:expect(page).not_to have_text('Ponyo')