From f4f926cdca2019aee9674070f8a34430f57937b1 Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Wed, 30 Mar 2016 19:48:47 +0200 Subject: [PATCH] Add integration tests for current target hints --- tests/integration/data/hints/link_blank.html | 10 ++++++++++ tests/integration/features/hints.feature | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/integration/data/hints/link_blank.html diff --git a/tests/integration/data/hints/link_blank.html b/tests/integration/data/hints/link_blank.html new file mode 100644 index 000000000..f738e61dc --- /dev/null +++ b/tests/integration/data/hints/link_blank.html @@ -0,0 +1,10 @@ + + + + + A link to use hints on + + + Follow me! + + diff --git a/tests/integration/features/hints.feature b/tests/integration/features/hints.feature index d95cdf868..982fb57ef 100644 --- a/tests/integration/features/hints.feature +++ b/tests/integration/features/hints.feature @@ -18,3 +18,20 @@ Feature: Using hints And I run :hint links normal And I run :follow-hint xyz Then the error "No hint xyz!" should be shown + + Scenario: Following a hint and force to open in current tab. + When I open data/hints/link.html + And I run :hint links current + And I run :follow-hint a + And I wait until data/hello.txt is loaded + Then the following tabs should be open: + - data/hello.txt (active) + + Scenario: Following a hint and allow to open in new tab. + When I open data/hints/link_blank.html + And I run :hint links normal + And I run :follow-hint a + And I wait until data/hello.txt is loaded + Then the following tabs should be open: + - data/hints/link_blank.html + - data/hello.txt (active)