From 0525ee582502fa84d138bc6c4a438381b6694df5 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Fri, 13 Mar 2020 12:48:00 +0800 Subject: [PATCH] MDL-60817 mod_workshop: Fix behat tests --- mod/workshop/tests/behat/file_type_restriction.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/workshop/tests/behat/file_type_restriction.feature b/mod/workshop/tests/behat/file_type_restriction.feature index 9a985a7524b..c5e04d8b8de 100644 --- a/mod/workshop/tests/behat/file_type_restriction.feature +++ b/mod/workshop/tests/behat/file_type_restriction.feature @@ -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"