And I log in as "admin"
And I go to the courses management page
And I should see the "Course categories" management page
- And I should see "Re-sort categories" in the ".category-listing-actions" "css_element"
- And I should see "Re-sort the top level categories by name" in the ".category-listing-actions" "css_element"
- And I should see "Re-sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
+ And I should see "Sort categories" in the ".category-listing-actions" "css_element"
+ And I should see "Sort the top level categories by name" in the ".category-listing-actions" "css_element"
+ And I should see "Sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
And I click on <sortby> "link" in the ".category-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories" management page
Examples:
| sortby | cat1 | cat2 | cat3 |
- | "Re-sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
- | "Re-sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
- | "Re-sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
+ | "Sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
+ | "Sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
+ | "Sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
@javascript
Scenario Outline: Test resorting categories with JS enabled.
And I log in as "admin"
And I go to the courses management page
And I should see the "Course categories" management page
- And I should see "Re-sort categories" in the ".category-listing-actions" "css_element"
+ And I should see "Sort categories" in the ".category-listing-actions" "css_element"
And I should not see "By name" in the ".category-listing-actions" "css_element"
And I should not see "By idnumber" in the ".category-listing-actions" "css_element"
- And I click on "Re-sort categories" "link"
- And I should see "Re-sort the top level categories by name" in the ".category-listing-actions" "css_element"
- And I should see "Re-sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
+ And I click on "Sort categories" "link"
+ And I should see "Sort the top level categories by name" in the ".category-listing-actions" "css_element"
+ And I should see "Sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
And I click on <sortby> "link" in the ".category-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories" management page
Examples:
| sortby | cat1 | cat2 | cat3 |
- | "Re-sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
- | "Re-sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
- | "Re-sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
+ | "Sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
+ | "Sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
+ | "Sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
Scenario Outline: Test resorting subcategories.
Given the following "categories" exists:
And I log in as "admin"
And I go to the courses management page
And I should see the "Course categories" management page
- And I click on "Re-sort categories" "link"
- And I should see "Re-sort the top level categories by name" in the ".category-listing-actions" "css_element"
- And I should see "Re-sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
+ And I click on "Sort categories" "link"
+ And I should see "Sort the top level categories by name" in the ".category-listing-actions" "css_element"
+ And I should see "Sort the top level categories by idnumber" in the ".category-listing-actions" "css_element"
And I click on <sortby> "link" in the ".category-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories" management page
Examples:
| sortby | cat1 | cat2 | cat3 |
- | "Re-sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
- | "Re-sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
- | "Re-sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
+ | "Sort categories" | "Social studies" | "Applied sciences" | "Extended social studies" |
+ | "Sort the top level categories by name" | "Applied sciences" | "Extended social studies" | "Social studies" |
+ | "Sort the top level categories by idnumber" | "Extended social studies" | "Social studies" | "Applied sciences" |
@javascript
Scenario Outline: Sub categories are displayed correctly when resorted
And I click on "Cat 1" "link"
# Redirect.
And I should see the "Course categories and courses" management page
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I should see "By fullname" in the ".course-listing-actions" "css_element"
And I should see "By shortname" in the ".course-listing-actions" "css_element"
And I should see "By idnumber" in the ".course-listing-actions" "css_element"
And I click on "Cat 1" "link"
# Redirect.
And I should see the "Course categories and courses" management page
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I click on "By idnumber" "link" in the ".course-listing-actions" "css_element"
# Redirect.
And I should see "Per page: 20" in the ".course-listing-actions" "css_element"
And I click on "Cat 1" "link"
# Redirect.
And I should see the "Course categories and courses" management page
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I click on "By idnumber" "link" in the ".course-listing-actions" "css_element"
# Redirect.
And I should see "Per page: 20" in the ".course-listing-actions" "css_element"
And I click on "Cat 1" "link"
# Redirect.
And I should see the "Course categories and courses" management page
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I click on "By idnumber" "link" in the ".course-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories and courses" management page
And I click on category "Cat 1" in the management interface
# Redirect.
And I should see the "Course categories and courses" management page
- And I should see "Re-sort courses" in the ".course-listing-actions" "css_element"
+ And I should see "Sort courses" in the ".course-listing-actions" "css_element"
And I should see "By fullname" in the ".course-listing-actions" "css_element"
And I should see "By shortname" in the ".course-listing-actions" "css_element"
And I should see "By idnumber" in the ".course-listing-actions" "css_element"
And I click on category "Cat 1" in the management interface
# Redirect.
And I should see the "Course categories and courses" management page
- And I should see "Re-sort courses" in the ".course-listing-actions" "css_element"
+ And I should see "Sort courses" in the ".course-listing-actions" "css_element"
And I should not see "By fullname" in the ".course-listing-actions" "css_element"
And I should not see "By shortname" in the ".course-listing-actions" "css_element"
And I should not see "By idnumber" in the ".course-listing-actions" "css_element"
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I should see "By fullname" in the ".course-listing-actions" "css_element"
And I should see "By shortname" in the ".course-listing-actions" "css_element"
And I should see "By idnumber" in the ".course-listing-actions" "css_element"
And I should see the "Course categories and courses" management page
And I should see "Course categories" in the "#category-listing h3" "css_element"
And I should see "Cat 1" in the "#category-listing" "css_element"
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I click on "By idnumber" "link" in the ".course-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories and courses" management page
And I should see the "Course categories and courses" management page
And I should see "Course categories" in the "#category-listing h3" "css_element"
And I should see "Cat 1" in the "#category-listing" "css_element"
- And I click on "Re-sort courses" "link"
+ And I click on "Sort courses" "link"
And I click on "By idnumber" "link" in the ".course-listing-actions" "css_element"
# Redirect.
And I should see the "Course categories and courses" management page
$string['resetstatus'] = 'Status';
$string['resettask'] = 'Task';
$string['resettodefaults'] = 'Reset to defaults';
-$string['resortcategories'] = 'Re-sort categories';
-$string['resortcategoriesbyname'] = 'Re-sort the top level categories by name';
-$string['resortcategoriesbyidnumber'] = 'Re-sort the top level categories by idnumber';
-$string['resortsubcategoriesbyname'] = 'Re-sort subcategories by name';
-$string['resortsubcategoriesbyidnumber'] = 'Re-sort subcategories by idnumber';
-$string['resortcourses'] = 'Re-sort courses';
-$string['resortcoursesbyname'] = 'Re-sort courses by name';
+$string['resortcategories'] = 'Sort categories';
+$string['resortcategoriesbyname'] = 'Sort the top level categories by name';
+$string['resortcategoriesbyidnumber'] = 'Sort the top level categories by idnumber';
+$string['resortsubcategoriesbyname'] = 'Sort subcategories by name';
+$string['resortsubcategoriesbyidnumber'] = 'Sort subcategories by idnumber';
+$string['resortcourses'] = 'Sort courses';
+$string['resortcoursesbyname'] = 'Sort courses by name';
$string['resortbyname'] = 'By name';
$string['resortbyshortname'] = 'By shortname';
$string['resortbyfullname'] = 'By fullname';
$string['resortbyidnumber'] = 'By idnumber';
-$string['resortselectedcategoriesby'] = 'Re-sort sub categories of selected categories';
+$string['resortselectedcategoriesby'] = 'Sort sub categories of selected categories';
$string['resource'] = 'Resource';
$string['resourcedisplayauto'] = 'Automatic';
$string['resourcedisplaydownload'] = 'Force download';