Make :insert-text test platform-independent
The test for inserting text at a specific position failed because <Ctrl+Right> doesn't behave the same on Windows and Linux. This changes it to move the cursor using other keys.
This commit is contained in:
parent
28430a4e43
commit
e7367bd949
@ -248,11 +248,11 @@ Feature: Yanking and pasting.
|
|||||||
And I wait for "Clicked editable element!" in the log
|
And I wait for "Clicked editable element!" in the log
|
||||||
# Move to the beginning and two words to the right
|
# Move to the beginning and two words to the right
|
||||||
And I press the keys "<Home>"
|
And I press the keys "<Home>"
|
||||||
And I press the key "<Ctrl+Right>"
|
And I press the key "<Right>"
|
||||||
And I press the key "<Ctrl+Right>"
|
And I press the key "<Right>"
|
||||||
And I run :insert-text Hello world
|
And I run :insert-text Hello world
|
||||||
# Compare
|
# Compare
|
||||||
Then the text field should contain "one twoHello world three four"
|
Then the text field should contain "onHello worlde two three four"
|
||||||
|
|
||||||
Scenario: Inserting text into a text field with undo
|
Scenario: Inserting text into a text field with undo
|
||||||
When I open data/paste_primary.html
|
When I open data/paste_primary.html
|
||||||
|
Loading…
Reference in New Issue
Block a user