And I log out
# Add a submission.
And I log in as "student1"
- And I click on ".collapsibleregioncaption" "css_element"
- And I should see "Not marked"
And I am on "Course 1" course homepage
When I follow "Test assignment name"
Then I should not see "Feedback"
And I set the following fields to these values:
| Online text | I'm the student's first submission |
And I press "Save changes"
- And I am on homepage
- And ".collapsibleregioncaption" "css_element" should not exist
- And I should not see "Not marked"
And I log out
# Mark the submission.
And I log in as "teacher1"
And I follow "Test assignment name"
And I should see "In review" in the "Grading status" "table_row"
And I should not see "Great job! Lol, not really."
- And I am on homepage
- And ".collapsibleregioncaption" "css_element" should not exist
- And I should not see "In review"
And I log out
# Mark the submission again but set the marking workflow to 'Released'.
And I log in as "teacher1"
And I follow "Test assignment name"
And I should see "Released" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."
- And I am on homepage
- And ".collapsibleregioncaption" "css_element" should not exist
- And I should not see "Released"
And I log out
# Now, change the status from 'Released' to 'In marking' (this will remove the grade from the gradebook).
And I log in as "teacher1"
And I log out
# Add a submission.
And I log in as "student1"
- When I click on ".collapsibleregioncaption" "css_element"
- Then I should see "Not graded"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I should not see "Feedback"
And I follow "Test assignment name"
And I should see "Graded" in the "Grading status" "table_row"
And I should see "Great job! Lol, not really."
- And I am on homepage
- And ".collapsibleregioncaption" "css_element" should not exist
- And I should not see "Graded"
And I log out