Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 17... Línea 17...
17
      | student1 | C1     | student        |
17
      | student1 | C1     | student        |
18
      | teacher1 | C1     | editingteacher |
18
      | teacher1 | C1     | editingteacher |
19
    And the following config values are set as admin:
19
    And the following config values are set as admin:
20
      | displayoptions | 0,1,2,3,4,5,6 | url |
20
      | displayoptions | 0,1,2,3,4,5,6 | url |
Línea 21... Línea 21...
21
 
21
 
22
  Scenario: View automatic completion items in automatic display mode as teacher
22
  Scenario: URL resource module displays completion conditions to teachers
23
    Given the following "activity" exists:
23
    Given the following "activity" exists:
24
      | activity       | url                 |
24
      | activity       | url                 |
25
      | course         | C1                  |
25
      | course         | C1                  |
26
      | idnumber       | Music history       |
26
      | idnumber       | Music history       |
Línea 33... Línea 33...
33
    When I am on the "Music history" "url activity" page logged in as teacher1
33
    When I am on the "Music history" "url activity" page logged in as teacher1
34
    Then "Music history" "link" should exist
34
    Then "Music history" "link" should exist
35
    And I should see "Click on Music history to open the resource."
35
    And I should see "Click on Music history to open the resource."
36
    And "Music history" should have the "View" completion condition
36
    And "Music history" should have the "View" completion condition
Línea 37... Línea 37...
37
 
37
 
38
  Scenario: View automatic completion items in automatic display mode as student
38
  Scenario: A student can complete a URL activity by viewing it
39
    Given the following "activity" exists:
39
    Given the following "activity" exists:
40
      | activity       | url                 |
40
      | activity       | url                 |
41
      | course         | C1                  |
41
      | course         | C1                  |
42
      | idnumber       | Music history       |
42
      | idnumber       | Music history       |
Línea 47... Línea 47...
47
      | completionview | 1                   |
47
      | completionview | 1                   |
48
      | display        | 0                   |
48
      | display        | 0                   |
49
    When I am on the "Music history" "url activity" page logged in as student1
49
    When I am on the "Music history" "url activity" page logged in as student1
50
    Then the "View" completion condition of "Music history" is displayed as "done"
50
    Then the "View" completion condition of "Music history" is displayed as "done"
Línea 51... Línea 51...
51
 
51
 
52
  Scenario: View automatic completion items in embed display mode as teacher
52
  Scenario: A teacher can view a URL activity completion conditions in embed display mode
53
    Given the following "activity" exists:
53
    Given the following "activity" exists:
54
      | activity       | url                 |
54
      | activity       | url                 |
55
      | course         | C1                  |
55
      | course         | C1                  |
56
      | idnumber       | Music history       |
56
      | idnumber       | Music history       |
Línea 61... Línea 61...
61
      | completionview | 1                   |
61
      | completionview | 1                   |
62
      | display        | 1                   |
62
      | display        | 1                   |
63
    When I am on the "Music history" "url activity" page logged in as teacher1
63
    When I am on the "Music history" "url activity" page logged in as teacher1
64
    Then "Music history" should have the "View" completion condition
64
    Then "Music history" should have the "View" completion condition
Línea 65... Línea 65...
65
 
65
 
66
  Scenario: View automatic completion items in embed display mode as student
66
  Scenario: A student can complete a url resource by viewing it in embed display mode
67
    Given the following "activity" exists:
67
    Given the following "activity" exists:
68
      | activity       | url                 |
68
      | activity       | url                 |
69
      | course         | C1                  |
69
      | course         | C1                  |
70
      | idnumber       | Music history       |
70
      | idnumber       | Music history       |
Línea 76... Línea 76...
76
      | display        | 1                   |
76
      | display        | 1                   |
77
    When I am on the "Music history" "url activity" page logged in as student1
77
    When I am on the "Music history" "url activity" page logged in as student1
78
    Then the "View" completion condition of "Music history" is displayed as "done"
78
    Then the "View" completion condition of "Music history" is displayed as "done"
Línea 79... Línea 79...
79
 
79
 
80
  @javascript
80
  @javascript
81
  Scenario: View automatic completion items in open display mode as teacher
81
  Scenario: A teacher can view url resource automatic completion items in open display mode as teacher
82
    Given the following "activity" exists:
82
    Given the following "activity" exists:
83
      | activity       | url                 |
83
      | activity       | url                 |
84
      | course         | C1                  |
84
      | course         | C1                  |
85
      | idnumber       | Music history       |
85
      | idnumber       | Music history       |
Línea 92... Línea 92...
92
    When I am on the "Music history" "url activity" page logged in as teacher1
92
    When I am on the "Music history" "url activity" page logged in as teacher1
93
    And I am on the "Course 1" course page
93
    And I am on the "Course 1" course page
94
    Then "Music history" should have the "View" completion condition
94
    Then "Music history" should have the "View" completion condition
Línea 95... Línea 95...
95
 
95
 
96
  @javascript
96
  @javascript
97
  Scenario: View automatic completion items in open display mode as student
97
  Scenario: A student can view url resource automatic completion items in open display mode
98
    Given the following "activity" exists:
98
    Given the following "activity" exists:
99
      | activity       | url                 |
99
      | activity       | url                 |
100
      | course         | C1                  |
100
      | course         | C1                  |
101
      | idnumber       | Music history       |
101
      | idnumber       | Music history       |
Línea 107... Línea 107...
107
      | display        | 5                   |
107
      | display        | 5                   |
108
    When I am on the "Music history" "url activity" page logged in as student1
108
    When I am on the "Music history" "url activity" page logged in as student1
109
    And I am on the "Course 1" course page
109
    And I am on the "Course 1" course page
110
    Then the "View" completion condition of "Music history" is displayed as "done"
110
    Then the "View" completion condition of "Music history" is displayed as "done"
Línea 111... Línea 111...
111
 
111
 
112
  Scenario: View automatic completion items in pop-up display mode as teacher
112
  Scenario: An URL resource shows automatic completion conditions in pop-up display mode as teacher
113
    Given the following "activity" exists:
113
    Given the following "activity" exists:
114
      | activity       | url                 |
114
      | activity       | url                 |
115
      | course         | C1                  |
115
      | course         | C1                  |
116
      | idnumber       | Music history       |
116
      | idnumber       | Music history       |
Línea 123... Línea 123...
123
      | popupwidth     | 620                 |
123
      | popupwidth     | 620                 |
124
      | popupheight    | 450                 |
124
      | popupheight    | 450                 |
125
    When I am on the "Music history" "url activity" page logged in as student1
125
    When I am on the "Music history" "url activity" page logged in as student1
126
    Then "Music history" should have the "View" completion condition
126
    Then "Music history" should have the "View" completion condition
Línea 127... Línea 127...
127
 
127
 
128
  Scenario: View automatic completion items in pop-up display mode as student
128
  Scenario: View url resource automatic completion conditions in pop-up display mode as student
129
    Given the following "activity" exists:
129
    Given the following "activity" exists:
130
      | activity       | url                 |
130
      | activity       | url                 |
131
      | course         | C1                  |
131
      | course         | C1                  |
132
      | idnumber       | Music history       |
132
      | idnumber       | Music history       |
Línea 140... Línea 140...
140
      | popupheight    | 450                 |
140
      | popupheight    | 450                 |
141
    When I am on the "Music history" "url activity" page logged in as student1
141
    When I am on the "Music history" "url activity" page logged in as student1
142
    Then the "View" completion condition of "Music history" is displayed as "done"
142
    Then the "View" completion condition of "Music history" is displayed as "done"
Línea 143... Línea 143...
143
 
143
 
144
  @javascript
144
  @javascript
145
  Scenario: Use manual completion with automatic URL as teacher
145
  Scenario: A teacher cannot manually mark the url activity as done
146
    Given the following "activity" exists:
146
    Given the following "activity" exists:
147
      | activity       | url                 |
147
      | activity       | url                 |
148
      | course         | C1                  |
148
      | course         | C1                  |
149
      | idnumber       | Music history       |
149
      | idnumber       | Music history       |
Línea 155... Línea 155...
155
      | display        | 0                   |
155
      | display        | 0                   |
156
    When I am on the "Music history" "url activity" page logged in as teacher1
156
    When I am on the "Music history" "url activity" page logged in as teacher1
157
    Then the manual completion button for "Music history" should be disabled
157
    Then the manual completion button for "Music history" should be disabled
Línea 158... Línea 158...
158
 
158
 
159
  @javascript
159
  @javascript
160
  Scenario: Use manual completion with automatic URL as student
160
  Scenario: A student can manually mark the url activity as done
161
    Given the following "activity" exists:
161
    Given the following "activity" exists:
162
      | activity       | url                 |
162
      | activity       | url                 |
163
      | course         | C1                  |
163
      | course         | C1                  |
164
      | idnumber       | Music history       |
164
      | idnumber       | Music history       |