MDL-59725 assignsubmission_file: Don't use click interface in behat

This commit is contained in:
John Okely
2017-08-07 09:25:46 +08:00
parent 29b31865d7
commit 5d9e7abbaf
@@ -35,13 +35,10 @@ Feature: In an assignment, limit submittable file types
And I press "Save and display"
And I navigate to "Edit settings" in current page administration
And the field "Accepted file types" matches value "image/png,spreadsheet"
And I set the field "Accepted file types" to ""
And I press "Choose"
And I set the field "Image files" to "1"
And I press "Save changes"
And I set the field "Accepted file types" to "image"
And I press "Save and display"
And I navigate to "Edit settings" in current page administration
Then the field "Accepted file types" matches value "image"
Then I should see "Image files"
@javascript @_file_upload
Scenario: Uploading permitted file types for an assignment