diff --git a/tests/end2end/data/hints/link_input.html b/tests/end2end/data/hints/link_input.html new file mode 100644 index 000000000..56d02433c --- /dev/null +++ b/tests/end2end/data/hints/link_input.html @@ -0,0 +1,25 @@ + + + + + + Simple link and input + + + + Follow me! +
+ With padding: +
+ With existing text (logs to JS):: +
+ + diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index c3b857bc4..7805082ad 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -203,6 +203,17 @@ Feature: Using hints And I run :fake-key new Then the javascript message "contents: existingnew" should be logged + Scenario: Typing input with existing text after opening a bg tab + When I open data/hints/link_input.html + And I run :click-element id qute-input-existing + And I wait for "Entering mode KeyMode.insert *" in the log + And I run :leave-mode + And I hint with args "all tab-bg" and follow a + And I wait until data/hello.txt is loaded + And I run :enter-mode insert + And I run :fake-key -g new + Then the javascript message "contents: existingnew" should be logged + ### iframes Scenario: Using :follow-hint inside an iframe When I open data/hints/iframe.html