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 action for checking add project attribute submenu

Ivan Kuchina04aa426f2d3
diff --git a/spec/support/pages/admin/settings/project_custom_fields/index.rb b/spec/support/pages/admin/settings/project_custom_fields/index.rb
index 364cc953927..fca26abf44b 100644
--- a/spec/support/pages/admin/settings/project_custom_fields/index.rb
+++ b/spec/support/pages/admin/settings/project_custom_fields/index.rb
@@ -46,10 +46,7 @@ module Pages
expect(page).to have_test_selector("add-project-custom-field-attribute")
- if close_dialog
- element_in_dialog = find_test_selector("add-project-custom-field-section")
- element_in_dialog.send_keys :escape
- end
+ click_button "Add" if close_dialog
end
def expect_no_add_project_attribute_submenu(close_dialog: true)
@@ -59,10 +56,7 @@ module Pages
expect(page).not_to have_test_selector("add-project-custom-field-attribute")
- if close_dialog
- element_in_dialog = find_test_selector("add-project-custom-field-section")
- element_in_dialog.send_keys :escape
- end
+ click_button "Add" if close_dialog
end
def click_to_create_new_custom_field(type)