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:
Jan Verbeek 2016-08-11 02:26:48 +02:00
parent 28430a4e43
commit e7367bd949

View File

@ -248,11 +248,11 @@ Feature: Yanking and pasting.
And I wait for "Clicked editable element!" in the log
# Move to the beginning and two words to the right
And I press the keys "<Home>"
And I press the key "<Ctrl+Right>"
And I press the key "<Ctrl+Right>"
And I press the key "<Right>"
And I press the key "<Right>"
And I run :insert-text Hello world
# 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
When I open data/paste_primary.html