11 |
efrain |
1 |
@core @core_course
|
|
|
2 |
Feature: Students can view their grades and activity reports
|
|
|
3 |
In order for students to view their grades and activity reports
|
|
|
4 |
As a teacher
|
|
|
5 |
I should be able to change the report display settings
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | 1 | student1@example.com |
|
|
|
11 |
|
|
|
12 |
Scenario Outline: Grade reports can be displayed or hidden to students
|
|
|
13 |
Given the following "courses" exist:
|
|
|
14 |
| fullname | shortname | showgrades |
|
|
|
15 |
| Course 1 | C1 | <gradevisibility> |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| student1 | C1 | student |
|
|
|
19 |
When I am on the "student1" "user > profile" page logged in as student1
|
|
|
20 |
And I click on "Course 1" "link"
|
|
|
21 |
Then I <gradelinkvisibility> see "Grades overview"
|
|
|
22 |
|
|
|
23 |
Examples:
|
|
|
24 |
| gradevisibility | gradelinkvisibility |
|
|
|
25 |
| 1 | should |
|
|
|
26 |
| 0 | should not |
|
|
|
27 |
|
|
|
28 |
Scenario Outline: Activity reports can be displayed or hidden to students
|
|
|
29 |
Given the following "courses" exist:
|
|
|
30 |
| fullname | shortname | showreports |
|
|
|
31 |
| Course 1 | C1 | <reportvisibility> |
|
|
|
32 |
And the following "course enrolments" exist:
|
|
|
33 |
| user | course | role |
|
|
|
34 |
| student1 | C1 | student |
|
|
|
35 |
When I am on the "student1" "user > profile" page logged in as student1
|
|
|
36 |
And I click on "Course 1" "link"
|
|
|
37 |
Then I <reportlinkvisibility> see "Today's logs"
|
|
|
38 |
And I <reportlinkvisibility> see "All logs"
|
|
|
39 |
And I <reportlinkvisibility> see "Outline report"
|
|
|
40 |
And I <reportlinkvisibility> see "Complete report"
|
|
|
41 |
|
|
|
42 |
Examples:
|
|
|
43 |
| reportvisibility | reportlinkvisibility |
|
|
|
44 |
| 1 | should |
|
|
|
45 |
| 0 | should not |
|