From 5ec224d1f9cda4583108d99037852dd79e395267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Sat, 30 Jan 2016 14:03:54 +0100 Subject: [PATCH] Simplified test for paste-primary command We don't need to move around for this test... --- tests/integration/features/yankpaste.feature | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/integration/features/yankpaste.feature b/tests/integration/features/yankpaste.feature index 33704dfc1..3001a54d3 100644 --- a/tests/integration/features/yankpaste.feature +++ b/tests/integration/features/yankpaste.feature @@ -203,20 +203,16 @@ Feature: Yanking and pasting. Scenario: Pasting the primary selection into a text field with undo When selection is supported And I open data/paste_primary.html - And I run :jseval document.getElementById('qute-textarea').value = 'one two three four'; - And I put " Hello world" into the primary selection # Click the text field And I run :hint all And I run :follow-hint a - # Move to the beginning and after the first word - And I press the keys "" - And I press the key "" # Paste and undo + And I put "This text should be undone" into the primary selection And I run :paste-primary And I press the key "" - # One word to the right - And I press the key "" + # Paste final text + And I put "This text should stay" into the primary selection And I run :paste-primary # Compare And I run :jseval console.log(document.getElementById('qute-textarea').value); - Then the javascript message "one two Hello world three four" should be logged + Then the javascript message "This text should stay" should be logged