mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
DEV: Add support for uploads to form templates (#22232)
This commit is contained in:
@@ -119,8 +119,7 @@ describe "Admin Customize Form Templates", type: :system do
|
||||
expect(form_template_page).to have_input_field("textarea")
|
||||
expect(form_template_page).to have_input_field("checkbox")
|
||||
expect(form_template_page).to have_input_field("dropdown")
|
||||
# TODO(@keegan): Add this back when upload functionality is added
|
||||
# expect(form_template_page).to have_input_field("upload")
|
||||
expect(form_template_page).to have_input_field("upload")
|
||||
expect(form_template_page).to have_input_field("multi-select")
|
||||
end
|
||||
|
||||
@@ -176,13 +175,12 @@ describe "Admin Customize Form Templates", type: :system do
|
||||
)
|
||||
end
|
||||
|
||||
# TODO(@keegan): Unskip this test when Upload functionality is added
|
||||
xit "should allow quick insertion of upload field" do
|
||||
it "should allow quick insertion of upload field" do
|
||||
quick_insertion_test(
|
||||
"upload",
|
||||
'- type: upload
|
||||
attributes:
|
||||
file_types: "jpg, png, gif"
|
||||
file_types: ".jpg, .png, .gif"
|
||||
allow_multiple: false
|
||||
label: "Enter label here"
|
||||
validations:
|
||||
|
||||
Reference in New Issue
Block a user