Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 20... Línea 20...
20
    And the following "role capability" exists:
20
    And the following "role capability" exists:
21
      | role                  | user  |
21
      | role                  | user  |
22
      | moodle/course:request | allow |
22
      | moodle/course:request | allow |
23
    When I log in as "user1"
23
    When I log in as "user1"
24
    And I am on course index
24
    And I am on course index
25
    And I click on "More actions" "button"
25
    And I click on "More actions" "link"
26
    And I click on "Request a course" "link"
26
    And I click on "Request a course" "link"
27
    And I set the following fields to these values:
27
    And I set the following fields to these values:
28
      | Course full name  | My new course |
28
      | Course full name  | My new course |
29
      | Course short name | Mynewcourse   |
29
      | Course short name | Mynewcourse   |
30
      | Supporting information | pretty please |
30
      | Supporting information | pretty please |
Línea 34... Línea 34...
34
    And I am on course index
34
    And I am on course index
35
    And I should not see "My new course"
35
    And I should not see "My new course"
36
    And I log out
36
    And I log out
37
    And I log in as "user2"
37
    And I log in as "user2"
38
    And I am on course index
38
    And I am on course index
39
    And I click on "More actions" "button"
39
    And I click on "More actions" "link"
40
    And I click on "Courses pending approval" "link"
40
    And I click on "Courses pending approval" "link"
41
    And the following should exist in the "pendingcourserequests" table:
41
    And the following should exist in the "pendingcourserequests" table:
42
      | Requested by | Course short name | Course full name | Category   | Reason for course request |
42
      | Requested by | Course short name | Course full name | Category   | Reason for course request |
43
      | User 1       | Mynewcourse       | My new course    | Category 1 | pretty please             |
43
      | User 1       | Mynewcourse       | My new course    | Category 1 | pretty please             |
44
    And I click on "Approve" "button" in the "My new course" "table_row"
44
    And I click on "Approve" "button" in the "My new course" "table_row"
Línea 73... Línea 73...
73
      | role                  | courserequestor |
73
      | role                  | courserequestor |
74
      | moodle/course:request | allow           |
74
      | moodle/course:request | allow           |
75
    And I log in as "user1"
75
    And I log in as "user1"
76
    And I am on course index
76
    And I am on course index
77
    And I follow "English category"
77
    And I follow "English category"
78
    And I click on "More actions" "button"
78
    And I click on "More actions" "link"
79
    And I click on "Request a course" "link"
79
    And I click on "Request a course" "link"
80
    And I should see "English category" in the ".form-autocomplete-selection" "css_element"
80
    And I should see "English category" in the ".form-autocomplete-selection" "css_element"
81
    And I set the following fields to these values:
81
    And I set the following fields to these values:
82
      | Course full name  | My new course |
82
      | Course full name  | My new course |
83
      | Course short name | Mynewcourse   |
83
      | Course short name | Mynewcourse   |
Línea 89... Línea 89...
89
    And I follow "English category"
89
    And I follow "English category"
90
    And I should not see "More" in the "region-main" "region"
90
    And I should not see "More" in the "region-main" "region"
91
    And I should not see "Courses pending approval"
91
    And I should not see "Courses pending approval"
92
    And I am on course index
92
    And I am on course index
93
    And I follow "Science category"
93
    And I follow "Science category"
94
    And I click on "More actions" "button"
94
    And I click on "More actions" "link"
95
    And I click on "Courses pending approval" "link"
95
    And I click on "Courses pending approval" "link"
96
    And I should not see "Mynewcourse"
96
    And I should not see "Mynewcourse"
97
    And I press "Back to course listing"
97
    And I press "Back to course listing"
98
    And I log out
98
    And I log out
99
    And I log in as "user3"
99
    And I log in as "user3"
100
    And I am on course index
100
    And I am on course index
101
    And I follow "English category"
101
    And I follow "English category"
102
    And I click on "More actions" "button"
102
    And I click on "More actions" "link"
103
    And I click on "Courses pending approval" "link"
103
    And I click on "Courses pending approval" "link"
104
    And the following should exist in the "pendingcourserequests" table:
104
    And the following should exist in the "pendingcourserequests" table:
105
      | Requested by | Course short name | Course full name | Category         | Reason for course request |
105
      | Requested by | Course short name | Course full name | Category         | Reason for course request |
106
      | User 1       | Mynewcourse       | My new course    | English category | pretty please             |
106
      | User 1       | Mynewcourse       | My new course    | English category | pretty please             |
107
    And I click on "Approve" "button" in the "Mynewcourse" "table_row"
107
    And I click on "Approve" "button" in the "Mynewcourse" "table_row"