Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_completion
2
Feature: Set completion of other courses as criteria for completion of current course
3
  In order to set completion of other courses as criteria for completion of current course
4
  As a user
5
  I want to select the prerequisite courses in completion settings
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | enablecompletion |
10
      | Course 1 | C1        | 0        | 1                |
11
      | Course 2 | C2        | 0        | 1                |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email                |
14
      | student1 | Student   | One      | student1@example.com |
15
    And the following "course enrolments" exist:
16
      | user     | course | role    |
17
      | student1 | C1     | student |
18
 
19
  @javascript
20
  Scenario: Set completion of prerequisite course as completion criteria of current course
21
    When I log in as "admin"
22
    And I am on "Course 1" course homepage with editing mode on
23
    And I navigate to "Course completion" in current page administration
24
    And I click on "Condition: Completion of other courses" "link"
25
    And I set the field "Courses available" to "Course 2"
26
    And I press "Save changes"
27
    And I add the "Course completion status" block
28
    And I click on "View course report" "link" in the "Course completion status" "block"
29
    Then I should see "Course 2" in the "completion-progress" "table"
30
    And I should see "Student One" in the "completion-progress" "table"