Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_imscp @core_completion
2
Feature: View activity completion information in the IMS content package activity
3
  In order to have visibility of IMS content package completion requirements
4
  As a student
5
  I need to be able to view my IMS content package completion progress
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | student1 | Vinnie    | Student1 | student1@example.com |
11
      | teacher1 | Darrell   | Teacher1 | teacher1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | category | enablecompletion | showcompletionconditions |
14
      | Course 1 | C1        | 0        | 1                | 1                        |
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
19
 
20
  Scenario: View automatic completion items
21
    Given the following "activities" exist:
22
      | activity | course | name          | completion | completionview | packagefilepath                             |
23
      | imscp    | C1     | Music history | 2          | 1              | mod/imscp/tests/pacakges/singescobbasic.zip |
24
    # Student view.
25
    When I am on the "Music history" "imscp activity" page logged in as student1
26
    Then the "View" completion condition of "Music history" is displayed as "done"
27
 
28
  @javascript
29
  Scenario: Use manual completion
30
    Given the following "activities" exist:
31
      | activity | course | name          | completion | packagefilepath                            |
32
      | imscp    | C1     | Music history | 1          | mod/imscp/tests/packages/singescobasic.zip |
33
    And I am on the "Music history" "imscp activity" page logged in as teacher1
34
    # Teacher view.
35
    And the manual completion button for "Music history" should be disabled
36
    # Student view.
37
    When I am on the "Music history" "imscp activity" page logged in as student1
38
    Then the manual completion button of "Music history" is displayed as "Mark as done"
39
    And I toggle the manual completion state of "Music history"
40
    And the manual completion button of "Music history" is displayed as "Done"