From 2d6c443b1a476c91b0cb9c5e6a0aef40ec7503ca Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Fri, 21 Oct 2016 00:42:06 +0200 Subject: [PATCH] Add test for insert-text with javascript disabled --- tests/end2end/features/yankpaste.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/end2end/features/yankpaste.feature b/tests/end2end/features/yankpaste.feature index bc9bc7ab6..cf22e205b 100644 --- a/tests/end2end/features/yankpaste.feature +++ b/tests/end2end/features/yankpaste.feature @@ -256,6 +256,16 @@ Feature: Yanking and pasting. # Compare Then the javascript message "textarea contents: Hello world" should be logged + Scenario: Inserting text into an empty text field with javascript disabled + 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 :click-element id qute-textarea + And I wait for "Clicked editable element!" in the log + And I run :insert-text Hello world + # Compare + 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 And I open data/paste_primary.html