Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_chat @core_completion
2
Feature: View activity completion information in the chat activity
3
  In order to have visibility of chat completion requirements
4
  As a student
5
  I need to be able to view my chat 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 |
14
      | Course 1 | C1        | 0        | 1                |
15
    And the following "course enrolments" exist:
16
      | user | course | role           |
17
      | student1 | C1 | student        |
18
      | teacher1 | C1 | editingteacher |
19
    And I enable "chat" "mod" plugin
20
 
21
  Scenario: View automatic completion items
22
    Given I log in as "teacher1"
23
    And the following "activity" exists:
24
      | activity       | chat          |
25
      | course         | C1            |
26
      | name           | Music history |
27
      | section        | 1             |
28
      | completion     | 2             |
29
      | completionview | 1             |
30
    And I am on "Course 1" course homepage
31
    # Teacher view.
32
    And I am on the "Music history" Activity page
33
    And "Music history" should have the "View" completion condition
34
    And I log out
35
    # Student view.
36
    And I am on the "Music history" Activity page logged in as student1
37
    Then the "View" completion condition of "Music history" is displayed as "done"
38
 
39
  @javascript
40
  Scenario: Use manual completion
41
    Given I log in as "teacher1"
42
    And the following "activity" exists:
43
      | activity       | chat          |
44
      | course         | C1            |
45
      | name           | Music history |
46
      | section        | 1             |
47
      | completion     | 1             |
48
    And I am on "Course 1" course homepage
49
    # Teacher view.
50
    And "Music history" should have the "Mark as done" completion condition
51
    And I log out
52
    # Student view.
53
    And I am on the "Music history" Activity page logged in as student1
54
    Then the manual completion button of "Music history" is displayed as "Mark as done"
55
    And I toggle the manual completion state of "Music history"
56
    And the manual completion button of "Music history" is displayed as "Done"