From ed544dd0f3d3aab9eace0f887cdb6a72fd7772c9 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 23 Jan 2023 16:18:34 +0800 Subject: [PATCH] MDL-76587 behat: make grading page wider to avoid 'out of bounds' fail This is because on classic theme the navigation block pushes the content to the right and once behat changes the grades the 'Save changes' button is no longer visible. --- grade/tests/behat/grade_aggregation.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grade/tests/behat/grade_aggregation.feature b/grade/tests/behat/grade_aggregation.feature index c7508f08930..79c028e4dc7 100644 --- a/grade/tests/behat/grade_aggregation.feature +++ b/grade/tests/behat/grade_aggregation.feature @@ -433,6 +433,8 @@ Feature: We can use calculated grade totals | Rescale existing grades | No | | Maximum grade | 200 | | Extra credit | 0 | + # Change window size to ultra-wide to avoid 'out-of-bounds' random failures. + And I change window size to "5120x2160" And I give the grade "21.00" to the user "Student 1" for the grade item "Manual item 2" And I press "Save changes" And I give the grade "20.00" to the user "Student 1" for the grade item "Manual item 2" @@ -444,6 +446,8 @@ Feature: We can use calculated grade totals | Rescale existing grades | No | | Maximum grade | 100 | | Extra credit | 0 | + # Change window size to ultra-wide to avoid 'out-of-bounds' random failures. + And I change window size to "5120x2160" And I give the grade "21.00" to the user "Student 1" for the grade item "Manual item 2" And I press "Save changes" And I give the grade "20.00" to the user "Student 1" for the grade item "Manual item 2"