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 cost reporting project switch spec

Benjamin Bädorf471bbaa6b71b
diff --git a/modules/reporting/spec/features/project_context_spec.rb b/modules/reporting/spec/features/project_context_spec.rb
index b858ca136e9..eb7b9c3add2 100644
--- a/modules/reporting/spec/features/project_context_spec.rb
+++ b/modules/reporting/spec/features/project_context_spec.rb
@@ -16,9 +16,9 @@ describe 'Cost report project context', type: :feature, js: true do
it "switches the project context when visiting another project's cost report" do
visit cost_reports_path(project1)
- expect(page).to have_selector('#project_id_arg_1_val option', text: project1.name)
+ expect(page).to have_selector('.ng-value-label', text: project1.name)
visit cost_reports_path(project2)
- expect(page).to have_selector('#project_id_arg_1_val option', text: project2.name)
+ expect(page).to have_selector('.ng-value-label', text: project2.name)
end
end