DEV: Add support for uploads to form templates (#22232)

This commit is contained in:
Keegan George
2023-06-28 12:49:05 -07:00
committed by GitHub
parent acaea2b5c5
commit b6f03fcecd
9 changed files with 235 additions and 18 deletions
@@ -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: