| Línea 44... |
Línea 44... |
| 44 |
|
44 |
|
| 45 |
@javascript
|
45 |
@javascript
|
| 46 |
Scenario: Flag a quiz during and after quiz attempt
|
46 |
Scenario: Flag a quiz during and after quiz attempt
|
| 47 |
Given I am on the "Quiz 1" "quiz activity" page logged in as student1
|
47 |
Given I am on the "Quiz 1" "quiz activity" page logged in as student1
|
| 48 |
And I press "Attempt quiz"
|
48 |
And I press "Attempt quiz"
|
| 49 |
# flag question 1
|
49 |
When I click on "Flag question" "button" in the "First question" "question"
|
| 50 |
When I press "Flag question"
|
50 |
Then I should see "Remove flag" in the "First question" "question"
|
| 51 |
# Confirm question 1 is flagged in navigation
|
51 |
# Confirm question 1 is flagged in navigation
|
| 52 |
Then "Question 1 This page Flagged" "link" should exist
|
- |
|
| 53 |
# Confirm that link in question 1 is changed to Remove flag
|
- |
|
| 54 |
And I should see "Remove flag" in the "First question" "question"
|
52 |
And "Question 1 This page Flagged" "link" should exist
|
| 55 |
# Answer questions
|
53 |
# Answer questions
|
| 56 |
And I click on "True" "radio" in the "First question" "question"
|
54 |
And I click on "True" "radio" in the "First question" "question"
|
| 57 |
And I press "Next page"
|
55 |
And I press "Next page"
|
| 58 |
And I click on "True" "radio" in the "Second question" "question"
|
56 |
And I click on "True" "radio" in the "Second question" "question"
|
| Línea 62... |
Línea 60... |
| 62 |
And I press "Submit all and finish"
|
60 |
And I press "Submit all and finish"
|
| 63 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
61 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
| 64 |
# Confirm only flagged question is flagged
|
62 |
# Confirm only flagged question is flagged
|
| 65 |
And I should see "Remove flag" in the "First question" "question"
|
63 |
And I should see "Remove flag" in the "First question" "question"
|
| 66 |
And I should see "Flag question" in the "Second question" "question"
|
64 |
And I should see "Flag question" in the "Second question" "question"
|
| 67 |
And I should see "Flag question" in the "Third question" "question"
|
- |
|
| 68 |
And I click on "Flagged" "button" in the "Second question" "question"
|
65 |
And I click on "Flagged" "button" in the "Second question" "question"
|
| - |
|
66 |
And I should see "Remove flag" in the "Second question" "question"
|
| - |
|
67 |
And I should see "Flag question" in the "Third question" "question"
|
| 69 |
And I am on the "Quiz 1" "mod_quiz > Grades report" page logged in as teacher1
|
68 |
And I am on the "Quiz 1" "mod_quiz > Grades report" page logged in as teacher1
|
| 70 |
And "Flagged" "icon" should exist in the "Student 1" "table_row"
|
69 |
And "Flagged" "icon" should exist in the "Student 1" "table_row"
|
| 71 |
And I am on the "Quiz 1" "mod_quiz > Responses report" page
|
70 |
And I am on the "Quiz 1" "mod_quiz > Responses report" page
|
| 72 |
And "Flagged" "icon" should exist in the "Student 1" "table_row"
|
71 |
And "Flagged" "icon" should exist in the "Student 1" "table_row"
|
| - |
|
72 |
And I am on the "Quiz 1 > student1 > Attempt 1" "mod_quiz > Attempt review" page
|
| - |
|
73 |
And I should see "Remove flag" in the "First question" "question"
|
| - |
|
74 |
And I should see "Remove flag" in the "Second question" "question"
|
| - |
|
75 |
And I should see "Flag question" in the "Third question" "question"
|