From c34dc466b675aa8efcaf5a54271dfcb3f1e8c765 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 d9abd0485c3..341a1f78d89 100644 --- a/grade/tests/behat/grade_aggregation.feature +++ b/grade/tests/behat/grade_aggregation.feature @@ -421,6 +421,8 @@ Feature: We can use calculated grade totals | Extra credit | 0 | | Maximum grade | 200 | | Rescale existing grades | No | + # 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" @@ -432,6 +434,8 @@ Feature: We can use calculated grade totals | Extra credit | 0 | | Maximum grade | 100 | | Rescale existing grades | No | + # 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"