From e121bd764fb056fe335e6d71207b34533dd0a613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Wed, 16 Mar 2016 21:47:58 +0100 Subject: [PATCH] hints: add another iframe test --- tests/integration/data/hints/iframe_target.html | 14 ++++++++++++++ tests/integration/features/hints.feature | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/integration/data/hints/iframe_target.html diff --git a/tests/integration/data/hints/iframe_target.html b/tests/integration/data/hints/iframe_target.html new file mode 100644 index 000000000..db8afad27 --- /dev/null +++ b/tests/integration/data/hints/iframe_target.html @@ -0,0 +1,14 @@ + + + + + + Opening links in a specific iframe + + + +

+ A link to be opened in the iframe above. +

+ + diff --git a/tests/integration/features/hints.feature b/tests/integration/features/hints.feature index 8b58ad3f9..3db462371 100644 --- a/tests/integration/features/hints.feature +++ b/tests/integration/features/hints.feature @@ -28,3 +28,17 @@ Feature: Using hints And I run :hint links normal And I run :follow-hint a Then "acceptNavigationRequest, url http://localhost:*/data/hello2.txt, type NavigationTypeLinkClicked, *" should be logged + + Scenario: Opening a link inside a specific iframe + When I open data/hints/iframe_target.html + And I run :hint links normal + And I run :follow-hint a + Then "acceptNavigationRequest, url http://localhost:*/data/hello.txt, type NavigationTypeLinkClicked, *" should be logged + + Scenario: Opening a link with specific target frame in a new tab + When I open data/hints/iframe_target.html + And I run :hint links tab + And I run :follow-hint a + Then the following tabs should be open: + - data/hints/iframe_target.html + - data/hello.txt (active)