Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@report @report_progress
2
Feature: In a course administration page, navigate through report page, test for selector in activity completion
3
  In order to view and override a student's activity completion status
4
  As a teacher
5
  Go to course administration -> Reports -> Activity completion
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format | enablecompletion |
10
      | Course 1 | C1        | topics | 1                |
11
    And the following "activities" exist:
12
      | activity   | name            | intro   | course | idnumber    | section | completion | completionview | completionusegrade | assignsubmission_onlinetext_enabled | submissiondrafts |
13
      | assign     | my assignment   | A1 desc | C1     | assign1     | 0       | 1          | 0              |                    | 0                                   | 0                |
14
      | assign     | my assignment 2 | A2 desc | C1     | assign2     | 0       | 2          | 1              |                    | 0                                   | 0                |
15
      | assign     | my assignment 3 | A3 desc | C1     | assign3     | 0       | 2          | 1              | 1                  | 1                                   | 0                |
16
    And the following "users" exist:
17
      | username | firstname | lastname | email |
18
      | teacher1 | Teacher | One | teacher1@example.com |
19
      | student1 | Student | One | student1@example.com |
20
    And the following "course enrolments" exist:
21
      | user | course | role |
22
      | teacher1 | C1 | editingteacher |
23
      | student1 | C1 | student |
24
 
25
  @javascript
26
  Scenario: Selector should be available in the course acitivity completion page
27
    Given I log in as "admin"
28
    And I am on "Course 1" course homepage
29
    When I navigate to "Reports" in current page administration
30
    And I click on "Activity completion" "link"
31
    Then "Report" "field" should exist in the "tertiary-navigation" "region"
32
    And I should see "Activity completion" in the "tertiary-navigation" "region"
33
 
34
  Scenario: Custom profile fields selected for identity should display on the activity completion report
35
    Given the following "custom profile fields" exist:
36
      | datatype | shortname  | name           |
37
      | text     | frog       | Favourite frog |
38
    And the following "users" exist:
39
      | username | firstname | lastname | profile_field_frog |
40
      | student2 | Student   | Two      | Kermit             |
41
    And the following "course enrolments" exist:
42
      | user     | course | role    |
43
      | student2 | C1     | student |
44
    And the following config values are set as admin:
45
      | showuseridentity | email,profile_field_frog |
46
    When I am on the "C1" "Course" page logged in as "admin"
47
    And I navigate to "Reports" in current page administration
48
    And I click on "Activity completion" "link"
49
    Then I should see "Favourite frog"
50
    Then I should see "Kermit" in the "Student Two" "table_row"