Línea 44... |
Línea 44... |
44 |
| completionentries | 2 |
|
44 |
| completionentries | 2 |
|
45 |
And I press "Save and display"
|
45 |
And I press "Save and display"
|
46 |
And I log out
|
46 |
And I log out
|
Línea 47... |
Línea 47... |
47 |
|
47 |
|
48 |
@javascript
|
48 |
@javascript
|
49 |
Scenario: View automatic completion items as a teacher
|
49 |
Scenario: Database module completion conditions are displayed regardless of the view
|
50 |
# We add an entry to let the user change to a different view.
|
50 |
# We add an entry to let the user change to a different view.
|
51 |
Given the following "mod_data > entries" exist:
|
51 |
Given the following "mod_data > entries" exist:
|
52 |
| database | user | Instrument types |
|
52 |
| database | user | Instrument types |
|
53 |
| mh1 | teacher1 | Drums |
|
53 |
| mh1 | teacher1 | Drums |
|
Línea 61... |
Línea 61... |
61 |
And "Music history" should have the "Make entries: 2" completion condition
|
61 |
And "Music history" should have the "Make entries: 2" completion condition
|
62 |
And "Music history" should have the "Receive a grade" completion condition
|
62 |
And "Music history" should have the "Receive a grade" completion condition
|
63 |
And "Music history" should have the "Receive a passing grade" completion condition
|
63 |
And "Music history" should have the "Receive a passing grade" completion condition
|
Línea 64... |
Línea 64... |
64 |
|
64 |
|
65 |
@javascript
|
65 |
@javascript
|
66 |
Scenario: View automatic completion items as a failing student
|
66 |
Scenario: Student cannot complete a database activity if one of the conditions are not met
|
67 |
Given I am on the "Music history" "data activity" page logged in as student1
|
67 |
Given I am on the "Music history" "data activity" page logged in as student1
|
68 |
And the "View" completion condition of "Music history" is displayed as "done"
|
68 |
And the "View" completion condition of "Music history" is displayed as "done"
|
69 |
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
|
69 |
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
|
70 |
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
|
70 |
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
|
Línea 100... |
Línea 100... |
100 |
And I log in as "teacher1"
|
100 |
And I log in as "teacher1"
|
101 |
And I am on "Course 1" course homepage
|
101 |
And I am on "Course 1" course homepage
|
102 |
And "Vinnie Student1" user has completed "Music history" activity
|
102 |
And "Vinnie Student1" user has completed "Music history" activity
|
Línea 103... |
Línea 103... |
103 |
|
103 |
|
104 |
@javascript
|
104 |
@javascript
|
105 |
Scenario: View automatic completion items as a passing student
|
105 |
Scenario: Student can complete a database activity when all conditions are met
|
106 |
Given I am on the "Music history" "data activity" page logged in as student1
|
106 |
Given I am on the "Music history" "data activity" page logged in as student1
|
107 |
And the "View" completion condition of "Music history" is displayed as "done"
|
107 |
And the "View" completion condition of "Music history" is displayed as "done"
|
108 |
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
|
108 |
And the "Make entries: 2" completion condition of "Music history" is displayed as "todo"
|
109 |
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
|
109 |
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
|