From 561e9bb92eacbf72bf22e55a8b64e35e13d9e3b7 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 13 Jan 2014 14:30:53 +0800 Subject: [PATCH] MDL-43480 behat: Switching @_only_local and @_alerts to @_file_upload and @_alert --- admin/tests/behat/upload_users.feature | 2 +- admin/tool/behat/upgrade.txt | 6 ++++++ admin/tool/uploadcourse/tests/behat/create.feature | 2 +- admin/tool/uploadcourse/tests/behat/update.feature | 2 +- badges/tests/behat/add_badge.feature | 2 +- badges/tests/behat/award_badge.feature | 2 +- cohort/tests/behat/upload_cohort_users.feature | 2 +- course/tests/behat/course_controls.feature | 2 +- group/tests/behat/groups_import.feature | 2 +- mod/assign/tests/behat/file_submission.feature | 2 +- mod/scorm/tests/behat/add_scorm.feature | 2 +- repository/recent/tests/behat/add_recent.feature | 2 +- repository/tests/behat/cancel_add_file.feature | 2 +- repository/tests/behat/create_shortcut.feature | 2 +- repository/tests/behat/delete_files.feature | 2 +- repository/tests/behat/overwrite_file.feature | 2 +- repository/upload/tests/behat/upload_file.feature | 2 +- 17 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 admin/tool/behat/upgrade.txt diff --git a/admin/tests/behat/upload_users.feature b/admin/tests/behat/upload_users.feature index b276f44fd53..5cde0e84f85 100644 --- a/admin/tests/behat/upload_users.feature +++ b/admin/tests/behat/upload_users.feature @@ -1,4 +1,4 @@ -@core @core_admin @_only_local +@core @core_admin @_file_upload Feature: Upload users In order to add users to the system As an admin diff --git a/admin/tool/behat/upgrade.txt b/admin/tool/behat/upgrade.txt new file mode 100644 index 00000000000..e677b90dc4a --- /dev/null +++ b/admin/tool/behat/upgrade.txt @@ -0,0 +1,6 @@ +This files describes API changes in the assign code. + +=== 2.7 === + +* @_only_local tag used in .feature files replaced by @_file_upload tag +* @_alerts tag used in .feature files replaced by @_alert tag diff --git a/admin/tool/uploadcourse/tests/behat/create.feature b/admin/tool/uploadcourse/tests/behat/create.feature index ce2c98b8dfa..c1bf56fb8dc 100644 --- a/admin/tool/uploadcourse/tests/behat/create.feature +++ b/admin/tool/uploadcourse/tests/behat/create.feature @@ -1,4 +1,4 @@ -@tool @tool_uploadcourse @_only_local +@tool @tool_uploadcourse @_file_upload Feature: An admin can create courses using a CSV file In order to create courses using a CSV file As an admin diff --git a/admin/tool/uploadcourse/tests/behat/update.feature b/admin/tool/uploadcourse/tests/behat/update.feature index 457f07d2007..4ac4f4ef3e0 100644 --- a/admin/tool/uploadcourse/tests/behat/update.feature +++ b/admin/tool/uploadcourse/tests/behat/update.feature @@ -1,4 +1,4 @@ -@tool @tool_uploadcourse @_only_local +@tool @tool_uploadcourse @_file_upload Feature: An admin can update courses using a CSV file In order to update courses using a CSV file As an admin diff --git a/badges/tests/behat/add_badge.feature b/badges/tests/behat/add_badge.feature index 64bf70431a2..737149171db 100644 --- a/badges/tests/behat/add_badge.feature +++ b/badges/tests/behat/add_badge.feature @@ -1,4 +1,4 @@ -@core @core_badges @_only_local +@core @core_badges @_file_upload Feature: Add badges to the system In order to give badges to users for their achievements As an admin diff --git a/badges/tests/behat/award_badge.feature b/badges/tests/behat/award_badge.feature index 458df34eb59..faf198cc42a 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -1,4 +1,4 @@ -@core @core_badges @_only_local +@core @core_badges @_file_upload Feature: Award badges In order to award badges to users for their achievements As an admin diff --git a/cohort/tests/behat/upload_cohort_users.feature b/cohort/tests/behat/upload_cohort_users.feature index eb0ea178c60..22133290607 100644 --- a/cohort/tests/behat/upload_cohort_users.feature +++ b/cohort/tests/behat/upload_cohort_users.feature @@ -1,4 +1,4 @@ -@core @core_cohort @_only_local +@core @core_cohort @_file_upload Feature: Upload users to a cohort In order to quickly fill site-wide groups with users As an admin diff --git a/course/tests/behat/course_controls.feature b/course/tests/behat/course_controls.feature index 0e5823916dc..56101a170e0 100644 --- a/course/tests/behat/course_controls.feature +++ b/course/tests/behat/course_controls.feature @@ -1,4 +1,4 @@ -@core @core_course @_alerts +@core @core_course @_alert Feature: Course activity controls works as expected In order to manage my course's activities As a teacher diff --git a/group/tests/behat/groups_import.feature b/group/tests/behat/groups_import.feature index ed021a69ce7..fef297a610b 100644 --- a/group/tests/behat/groups_import.feature +++ b/group/tests/behat/groups_import.feature @@ -1,4 +1,4 @@ -@core @core_group @_only_local +@core @core_group @_file_upload Feature: Importing of groups and groupings In order to import groups and grouping As a teacher diff --git a/mod/assign/tests/behat/file_submission.feature b/mod/assign/tests/behat/file_submission.feature index 97d25023711..0befe3399a6 100644 --- a/mod/assign/tests/behat/file_submission.feature +++ b/mod/assign/tests/behat/file_submission.feature @@ -1,4 +1,4 @@ -@mod @mod_assign @_only_local +@mod @mod_assign @_file_upload Feature: In an assignment, students can upload files for assessment In order to complete my assignments providing files As a student diff --git a/mod/scorm/tests/behat/add_scorm.feature b/mod/scorm/tests/behat/add_scorm.feature index 57cb932eeb8..0d40b62b4e4 100644 --- a/mod/scorm/tests/behat/add_scorm.feature +++ b/mod/scorm/tests/behat/add_scorm.feature @@ -1,4 +1,4 @@ -@mod @mod_scorm @_only_local @_switch_frame +@mod @mod_scorm @_file_upload @_switch_frame Feature: Add scorm activity In order to let students access a scorm package As a teacher diff --git a/repository/recent/tests/behat/add_recent.feature b/repository/recent/tests/behat/add_recent.feature index 0e245d03d3e..2c4d7ed8a33 100644 --- a/repository/recent/tests/behat/add_recent.feature +++ b/repository/recent/tests/behat/add_recent.feature @@ -1,4 +1,4 @@ -@repository @repository_recent @_only_local +@repository @repository_recent @_file_upload Feature: Recent files repository lists the recently used files In order to save time when selecting files As a user diff --git a/repository/tests/behat/cancel_add_file.feature b/repository/tests/behat/cancel_add_file.feature index eae9f54559b..868b2bb752a 100644 --- a/repository/tests/behat/cancel_add_file.feature +++ b/repository/tests/behat/cancel_add_file.feature @@ -1,4 +1,4 @@ -@core @core_filepicker @_only_local +@core @core_filepicker @_file_upload Feature: A selected file can be cancelled In order to refine the file manager contents As a user diff --git a/repository/tests/behat/create_shortcut.feature b/repository/tests/behat/create_shortcut.feature index 74f8211722b..215e1be8ed7 100644 --- a/repository/tests/behat/create_shortcut.feature +++ b/repository/tests/behat/create_shortcut.feature @@ -1,4 +1,4 @@ -@core @core_filepicker @repository @repository_user @_only_local +@core @core_filepicker @repository @repository_user @_file_upload Feature: Create shortcuts In order to automatically synchronize copies of the file with the source As a teacher diff --git a/repository/tests/behat/delete_files.feature b/repository/tests/behat/delete_files.feature index df5dcce1e29..0ec392beafd 100644 --- a/repository/tests/behat/delete_files.feature +++ b/repository/tests/behat/delete_files.feature @@ -1,4 +1,4 @@ -@core @core_filepicker @_only_local +@core @core_filepicker @_file_upload Feature: Delete files and folders from the file manager In order to clean the file manager contents As a user diff --git a/repository/tests/behat/overwrite_file.feature b/repository/tests/behat/overwrite_file.feature index 135f47eefb8..990e86d92b0 100644 --- a/repository/tests/behat/overwrite_file.feature +++ b/repository/tests/behat/overwrite_file.feature @@ -1,4 +1,4 @@ -@core @core_filepicker @_only_local +@core @core_filepicker @_file_upload Feature: Overwrite file feature In order to update an existing file As a user diff --git a/repository/upload/tests/behat/upload_file.feature b/repository/upload/tests/behat/upload_file.feature index 0deead2b217..4a932635b5f 100644 --- a/repository/upload/tests/behat/upload_file.feature +++ b/repository/upload/tests/behat/upload_file.feature @@ -1,4 +1,4 @@ -@repository @repository_upload @_only_local +@repository @repository_upload @_file_upload Feature: Upload files In order to add contents As a user