MDL-71912 behat: Updating various tests using assign steps.

This commit is contained in:
Adrian Greeve
2021-11-09 11:24:08 +08:00
committed by abgreeve
parent e75eb8481d
commit b72fa5fbae
6 changed files with 11 additions and 11 deletions
@@ -110,7 +110,7 @@ Feature: availability_grade
When I am on the "A1" "assign activity" page logged in as teacher1
# Give the assignment 40%.
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
# Pick the grade link in the row that has [email protected] in it.
And I click on "Grade" "link" in the "s@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
@@ -61,7 +61,7 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript
Scenario: Update course completion when teacher grades a single assignment
Given 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 follow "View all submissions"
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
@@ -90,7 +90,7 @@ Feature: Allow to mark course as completed without cron for activity completion
And I set the field "Assignment - Test assignment name2" to "1"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
@@ -101,7 +101,7 @@ Feature: Allow to mark course as completed without cron for activity completion
And I should see "Status: In progress"
And I log out
And I am on the "Test assignment name2" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
@@ -55,7 +55,7 @@ Feature: Restrict activity availability through grade conditions
And I log out
And I am on the "Grade assignment" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
And I click on "Grade" "link" in the "Student First" "table_row"
And I set the following fields to these values:
| Grade | 21 |
@@ -88,7 +88,7 @@ Feature: Restrict sections availability through completion or grade conditions
And I should see "Submitted for grading"
And I log out
And I am on the "Grade assignment" "assign activity" page logged in as teacher1
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
And I click on "Grade" "link" in the "Student First" "table_row"
And I set the following fields to these values:
| Grade | 21 |
@@ -106,7 +106,7 @@ Feature: Using the activity grade form element
| grade[modgrade_scale] | ABCDEF |
And I press "Save and display"
And I am on the "Test assignment name" "assign activity" page
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "C"
And I press "Save changes"
+4 -4
View File
@@ -69,7 +69,7 @@ Feature: Initials bar
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | TestAssignment | Test assignment description | 0 | 0 |
And I am on the "assign1" "Activity" page logged in as "teacher"
When I navigate to "View all submissions" in current page administration
When I follow "View all submissions"
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
@@ -94,7 +94,7 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should not see "Cstudent Cstudent"
And I am on the "assign1" "Activity" page
When I navigate to "View all submissions" in current page administration
When I follow "View all submissions"
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
@@ -124,7 +124,7 @@ Feature: Initials bar
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | TestAssignment | Test assignment description | 0 | 0 |
And I am on the "assign1" "Activity" page logged in as "teacher"
When I navigate to "View all submissions" in current page administration
When I follow "View all submissions"
And I select "View gradebook" from the "jump" singleselect
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
@@ -150,7 +150,7 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should not see "Cstudent Cstudent"
And I am on the "assign1" "Activity" page
When I navigate to "View all submissions" in current page administration
When I follow "View all submissions"
And I select "View gradebook" from the "jump" singleselect
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"