From e7367bd949a7ad85327e27f4cec0858a3ec666ff Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Thu, 11 Aug 2016 02:26:48 +0200 Subject: [PATCH] Make :insert-text test platform-independent The test for inserting text at a specific position failed because doesn't behave the same on Windows and Linux. This changes it to move the cursor using other keys. --- tests/end2end/features/yankpaste.feature | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/end2end/features/yankpaste.feature b/tests/end2end/features/yankpaste.feature index 8c02612a0..2b6a84cb7 100644 --- a/tests/end2end/features/yankpaste.feature +++ b/tests/end2end/features/yankpaste.feature @@ -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 "" - And I press the key "" - And I press the key "" + And I press the key "" + And I press the key "" 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