Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_wiki @core_completion
2
Feature: View activity completion information in the Wiki activity
3
  In order to have visibility of wiki completion requirements
4
  As a student
5
  I need to be able to view my wiki 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 | enablecompletion | showcompletionconditions |
14
      | Course 1 | C1        | 1                | 1                        |
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
19
    And the following "activity" exists:
20
      | activity       | wiki          |
21
      | course         | C1            |
22
      | idnumber       | mh1           |
23
      | name           | Music history |
24
      | completion     | 2             |
25
      | completionview | 1             |
26
    And I am on the "Music history" "wiki activity" page logged in as teacher1
27
    And I click on "Create page" "button"
28
 
29
  Scenario: View automatic completion items as a teacher and confirm all tabs display conditions
30
    When I am on the "Music history" "wiki activity" page logged in as teacher1
31
    Then "Music history" should have the "View" completion condition
32
    And I select "Edit" from the "jump" singleselect
33
    And "Music history" should have the "View" completion condition
34
    And I select "Comments" from the "jump" singleselect
35
    And "Music history" should have the "View" completion condition
36
    And I select "Map" from the "jump" singleselect
37
    And "Music history" should have the "View" completion condition
38
    And I select "Files" from the "jump" singleselect
39
    And "Music history" should have the "View" completion condition
40
    And I select "Administration" from the "jump" singleselect
41
    And "Music history" should have the "View" completion condition
42
 
43
  Scenario: View automatic completion items as a student
44
    When I am on the "Music history" "wiki activity" page logged in as student1
45
    Then the "View" completion condition of "Music history" is displayed as "done"
46
 
47
  @javascript
48
  Scenario: Use manual completion
49
    Given I am on the "Music history" "wiki activity" page logged in as teacher1
50
    And I am on the "Music history" "wiki activity editing" page
51
    And I expand all fieldsets
52
    And I press "Unlock completion settings"
53
    And I expand all fieldsets
54
    And I set the field "Students must manually mark the activity as done" to "1"
55
    And I press "Save and display"
56
    # Teacher view.
57
    And the manual completion button for "Music history" should be disabled
58
    # Student view.
59
    When I am on the "Music history" "wiki activity" page logged in as student1
60
    Then the manual completion button of "Music history" is displayed as "Mark as done"
61
    And I toggle the manual completion state of "Music history"
62
    And the manual completion button of "Music history" is displayed as "Done"