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#54456]: clear name field before filling for correct assertion

Kabiru Mwenja638bc8ac5626
diff --git a/spec/features/admin/project_custom_fields/edit_spec.rb b/spec/features/admin/project_custom_fields/edit_spec.rb
index 6c127e87729..2d2c4fa9fe7 100644
--- a/spec/features/admin/project_custom_fields/edit_spec.rb
+++ b/spec/features/admin/project_custom_fields/edit_spec.rb
@@ -60,7 +60,7 @@ RSpec.describe "Edit project custom fields", :js do
# TODO: reuse specs for classic custom field form in order to test for other attribute manipulations
expect(page).to have_css(".PageHeader-title", text: boolean_project_custom_field.name)
- fill_in("custom_field_name", with: "Updated name")
+ fill_in("custom_field_name", with: "Updated name", fill_options: { clear: :backspace })
select(section_for_select_fields.name, from: "custom_field_custom_field_section_id")
click_on("Save")