[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: We can change the visibility of courses in the management interface. 3 As a moodle admin 4 I need to test hiding and then showing a course. 5 I need to test hiding a course and then hiding and showing the category its within. 6 7 # Test hiding and showing a course. 8 Scenario: Test toggling course visibility through the management interfaces. 9 Given the following "categories" exist: 10 | name | category | idnumber | 11 | Cat 1 | 0 | CAT1 | 12 And the following "courses" exist: 13 | category | fullname | shortname | idnumber | 14 | CAT1 | Course 1 | Course 1 | C1 | 15 16 And I log in as "admin" 17 And I go to the courses management page 18 And I should see the "Course categories and courses" management page 19 And I click on category "Cat 1" in the management interface 20 # Redirect. 21 And I should see the "Course categories and courses" management page 22 And I should see "Cat 1" in the "#category-listing ul.ml" "css_element" 23 And I should see "Course 1" in the "#course-listing ul.ml" "css_element" 24 And category in management listing should be visible "CAT1" 25 And course in management listing should be visible "C1" 26 And I toggle visibility of course "C1" in management listing 27 # Redirect. 28 And I should see the "Course categories and courses" management page with a course selected 29 And category in management listing should be visible "CAT1" 30 And course in management listing should be dimmed "C1" 31 And I toggle visibility of course "C1" in management listing 32 # Redirect. 33 And I should see the "Course categories and courses" management page with a course selected 34 And category in management listing should be visible "CAT1" 35 And course in management listing should be visible "C1" 36 And I toggle visibility of course "C1" in management listing 37 # Redirect. 38 And I should see the "Course categories and courses" management page with a course selected 39 And category in management listing should be visible "CAT1" 40 And course in management listing should be dimmed "C1" 41 And I toggle visibility of category "CAT1" in management listing 42 # Redirect. 43 And I should see the "Course categories and courses" management page 44 And category in management listing should be dimmed "CAT1" 45 And course in management listing should be dimmed "C1" 46 And I toggle visibility of category "CAT1" in management listing 47 # Redirect. 48 And I should see the "Course categories and courses" management page 49 And category in management listing should be visible "CAT1" 50 And course in management listing should be dimmed "C1" 51 And I toggle visibility of category "CAT1" in management listing 52 53 # Test hiding and showing a course with JS, same as the above test. 54 @javascript 55 Scenario: Test using AJAX to hide a course through the management interfaces. 56 Given the following "categories" exist: 57 | name | category | idnumber | 58 | Cat 1 | 0 | CAT1 | 59 And the following "courses" exist: 60 | category | fullname | shortname | idnumber | 61 | CAT1 | Course 1 | Course 1 | C1 | 62 63 And I log in as "admin" 64 And I go to the courses management page 65 And I should see the "Course categories and courses" management page 66 And I click on category "Cat 1" in the management interface 67 # Redirect. 68 And I should see the "Course categories and courses" management page 69 And I should see "Cat 1" in the "#category-listing ul.ml" "css_element" 70 And I should see "Course 1" in the "#course-listing ul.ml" "css_element" 71 And category in management listing should be visible "CAT1" 72 And course in management listing should be visible "C1" 73 And I toggle visibility of course "C1" in management listing 74 # AJAX updates the visibility 75 And category in management listing should be visible "CAT1" 76 And course in management listing should be dimmed "C1" 77 And I toggle visibility of course "C1" in management listing 78 # AJAX updates the visibility 79 And category in management listing should be visible "CAT1" 80 And course in management listing should be visible "C1" 81 And I toggle visibility of course "C1" in management listing 82 # AJAX updates the visibility 83 And category in management listing should be visible "CAT1" 84 And course in management listing should be dimmed "C1" 85 And I toggle visibility of category "CAT1" in management listing 86 # AJAX updates the visibility 87 And category in management listing should be dimmed "CAT1" 88 And course in management listing should be dimmed "C1" 89 And I toggle visibility of category "CAT1" in management listing 90 # AJAX updates the visibility 91 And category in management listing should be visible "CAT1" 92 And course in management listing should be dimmed "C1" 93 And I toggle visibility of category "CAT1" in management listing 94 And I toggle visibility of course "C1" in management listing 95 And I click on "Course categories and courses" "link" in the ".view-mode-selector" "css_element" 96 And I click on "Courses" "link" 97 # Redirect 98 And I should see "Course 1" in the "#course-listing ul.ml" "css_element" 99 And I toggle visibility of course "C1" in management listing 100 # AJAX updates the visibility 101 And course in management listing should be dimmed "C1" 102 And I toggle visibility of course "C1" in management listing 103 And course in management listing should be visible "C1"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |