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 that tests incorrectly to move to global

Oliver Günther5d5ef2599e46
diff --git a/modules/reporting/spec/features/menu_spec.rb b/modules/reporting/spec/features/menu_spec.rb
index 297afd194ac..45b78f6a979 100644
--- a/modules/reporting/spec/features/menu_spec.rb
+++ b/modules/reporting/spec/features/menu_spec.rb
@@ -85,34 +85,5 @@ RSpec.describe "project menu" do
it_behaves_like "it leads to the project costs reports"
end
end
-
- describe "link to global cost reports" do
- shared_examples "it leads to the cost reports" do
- before do
- visit current_path
- end
-
- it "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.
- find("#main-menu #{test_selector('op-menu--item-action')}", text: "Time and costs").click
-
- # to make sure we're not seeing the project cost reports:
- expect(page).to have_no_text("Ponyo")
- end
- end
-
- context "when on the project's activity page" do
- let(:current_path) { "/projects/ponyo/activity" }
-
- it_behaves_like "it leads to the cost reports"
- end
-
- context "when on the project's calendar" do
- let(:current_path) { "/projects/ponyo/calendars" }
-
- it_behaves_like "it leads to the cost reports"
- end
- end
end
end