Línea 34... |
Línea 34... |
34 |
@javascript
|
34 |
@javascript
|
35 |
Scenario: Report works when there are no attempts
|
35 |
Scenario: Report works when there are no attempts
|
36 |
When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
36 |
When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
37 |
Then I should see "Attempts: 0"
|
37 |
Then I should see "Attempts: 0"
|
38 |
And I should see "Nothing to display"
|
38 |
And I should see "Nothing to display"
|
39 |
And I set the field "Attempts from" to "enrolled users who have not attempted the quiz"
|
39 |
And I set the field "Attempts from" to "enrolled users who have a quiz attempt"
|
Línea 40... |
Línea 40... |
40 |
|
40 |
|
41 |
@javascript
|
41 |
@javascript
|
42 |
Scenario: Report works when there are attempts
|
42 |
Scenario: Report works when there are attempts
|
43 |
Given user "student1" has started an attempt at quiz "Quiz 1"
|
43 |
Given user "student1" has started an attempt at quiz "Quiz 1"
|
Línea 49... |
Línea 49... |
49 |
| 1 | 3.0 |
|
49 |
| 1 | 3.0 |
|
50 |
And user "student1" has checked answers in their attempt at quiz "Quiz 1":
|
50 |
And user "student1" has checked answers in their attempt at quiz "Quiz 1":
|
51 |
| slot | response |
|
51 |
| slot | response |
|
52 |
| 1 | 3.14 |
|
52 |
| 1 | 3.14 |
|
53 |
And user "student1" has finished an attempt at quiz "Quiz 1"
|
53 |
And user "student1" has finished an attempt at quiz "Quiz 1"
|
54 |
|
- |
|
55 |
When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
54 |
When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
56 |
Then I should see "Attempts: 1"
|
55 |
Then I should see "Attempts: 1"
|
57 |
And I should see "Student One"
|
56 |
And I should see "Student One"
|
58 |
And I should not see "Student Two"
|
57 |
And I should not see "Student Two"
|
59 |
And I set the field "Attempts from" to "enrolled users who have, or have not, attempted the quiz"
|
58 |
And I set the field "Attempts from" to "enrolled users who have, or do not have, a quiz attempt"
|
60 |
And I set the field "Which tries" to "All tries"
|
59 |
And I set the field "Which tries" to "All tries"
|
61 |
And I should see "Response 1a"
|
60 |
And I should see "Response 1a"
|
62 |
And I press "Show report"
|
61 |
And I press "Show report"
|
63 |
And "Student OneReview attempt" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "1.0"
|
62 |
And "Student OneReview attempt" row "Response 1a" column of "responses" table should contain "1.0"
|
64 |
And "Student OneReview attempt" row "Status" column of "responses" table should contain ""
|
63 |
And "Student OneReview attempt" row "Status" column of "responses" table should contain ""
|
65 |
And "Finished" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "responses" table should contain "33.33"
|
64 |
And "Finished" row "Grade/100.00" column of "responses" table should contain "33.33"
|
66 |
And "Finished" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "3.14"
|
65 |
And "Finished" row "Response 1a" column of "responses" table should contain "3.14"
|
67 |
And "Student Two" row "Status" column of "responses" table should contain "-"
|
66 |
And "Student Two" row "Status" column of "responses" table should contain "-"
|
68 |
And "Student Two" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "-"
|
67 |
And "Student Two" row "Response 1a" column of "responses" table should contain "-"
|
Línea 69... |
Línea 68... |
69 |
|
68 |
|
70 |
@javascript
|
69 |
@javascript
|
71 |
Scenario: Report does not allow strange combinations of options
|
70 |
Scenario: Report does not allow strange combinations of options
|
72 |
Given I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
71 |
Given I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
73 |
And the "Which tries" "select" should be enabled
|
72 |
And the "Which tries" "select" should be enabled
|
74 |
When I set the field "Attempts from" to "enrolled users who have not attempted the quiz"
|
73 |
When I set the field "Attempts from" to "enrolled users who do not have a quiz attempt"
|