MDL-71209 mod_assign: fix anonymous submission behat

This commit is contained in:
Ferran Recio 2021-08-23 11:38:07 +02:00
parent 19b1f2f3d4
commit 1389487a1c

View File

@ -31,9 +31,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
| Anonymous submissions | Yes |
And I log out
# Add a submission.
And I log in as "student1"
And I am on "Course 1" course homepage
When I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as "student1"
Then I should not see "Feedback"
And I should see "Not marked" in the "Grading status" "table_row"
And I press "Add submission"
@ -42,9 +40,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I press "Save changes"
And I log out
# Add another submission.
And I log in as "student2"
And I am on "Course 1" course homepage
When I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as "student2"
Then I should not see "Feedback"
And I should see "Not marked" in the "Grading status" "table_row"
And I press "Add submission"
@ -53,9 +49,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I press "Save changes"
And I log out
# Mark the submissions.
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I navigate to "View all submissions" in current page administration
Then I should see "Not marked" in the "I'm student1's submission" "table_row"
And I click on "Grade" "link" in the "I'm student1's submission" "table_row"
@ -64,7 +58,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Feedback comments" to "Great job!"
And I set the field "Notify students" to "0"
And I press "Save changes"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
Then I should see "Not marked" in the "I'm student2's submission" "table_row"
And I click on "Grade" "link" in the "I'm student2's submission" "table_row"
@ -73,7 +67,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Feedback comments" to "Great job!"
And I set the field "Notify students" to "0"
And I press "Save changes"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
Then I should see "In review" in the "I'm student1's submission" "table_row"
And I should see "In review" in the "I'm student2's submission" "table_row"
@ -88,7 +82,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Marking workflow state" to "Released"
And I set the field "Notify students" to "No"
And I press "Save changes"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
Then I should see "Released" in the "I'm student1's submission" "table_row"
And I should see "Released" in the "I'm student2's submission" "table_row"
@ -105,9 +99,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
Then I should not see "50"
And I should not see "Great job!"
And I log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I navigate to "View all submissions" in current page administration
And I set the field "Grading action" to "Reveal student identities"
And I press "Continue"
@ -138,7 +130,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Marking workflow state" to "Released"
And I set the field "Notify students" to "No"
And I press "Save changes"
And I follow "Test assignment name"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
Then I should see "Released" in the "Student 1" "table_row"
And I should see "Released" in the "Student 2" "table_row"