Skip to content

Commit

Permalink
MDL-71912 behat: Updating various tests using assign steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Nov 9, 2021
1 parent e75eb84 commit b72fa5f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" "table_row"
And I set the field "Grade out of 100" to "40"
Expand Down
6 changes: 3 additions & 3 deletions completion/tests/behat/activity_completion_criteria.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
Expand Down Expand Up @@ -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 "[email protected]" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
Expand All @@ -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 "[email protected]" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
Expand Down
2 changes: 1 addition & 1 deletion completion/tests/behat/restrict_activity_by_grade.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion lib/form/tests/behat/modgrade_validation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions lib/tests/behat/alpha_chooser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit b72fa5f

Please sign in to comment.