-
Improvement
-
Resolution: Fixed
-
Minor
-
3.10.5
-
MOODLE_310_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MDL-72152-master -
There is currently no way to press a key shortcut with a letter key in Behat, such as Ctrl+C or Ctrl+Q.
It is probably not a good idea to do this for triggering browser functionality, but in a local plugin we have some code which uses special shortcuts with letters like this (to be handled via normal javascript on the webpage, cancelling any browser behaviour) and it would be good to test them.
This would probably also allow testing of certain Atto features, for instance.
At present, a step already exists which allows you to press various special keys, e.g.:
And I press the Ctrl Tab key
|
But it only allows special key names (like 'Tab' or 'Enter'), not letters.
I propose changing it to also allow normal keys by specifying a single character:
And I press the Ctrl L key
|
This is a simple change.