-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.4, 2.6.1, 2.7
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-44286_master -
After a couple of days having fun with behat, modal windows and the locked scroll we have something to punish: Syn library, is the library used by the selenium driver to trigger fake native JS events like onchange; when it is included it checks what features are supported, to do it it focuses on fake elements it creates (and removes after playing with them) and moves the scroll bar, this makes the browser position and focused element to change which is causing problems when we have a locked scroll and may cause other problems that we still don't know.
dobedobedoh created an issue in the upstream project (https://github.com/bitovi/syn/issues/30) but the selenium driver for behat is not updating to the last Syn library version so we have to do it in our MoodleSelenium2Driver.
Here we will only update moodlehq/behat-extension version to a new one, the code changes will be in https://github.com/moodlehq/moodle-behat-extension project.