[ Index ] |
PHP Cross Reference of Unnamed Project |
[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 start watching to see if a new page loads 66 And I should see the "Course categories and courses" management page 67 And I click on category "Cat 1" in the management interface 68 And a new page should have loaded since I started watching 69 And I start watching to see if a new page loads 70 And I should see the "Course categories and courses" management page 71 And I should see "Cat 1" in the "#category-listing ul.ml" "css_element" 72 And I should see "Course 1" in the "#course-listing ul.ml" "css_element" 73 And category in management listing should be visible "CAT1" 74 And course in management listing should be visible "C1" 75 And I toggle visibility of course "C1" in management listing 76 And a new page should not have loaded since I started watching 77 And category in management listing should be visible "CAT1" 78 And course in management listing should be dimmed "C1" 79 And I toggle visibility of course "C1" in management listing 80 And a new page should not have loaded since I started watching 81 And category in management listing should be visible "CAT1" 82 And course in management listing should be visible "C1" 83 And I toggle visibility of course "C1" in management listing 84 And a new page should not have loaded since I started watching 85 And category in management listing should be visible "CAT1" 86 And course in management listing should be dimmed "C1" 87 And I toggle visibility of category "CAT1" in management listing 88 And a new page should not have loaded since I started watching 89 And category in management listing should be dimmed "CAT1" 90 And course in management listing should be dimmed "C1" 91 And I toggle visibility of category "CAT1" in management listing 92 And a new page should not have loaded since I started watching 93 And category in management listing should be visible "CAT1" 94 And course in management listing should be dimmed "C1" 95 And I toggle visibility of category "CAT1" in management listing 96 And I toggle visibility of course "C1" in management listing 97 And I click on "Course categories and courses" "link" in the ".view-mode-selector" "css_element" 98 And I click on "Courses" "link" 99 And a new page should have loaded since I started watching 100 And I start watching to see if a new page loads 101 And I should see "Course 1" in the "#course-listing ul.ml" "css_element" 102 And I toggle visibility of course "C1" in management listing 103 And a new page should not have loaded since I started watching 104 And course in management listing should be dimmed "C1" 105 And I toggle visibility of course "C1" in management listing 106 And course in management listing should be visible "C1" 107 And a new page should not have loaded since I started watching
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |