AutorÃa | Ultima modificación | Ver Log |
@core @core_filepicker @_file_uploadFeature: File type can be validated on uploadWhile uploading filesAs a userI want the file type to be validated to save me from errors@javascriptScenario: File-picker does not break if you upload the wrong file typeGiven I am on the "filemanager_hideif_disabledif_form" "core_form > Fixture" page logged in as "admin"When I click on "Add..." "link"And I select "Upload a file" repository in file pickerAnd I set the field "Attachment" to "#dirroot#/lib/form/tests/fixtures/filemanager_hideif_disabledif_form.php"And I click on "Upload this file" "button" in the "File picker" "dialogue"Then I should see "Text file filetype cannot be accepted." in the "Error" "dialogue"And I click on "OK" "button" in the "Error" "dialogue"And I should see "Attachment" in the "File picker" "dialogue"And "Upload this file" "button" in the "File picker" "dialogue" should be visible