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

Merge pull request #15860 from opf/bug/55504-changing-page-sizepage-after-removing-a-project-from-an-project-attribute-leads-to-page-not-found

Pavel Balashou634c73dfcc1b
diff --cc spec/features/admin/project_custom_fields/project_mappings_spec.rb
index c3442a5efb8,1dca647478f..1f367fb5fcf
--- a/spec/features/admin/project_custom_fields/project_mappings_spec.rb
+++ b/spec/features/admin/project_custom_fields/project_mappings_spec.rb
@@@ -77,22 -77,12 +77,16 @@@ RSpec.describe "Project Custom Field Ma
aggregate_failures "shows the correct project mappings" do
within "#project-table" do
expect(page).to have_text(project.name)
- expect(page).to have_no_text(archived_project.name)
+ expect(page).to have_text(archived_project.name)
+
+ within("tr#settings-project-custom-fields-project-custom-field-mapping-row-component-project-#{archived_project.id}") do
+ expect(page.find(".buttons")).not_to have_test_selector("project-list-row--action-menu")
+ end
end
end
-
- aggregate_failures "allows to unlinking a project" do
- project_custom_field_mappings_page.click_menu_item_of("Deactivate for this project", project)
-
- expect(page).to have_no_text(project.name)
- end
end
- it "allows to link a project" do
+ it "allows linking a project to a custom field" do
project = create(:project)
subproject = create(:project, parent: project)
click_on "Add projects"