Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 15... Línea 15...
15
    And the following "course enrolments" exist:
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
16
      | user | course | role           |
17
      | student1 | C1 | student        |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
18
      | teacher1 | C1 | editingteacher |
Línea 19... Línea 19...
19
 
19
 
20
  Scenario: View automatic completion items
20
  Scenario: A student can complete a IMSCP activity by viewing it
21
    Given the following "activities" exist:
21
    Given the following "activities" exist:
22
      | activity | course | name          | completion | completionview | packagefilepath                             |
22
      | activity | course | name          | completion | completionview | packagefilepath                             |
23
      | imscp    | C1     | Music history | 2          | 1              | mod/imscp/tests/pacakges/singescobbasic.zip |
23
      | imscp    | C1     | Music history | 2          | 1              | mod/imscp/tests/pacakges/singescobbasic.zip |
24
    # Student view.
24
    # Student view.
25
    When I am on the "Music history" "imscp activity" page logged in as student1
25
    When I am on the "Music history" "imscp activity" page logged in as student1
Línea 26... Línea 26...
26
    Then the "View" completion condition of "Music history" is displayed as "done"
26
    Then the "View" completion condition of "Music history" is displayed as "done"
27
 
27
 
28
  @javascript
28
  @javascript
29
  Scenario: Use manual completion
29
  Scenario: A student can manually mark the IMSCP activity as done but a teacher cannot
30
    Given the following "activities" exist:
30
    Given the following "activities" exist:
31
      | activity | course | name          | completion | packagefilepath                            |
31
      | activity | course | name          | completion | packagefilepath                            |
32
      | imscp    | C1     | Music history | 1          | mod/imscp/tests/packages/singescobasic.zip |
32
      | imscp    | C1     | Music history | 1          | mod/imscp/tests/packages/singescobasic.zip |