From d467f87bd76661fa5edf2450829c57e1cf583bc5 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 17 Nov 2020 20:02:01 +0800 Subject: [PATCH] MDL-66979 behat: Work around weird gradebook focus behaviour I can't expand this one in a sane fashion but the older JS is doing some weird and wonderful things with focus. The only way I could get this to behave correctly was to move away from the field, move back to it, and then move away again. Other combinations failed in different browsers for different reasons. --- grade/report/grader/tests/behat/ajax_grader.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grade/report/grader/tests/behat/ajax_grader.feature b/grade/report/grader/tests/behat/ajax_grader.feature index 3500be14ba0..431091fef47 100644 --- a/grade/report/grader/tests/behat/ajax_grader.feature +++ b/grade/report/grader/tests/behat/ajax_grader.feature @@ -65,6 +65,8 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe And I click on student "Student 3" for grade item "Item SU" And I set the field "ajaxgrade" to "Very good" And I press the shift tab key + And I press the tab key + And I press the shift tab key And I click on student "Student 3" for grade item "Item VU" And I set the field "ajaxgrade" to "50" And I press the enter key