Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 16... Línea 16...
16
    And the following "course enrolments" exist:
16
    And the following "course enrolments" exist:
17
      | user      | course  | role            |
17
      | user      | course  | role            |
18
      | student1  | C1      | student         |
18
      | student1  | C1      | student         |
19
      | teacher1  | C1      | editingteacher  |
19
      | teacher1  | C1      | editingteacher  |
20
      | student1  | C2      | student         |
20
      | student1  | C2      | student         |
21
    And I enable "chat" "mod" plugin
-
 
22
    And I enable "survey" "mod" plugin
-
 
23
    And the following "activities" exist:
21
    And the following "activities" exist:
24
      | activity   | name         | intro                       | course | idnumber  | section |
22
      | activity   | name         | intro                       | course | idnumber  | section |
25
      | assign     | Assignment 1 | Test assignment description | C1     | assign1   | 0       |
23
      | assign     | Assignment 1 | Test assignment description | C1     | assign1   | 0       |
26
      | book       | Book 1       | Test book description       | C1     | book1     | 0       |
24
      | book       | Book 1       | Test book description       | C1     | book1     | 0       |
27
      | chat       | Chat 1       | Test chat description       | C1     | chat1     | 0       |
-
 
28
      | choice     | Choice 1     | Test choice description     | C1     | choice1   | 1       |
25
      | choice     | Choice 1     | Test choice description     | C1     | choice1   | 1       |
29
      | data       | Database 1   | Test database description   | C1     | data1     | 1       |
26
      | data       | Database 1   | Test database description   | C1     | data1     | 1       |
30
      | feedback   | Feedback 1   | Test feedback description   | C1     | feedback1 | 1       |
27
      | feedback   | Feedback 1   | Test feedback description   | C1     | feedback1 | 1       |
31
      | folder     | Folder 1     | Test folder description     | C1     | folder1   | 2       |
28
      | folder     | Folder 1     | Test folder description     | C1     | folder1   | 2       |
32
      | forum      | Forum 1      | Test forum description      | C1     | forum1    | 2       |
29
      | forum      | Forum 1      | Test forum description      | C1     | forum1    | 2       |
Línea 37... Línea 34...
37
      | lti        | Lti 1        | Test lti description        | C1     | lti1      | 4       |
34
      | lti        | Lti 1        | Test lti description        | C1     | lti1      | 4       |
38
      | page       | Page 1       | Test page description       | C1     | page1     | 4       |
35
      | page       | Page 1       | Test page description       | C1     | page1     | 4       |
39
      | quiz       | Quiz 1       | Test quiz description       | C1     | quiz1     | 4       |
36
      | quiz       | Quiz 1       | Test quiz description       | C1     | quiz1     | 4       |
40
      | resource   | Resource 1   | Test resource description   | C1     | resource1 | 5       |
37
      | resource   | Resource 1   | Test resource description   | C1     | resource1 | 5       |
41
      | scorm      | Scorm 1      | Test scorm description      | C1     | scorm1    | 5       |
38
      | scorm      | Scorm 1      | Test scorm description      | C1     | scorm1    | 5       |
42
      | survey     | Survey 1     | Test survey description     | C1     | survey1   | 5       |
-
 
43
      | url        | Url 1        | Test url description        | C1     | url1      | 6       |
39
      | url        | Url 1        | Test url description        | C1     | url1      | 6       |
44
      | wiki       | Wiki 1       | Test wiki description       | C1     | wiki1     | 6       |
40
      | wiki       | Wiki 1       | Test wiki description       | C1     | wiki1     | 6       |
45
      | workshop   | Workshop 1   | Test workshop description   | C1     | workshop1 | 6       |
41
      | workshop   | Workshop 1   | Test workshop description   | C1     | workshop1 | 6       |
46
      | assign     | Assignment 1 | Test assignment description | C2     | assign21  | 0       |
42
      | assign     | Assignment 1 | Test assignment description | C2     | assign21  | 0       |
47
    And the following config values are set as admin:
43
    And the following config values are set as admin:
Línea 72... Línea 68...
72
    # The first activity won't have the previous activity link.
68
    # The first activity won't have the previous activity link.
73
    Then "#prev-activity-link" "css_element" should not exist
69
    Then "#prev-activity-link" "css_element" should not exist
74
    And I should see "Book 1" in the "#next-activity-link" "css_element"
70
    And I should see "Book 1" in the "#next-activity-link" "css_element"
75
    And I follow "Book 1"
71
    And I follow "Book 1"
76
    And I should see "Assignment" in the "#prev-activity-link" "css_element"
72
    And I should see "Assignment" in the "#prev-activity-link" "css_element"
77
    And I should see "Chat 1" in the "#next-activity-link" "css_element"
-
 
78
    And I follow "Chat 1"
-
 
79
    And I should see "Book 1" in the "#prev-activity-link" "css_element"
-
 
80
    And I should see "Choice 1" in the "#next-activity-link" "css_element"
73
    And I should see "Choice 1" in the "#next-activity-link" "css_element"
81
    And I follow "Choice 1"
74
    And I follow "Choice 1"
82
    And I should see "Chat 1" in the "#prev-activity-link" "css_element"
75
    And I should see "Book 1" in the "#prev-activity-link" "css_element"
83
    And I should see "Database 1" in the "#next-activity-link" "css_element"
76
    And I should see "Database 1" in the "#next-activity-link" "css_element"
84
    And I follow "Database 1"
77
    And I follow "Database 1"
85
    And I should see "Choice 1" in the "#prev-activity-link" "css_element"
78
    And I should see "Choice 1" in the "#prev-activity-link" "css_element"
86
    And I should see "Feedback 1" in the "#next-activity-link" "css_element"
79
    And I should see "Feedback 1" in the "#next-activity-link" "css_element"
87
    And I follow "Feedback 1"
80
    And I follow "Feedback 1"
Línea 115... Línea 108...
115
    And I follow "Resource 1 (hidden)"
108
    And I follow "Resource 1 (hidden)"
116
    And I should see "Quiz 1" in the "#prev-activity-link" "css_element"
109
    And I should see "Quiz 1" in the "#prev-activity-link" "css_element"
117
    And I should see "Scorm 1 (hidden)" in the "#next-activity-link" "css_element"
110
    And I should see "Scorm 1 (hidden)" in the "#next-activity-link" "css_element"
118
    And I follow "Scorm 1 (hidden)"
111
    And I follow "Scorm 1 (hidden)"
119
    And I should see "Resource 1 (hidden)" in the "#prev-activity-link" "css_element"
112
    And I should see "Resource 1 (hidden)" in the "#prev-activity-link" "css_element"
120
    And I should see "Survey 1 (hidden)" in the "#next-activity-link" "css_element"
-
 
121
    And I follow "Survey 1 (hidden)"
-
 
122
    And I should see "Scorm 1 (hidden)" in the "#prev-activity-link" "css_element"
-
 
123
    And I should see "Url 1" in the "#next-activity-link" "css_element"
113
    And I should see "Url 1" in the "#next-activity-link" "css_element"
124
    And I follow "Url 1"
114
    And I follow "Url 1"
125
    And I should see "Survey 1 (hidden)" in the "#prev-activity-link" "css_element"
115
    And I should see "Scorm 1 (hidden)" in the "#prev-activity-link" "css_element"
126
    And I should see "Wiki 1" in the "#next-activity-link" "css_element"
116
    And I should see "Wiki 1" in the "#next-activity-link" "css_element"
127
    And I follow "Wiki 1"
117
    And I follow "Wiki 1"
128
    And I should see "Url 1" in the "#prev-activity-link" "css_element"
118
    And I should see "Url 1" in the "#prev-activity-link" "css_element"
129
    And I should see "Workshop 1" in the "#next-activity-link" "css_element"
119
    And I should see "Workshop 1" in the "#next-activity-link" "css_element"
130
    And I follow "Workshop 1"
120
    And I follow "Workshop 1"
Línea 139... Línea 129...
139
    # The first activity won't have the previous activity link.
129
    # The first activity won't have the previous activity link.
140
    Then "#prev-activity-link" "css_element" should not exist
130
    Then "#prev-activity-link" "css_element" should not exist
141
    And I should see "Book 1" in the "#next-activity-link" "css_element"
131
    And I should see "Book 1" in the "#next-activity-link" "css_element"
142
    And I follow "Book 1"
132
    And I follow "Book 1"
143
    And I should see "Assignment" in the "#prev-activity-link" "css_element"
133
    And I should see "Assignment" in the "#prev-activity-link" "css_element"
144
    And I should see "Chat 1" in the "#next-activity-link" "css_element"
-
 
145
    And I follow "Chat 1"
-
 
146
    And I should see "Book 1" in the "#prev-activity-link" "css_element"
-
 
147
    And I should see "Choice 1" in the "#next-activity-link" "css_element"
134
    And I should see "Choice 1" in the "#next-activity-link" "css_element"
148
    And I follow "Choice 1"
135
    And I follow "Choice 1"
149
    And I should see "Chat 1" in the "#prev-activity-link" "css_element"
136
    And I should see "Book 1" in the "#prev-activity-link" "css_element"
150
    And I should see "Database 1" in the "#next-activity-link" "css_element"
137
    And I should see "Database 1" in the "#next-activity-link" "css_element"
151
    And I follow "Database 1"
138
    And I follow "Database 1"
152
    And I should see "Choice 1" in the "#prev-activity-link" "css_element"
139
    And I should see "Choice 1" in the "#prev-activity-link" "css_element"
153
    And I should see "Feedback 1" in the "#next-activity-link" "css_element"
140
    And I should see "Feedback 1" in the "#next-activity-link" "css_element"
154
    And I follow "Feedback 1"
141
    And I follow "Feedback 1"
Línea 198... Línea 185...
198
    And the "Jump to..." select box should not contain "Forum 1"
185
    And the "Jump to..." select box should not contain "Forum 1"
199
    # Resources without view URL (e.g. labels) will not be listed.
186
    # Resources without view URL (e.g. labels) will not be listed.
200
    And the "Jump to..." select box should not contain "Label 1"
187
    And the "Jump to..." select box should not contain "Label 1"
201
    # Check drop down menu contents.
188
    # Check drop down menu contents.
202
    And the "Jump to..." select box should contain "Book 1"
189
    And the "Jump to..." select box should contain "Book 1"
203
    And the "Jump to..." select box should contain "Chat 1"
-
 
204
    And the "Jump to..." select box should contain "Choice 1"
190
    And the "Jump to..." select box should contain "Choice 1"
205
    And the "Jump to..." select box should contain "Database 1"
191
    And the "Jump to..." select box should contain "Database 1"
206
    And the "Jump to..." select box should contain "Feedback 1"
192
    And the "Jump to..." select box should contain "Feedback 1"
207
    And the "Jump to..." select box should contain "Folder 1"
193
    And the "Jump to..." select box should contain "Folder 1"
208
    And the "Jump to..." select box should contain "Imscp 1"
194
    And the "Jump to..." select box should contain "Imscp 1"
Línea 216... Línea 202...
216
    # Hidden activities will be rendered with a '(hidden)' text.
202
    # Hidden activities will be rendered with a '(hidden)' text.
217
    And the "Jump to..." select box should contain "Glossary 1 (hidden)"
203
    And the "Jump to..." select box should contain "Glossary 1 (hidden)"
218
    # Activities in hidden sections will be rendered with a '(hidden)' text.
204
    # Activities in hidden sections will be rendered with a '(hidden)' text.
219
    And the "Jump to..." select box should contain "Resource 1 (hidden)"
205
    And the "Jump to..." select box should contain "Resource 1 (hidden)"
220
    And the "Jump to..." select box should contain "Scorm 1 (hidden)"
206
    And the "Jump to..." select box should contain "Scorm 1 (hidden)"
221
    And the "Jump to..." select box should contain "Survey 1 (hidden)"
-
 
222
    # Jump to an activity somewhere in the middle.
207
    # Jump to an activity somewhere in the middle.
223
    When I select "Page 1" from the "Jump to..." singleselect
208
    When I select "Page 1" from the "Jump to..." singleselect
224
    Then I should see "Page 1"
209
    Then I should see "Page 1"
225
    And I should see "Lti 1" in the "#prev-activity-link" "css_element"
210
    And I should see "Lti 1" in the "#prev-activity-link" "css_element"
226
    And I should see "Quiz 1" in the "#next-activity-link" "css_element"
211
    And I should see "Quiz 1" in the "#next-activity-link" "css_element"
Línea 251... Línea 236...
251
    # Hidden activities will not be listed for students.
236
    # Hidden activities will not be listed for students.
252
    And the "Jump to..." select box should not contain "Glossary 1"
237
    And the "Jump to..." select box should not contain "Glossary 1"
253
    # Activities in hidden sections will not be listed for students.
238
    # Activities in hidden sections will not be listed for students.
254
    And the "Jump to..." select box should not contain "Resource 1"
239
    And the "Jump to..." select box should not contain "Resource 1"
255
    And the "Jump to..." select box should not contain "Scorm 1"
240
    And the "Jump to..." select box should not contain "Scorm 1"
256
    And the "Jump to..." select box should not contain "Survey 1"
-
 
257
    # Only activities visible to students will be listed.
241
    # Only activities visible to students will be listed.
258
    And the "Jump to..." select box should contain "Book 1"
242
    And the "Jump to..." select box should contain "Book 1"
259
    And the "Jump to..." select box should contain "Chat 1"
-
 
260
    And the "Jump to..." select box should contain "Choice 1"
243
    And the "Jump to..." select box should contain "Choice 1"
261
    And the "Jump to..." select box should contain "Database 1"
244
    And the "Jump to..." select box should contain "Database 1"
262
    And the "Jump to..." select box should contain "Feedback 1"
245
    And the "Jump to..." select box should contain "Feedback 1"
263
    And the "Jump to..." select box should contain "Folder 1"
246
    And the "Jump to..." select box should contain "Folder 1"
264
    And the "Jump to..." select box should contain "Imscp 1"
247
    And the "Jump to..." select box should contain "Imscp 1"