From 806a85f19dea92b16007d0b4c7f94a28e8023310 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 20 Nov 2020 13:56:34 +0800 Subject: [PATCH] MDL-70148 behat: Remove user menu test This test is unreliable because we are unable to wait for pending JS. On slower systems it can take a while for the relevant JS to load, and the step to start working. This issue only affects 3.5. --- admin/tool/behat/tests/behat/keyboard.feature | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/admin/tool/behat/tests/behat/keyboard.feature b/admin/tool/behat/tests/behat/keyboard.feature index 76fc62c5c79..98308797520 100644 --- a/admin/tool/behat/tests/behat/keyboard.feature +++ b/admin/tool/behat/tests/behat/keyboard.feature @@ -28,21 +28,6 @@ Feature: Verify that keyboard steps work as expected And I press the shift tab key And the focused element is "Username" "field" - @javascript - Scenario: Using the arrow keys allows me to navigate through menus - Given the following "users" exist: - | username | email | firstname | lastname | - | saffronr | saffron.rutledge@example.com | Saffron | Rutledge | - And I log in as "saffronr" - And I click on "Saffron Rutledge" "link" in the ".usermenu" "css_element" - # The version of Boost used in Moodle 3.5 does not have any pendingJS checks and it is not possible to add them. - # We need to use the poor-person's alternative and fall back to a short wait to allow the menu to open before - # interacting with it. - # This may still allow for failures on extremely slow systems but the risk is extremely minimal. - And I wait "1" seconds - When I press the up key - Then the focused element is "Log out" "link" - @javascript Scenario: The escape key can be used to close a dialogue Given the following "course" exists: