mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 08:11:50 +08:00
DEV: Convert admin user fields to FormKit (#29070)
This change replaces the admin form for adding and editing custom user fields with a new FormKit implementation.
This commit is contained in:
@ -23,7 +23,7 @@ describe "Admin User Fields", type: :system, js: true do
|
||||
|
||||
user_fields_page.add_field(name: "Occupation", description: "")
|
||||
|
||||
expect(user_fields_page).to have_text(/Description can't be blank/)
|
||||
expect(user_fields_page.form.field(:description)).to have_errors("Required")
|
||||
end
|
||||
|
||||
it "makes sure new required fields are editable after signup" do
|
||||
@ -40,7 +40,7 @@ describe "Admin User Fields", type: :system, js: true do
|
||||
|
||||
user_fields_page.choose_requirement("optional")
|
||||
|
||||
expect(form).to have_field(editable_label, checked: false, disabled: false)
|
||||
expect(form).to have_field(editable_label, checked: true, disabled: false)
|
||||
end
|
||||
|
||||
it "requires confirmation when applying required fields retroactively" do
|
||||
|
Reference in New Issue
Block a user