Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 12... Línea 12...
12
    And the following "courses" exist:
12
    And the following "courses" exist:
13
      | fullname | shortname | category | enablecompletion | showcompletionconditions |
13
      | fullname | shortname | category | enablecompletion | showcompletionconditions |
14
      | Course 1 | C1        | 0        | 1                | 1                        |
14
      | Course 1 | C1        | 0        | 1                | 1                        |
15
      | Course 2 | C2        | 0        | 1                | 0                        |
15
      | Course 2 | C2        | 0        | 1                | 0                        |
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
      | student1 | C2     | student        |
19
      | teacher1 | C1 | editingteacher |
20
      | teacher1 | C1     | editingteacher |
-
 
21
      | teacher1 | C2     | editingteacher |
Línea 20... Línea 22...
20
 
22
 
21
  Scenario: View automatic completion items as teacher
23
  Scenario: A teacher can view a page resource automatic completion items
22
    Given the following "activity" exists:
24
    Given the following "activity" exists:
23
      | activity       | page                     |
25
      | activity       | page                     |
24
      | course         | C1                       |
26
      | course         | C1                       |
25
      | idnumber       | page1                    |
27
      | idnumber       | page1                    |
Línea 28... Línea 30...
28
      | completion     | 2                        |
30
      | completion     | 2                        |
29
      | completionview | 1                        |
31
      | completionview | 1                        |
30
    When I am on the "Music history" "page activity" page logged in as teacher1
32
    When I am on the "Music history" "page activity" page logged in as teacher1
31
    Then "Music history" should have the "View" completion condition
33
    Then "Music history" should have the "View" completion condition
Línea 32... Línea 34...
32
 
34
 
33
  Scenario: View automatic completion items as student
35
  Scenario: A student can complete a page resource by viewing it
34
    Given the following "activity" exists:
36
    Given the following "activity" exists:
35
      | activity       | page                     |
37
      | activity       | page                     |
36
      | course         | C1                       |
38
      | course         | C1                       |
37
      | idnumber       | page1                    |
39
      | idnumber       | page1                    |
Línea 41... Línea 43...
41
      | completionview | 1                        |
43
      | completionview | 1                        |
42
    When I am on the "Music history" "page activity" page logged in as student1
44
    When I am on the "Music history" "page activity" page logged in as student1
43
    Then the "View" completion condition of "Music history" is displayed as "done"
45
    Then the "View" completion condition of "Music history" is displayed as "done"
Línea 44... Línea 46...
44
 
46
 
45
  @javascript
47
  @javascript
46
  Scenario: Use manual completion as teacher
48
  Scenario: A teacher cannot manually mark the page activity as done
47
    Given the following "activity" exists:
49
    Given the following "activity" exists:
48
      | activity   | page                     |
50
      | activity   | page                     |
49
      | course     | C1                       |
51
      | course     | C1                       |
50
      | idnumber   | page1                    |
52
      | idnumber   | page1                    |
Línea 54... Línea 56...
54
    # Teacher view.
56
    # Teacher view.
55
    When I am on the "Music history" "page activity" page logged in as teacher1
57
    When I am on the "Music history" "page activity" page logged in as teacher1
56
    Then the manual completion button for "Music history" should be disabled
58
    Then the manual completion button for "Music history" should be disabled
Línea 57... Línea 59...
57
 
59
 
58
  @javascript
60
  @javascript
59
  Scenario: Use manual completion as student
61
  Scenario: A student can manually mark the page activity as done
60
    Given the following "activity" exists:
62
    Given the following "activity" exists:
61
      | activity   | page                     |
63
      | activity   | page                     |
62
      | course     | C1                       |
64
      | course     | C1                       |
63
      | idnumber   | page1                    |
65
      | idnumber   | page1                    |
Línea 67... Línea 69...
67
    # Teacher view.
69
    # Teacher view.
68
    When I am on the "Music history" "page activity" page logged in as student1
70
    When I am on the "Music history" "page activity" page logged in as student1
69
    And I toggle the manual completion state of "Music history"
71
    And I toggle the manual completion state of "Music history"
70
    And the manual completion button of "Music history" is displayed as "Done"
72
    And the manual completion button of "Music history" is displayed as "Done"
Línea 71... Línea 73...
71
 
73
 
72
  Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No as teacher
74
  Scenario Outline: Page module manual completion button hidden if Show activity completion is set to No
73
    Given the following "activity" exists:
75
    Given the following "activity" exists:
74
      | activity   | page                     |
76
      | activity   | page                     |
75
      | course     | C2                       |
77
      | course     | C2                       |
76
      | idnumber   | page1                    |
78
      | idnumber   | page1                    |
77
      | name       | Music history            |
79
      | name       | Music history            |
78
      | intro      | A lesson learned in life |
80
      | intro      | A lesson learned in life |
79
      | completion | 1                        |
81
      | completion | 1                        |
-
 
82
    When I am on the "Course 2" course page logged in as <user>
80
    When I am on the "Music history" "page activity" page logged in as teacher1
83
    # Course 2 has 'Show activity completion conditions' set to No, so the manual completion button should not be displayed.
Línea 81... Línea -...
81
    Then the manual completion button for "Music history" should not exist
-
 
82
 
84
    Then the manual completion button for "Music history" should not exist
83
  Scenario: The manual completion button will not be shown on the course page if the Show activity completion conditions is set to No as student
-
 
84
    Given the following "activity" exists:
85
 
85
      | activity   | page                     |
-
 
86
      | course     | C2                       |
-
 
87
      | idnumber   | page1                    |
86
    Examples:
88
      | name       | Music history            |
87
      | user     |
89
      | intro      | A lesson learned in life |
-
 
90
      | completion | 1                        |
-