MDL-79493 core_grades: Fix Behat tests.

This commit is contained in:
Ilya Tregubov
2023-09-26 15:49:43 +08:00
parent 440bf51af2
commit 0f4efffb76
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ class grade_edit_tree {
}
$categoryrow->attributes['data-aggregation'] = $category->aggregation;
$categoryrow->attributes['data-grademax'] = $category->grade_item->grademax;
$categoryrow->attributes['data-aggregationcoef'] = $category->grade_item->aggregationcoef;
$categoryrow->attributes['data-aggregationcoef'] = floatval($category->grade_item->aggregationcoef);
$categoryrow->attributes['data-itemid'] = $category->grade_item->id;
$categoryrow->attributes['data-hidden'] = 'false';
foreach ($rowclasses as $class) {
@@ -350,7 +350,7 @@ class grade_edit_tree {
} else {
$gradeitemrow->attributes['data-parent-category'] = $parent_eid;
$gradeitemrow->attributes['data-grademax'] = $object->grademax;
$gradeitemrow->attributes['data-aggregationcoef'] = $object->aggregationcoef;
$gradeitemrow->attributes['data-aggregationcoef'] = floatval($object->aggregationcoef);
}
foreach ($rowclasses as $class) {
$gradeitemrow->attributes['class'] .= ' ' . $class;
@@ -253,7 +253,8 @@ Feature: Teachers can perform bulk actions on grade items and categories in the
And I press tab
And the focused element is "Move" "button" in the "Move items" "dialogue"
When I press the enter key
And I wait to be redirected
And I wait until the page is ready
And I wait "2" seconds
And I press tab key in "region-main" "region"
# Confirm that 'Grade item 1' and 'Grade item 2' have been moved to 'Category 3'
And I click on grade item menu "Grade item 1" of type "gradeitem" on "setup" page