MDL-71912 core_grading: Update behat step definitions

This commit is contained in:
Mihail Geshoski
2021-11-09 11:24:08 +08:00
committed by abgreeve
parent 93b3bf6ed3
commit d06da2d1a0
7 changed files with 10 additions and 12 deletions
@@ -99,7 +99,7 @@ Feature: Marking guides can be created and edited
When I press "Save changes"
And I follow "Edit settings"
And I follow "Test assignment 1 name"
And I navigate to "View all submissions" in current page administration
And I follow "View all submissions"
# Checking that the user grade is correct.
Then I should see "80" in the "Student 1" "table_row"
And I log out
+2 -4
View File
@@ -87,8 +87,7 @@ class behat_grading extends behat_base {
$this->execute('behat_navigation::go_to_breadcrumb_location', $this->escape($activityname));
$this->execute('behat_navigation::i_navigate_to_in_current_page_administration',
get_string('viewgrading', 'mod_assign'));
$this->execute('behat_general::click_link', get_string('viewgrading', 'mod_assign'));
$this->execute('behat_general::i_click_on_in_the',
array(
@@ -158,8 +157,7 @@ class behat_grading extends behat_base {
$this->execute('behat_forms::press_button', get_string('savechanges'));
$this->execute('behat_general::i_click_on', array($this->escape(get_string('editsettings')), 'link'));
$this->execute('behat_forms::press_button', get_string('cancel'));
$this->execute('behat_navigation::i_navigate_to_in_current_page_administration',
get_string('viewgrading', 'mod_assign'));
$this->execute('behat_general::click_link', get_string('viewgrading', 'mod_assign'));
}
/**
@@ -31,7 +31,7 @@ Feature: We can bulk insert grades for students in a course
Scenario: I can bulk insert grades and check their override flags for grade view.
Given I am on the "Test assignment one" "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 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
@@ -69,7 +69,7 @@ Feature: We can bulk insert grades for students in a course
Scenario: I can bulk insert grades and check their override flags for user view.
Given I am on the "Test assignment two" "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 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
@@ -20,7 +20,7 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
| activity | course | idnumber | name | intro | assignfeedback_comments_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 1 |
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 follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
@@ -24,7 +24,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
And I set the field "Available aggregation types" to "Weighted mean of grades"
And I press "Save changes"
And I am on the "Assignment 1" "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 out of 100" to "80"
And I press "Save and show next"
@@ -58,7 +58,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
@javascript
Scenario: Confirm overridden course total does not get regraded when activity grade is changed
Given I am on the "Assignment 1" "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 out of 100" to "90"
And I press "Save and show next"
+1 -1
View File
@@ -48,7 +48,7 @@ Feature: View gradebook when scales are used
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "EN Letterscale"
And I press "Save and display"
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 "A"
And I press "Save changes"
@@ -44,7 +44,7 @@ Feature: View gradebook when single item scales are used
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "EN Singleitem"
And I press "Save and display"
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 "A"
And I press "Save changes"