From 7a9f80bf9a8f47355709df8c8fa7222cedfbcba6 Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Mon, 31 Oct 2016 18:01:25 +0100 Subject: [PATCH] Use jseval to test insert-text with js disabled --- 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 f67c65103..5cace9f7e 100644 --- a/tests/end2end/features/yankpaste.feature +++ b/tests/end2end/features/yankpaste.feature @@ -260,14 +260,14 @@ Feature: Yanking and pasting. When I set general -> log-javascript-console to info And I set content -> allow-javascript to false And I open data/paste_primary.html + And I run :jseval document.getElementById('qute-textarea').addEventListener('input', function() { console.log("textarea contents: " + document.getElementById('qute-textarea').value); }); And I run :click-element id qute-textarea And I wait for "Clicked editable element!" in the log And I run :insert-text Hello world - And I press the keys "" - And I run :yank selection + # Enable javascript again for the other tests And I set content -> allow-javascript to true # Compare - Then the clipboard should contain "Hello world" + Then the javascript message "textarea contents: Hello world" should be logged Scenario: Inserting text into a text field at specific position When I set general -> log-javascript-console to info