MDL-60817 mod_workshop: Fix behat tests
This commit is contained in:
@@ -49,6 +49,8 @@ Feature: File types of the submission and feedback attachments can be limitted
|
||||
And I follow "moodlelogo.png"
|
||||
And I set the field "Name" to "testable.php"
|
||||
And I press "Update"
|
||||
And I should see "The original file extension has been modified as a part of the file name change. Changing the extension from \".png\" to \".php\" could potentially cause some side effects."
|
||||
And I click on "OK" "button" in the ".moodle-dialogue-base[aria-hidden='false']" "css_element"
|
||||
When I press "Save changes"
|
||||
Then I should see "Some files (testable.php) cannot be uploaded. Only file types image are allowed."
|
||||
# Remove the invalid file and attach an image instead.
|
||||
@@ -110,6 +112,8 @@ Feature: File types of the submission and feedback attachments can be limitted
|
||||
And I follow "testable.php"
|
||||
And I set the field "Name" to "renamed.png"
|
||||
And I press "Update"
|
||||
And I should see "The original file extension has been modified as a part of the file name change. Changing the extension from \".php\" to \".png\" could potentially cause some side effects."
|
||||
And I click on "OK" "button" in the ".moodle-dialogue-base[aria-hidden='false']" "css_element"
|
||||
When I press "Save and close"
|
||||
Then I should see "Some files (renamed.png) cannot be uploaded. Only file types .php are allowed."
|
||||
And I should not see "Assigned submissions to assess"
|
||||
|
||||
Reference in New Issue
Block a user