Файловый менеджер - Редактировать - /home/harasnat/www/learning/grade/tests/behat/grade_average.feature
Назад
@core @core_grades @javascript Feature: Average grades are displayed in the gradebook In order to check the expected results are displayed As an admin I need to assign grades and check that they display correctly in the gradebook. Background: Given the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | | student1 | Student | 1 | student1@example.com | | student2 | Student | 2 | student2@example.com | | student3 | Student | 3 | student3@example.com | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | | student2 | C1 | student | | student3 | C1 | student | And the following "grade item" exists: | course | C1 | | itemname | Manual item 1 | And the following "grade grades" exist: | gradeitem | user | grade | | Manual item 1 | student1 | 50.00 | | Manual item 1 | student2 | 50.00 | | Manual item 1 | student3 | 50.00 | And the following "course enrolments" exist: | user | course | role | status | | student2 | C1 | student | suspended | # Enable averages And I am on the "Course 1" "grades > course grade settings" page logged in as "admin" And I set the following fields to these values: | Show average | Show | And I press "Save changes" Scenario: Grade a grade item and ensure the results display correctly in the gradebook # Check the admin grade table Given I am on the "Course 1" "grades > Grader report > View" page logged in as "admin" Then I should see "50.00" in the ".avg.r0.lastrow .c1" "css_element" Then I should see "50.00" in the ".avg.r0.lastrow .c2" "css_element" # Check the user grade table When I am on the "Course 1" "grades > user > View" page logged in as "student1" Then I should see "50.00" in the ".level2.column-grade" "css_element" Then I should see "50.00" in the ".level2.column-average" "css_element"
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка