From cb8a75577e32dd4a372d7e1aa1fcf8efa2633079 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Fri, 30 Mar 2018 14:44:03 -0400 Subject: [PATCH] Add tests for hinting with --first --- tests/end2end/features/hints.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index a1c4d0bde..c3b857bc4 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -509,3 +509,17 @@ Feature: Using hints And I press the key "hello" And I press the key "" Then data/hello.txt should be loaded + + Scenario: Using --first with normal links + When I open data/hints/html/simple.html + And I hint with args "all --first" + Then data/hello.txt should be loaded + + Scenario: Using --first with inputs + When I open data/hints/input.html + And I hint with args "inputs --first" + And I wait for "Entering mode KeyMode.insert (reason: clicking input)" in the log + # ensure we clicked the first element + And I run :jseval console.log(document.activeElement.id == "qute-input"); + And I run :leave-mode + Then the javascript message "true" should be logged