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

tests[Op#57516]: revisit page to ensure new project is available

Kabiru Mwenjac316e4fad3e8
diff --git a/spec/features/admin/custom_fields/custom_fields_project_spec.rb b/spec/features/admin/custom_fields/custom_fields_project_spec.rb
index e4f6f222412..8081ae4c153 100644
--- a/spec/features/admin/custom_fields/custom_fields_project_spec.rb
+++ b/spec/features/admin/custom_fields/custom_fields_project_spec.rb
@@ -131,6 +131,8 @@ RSpec.describe "Custom Fields Multi-Project Activation", :js do
project = create(:project)
create(:custom_fields_project, custom_field:, project:)
+ visit custom_field_projects_path(custom_field)
+
custom_field_projects_page.click_menu_item_of("Remove from project", project)
expect(page).to have_no_text(project.name)
@@ -142,7 +144,7 @@ RSpec.describe "Custom Fields Multi-Project Activation", :js do
pagination_links.each do |pagination_link|
uri = URI.parse(pagination_link["href"])
- expect(uri.path).to eq(custom_field_projects(custom_field))
+ expect(uri.path).to eq(custom_field_projects_path(custom_field))
end
end
end