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 @@ + + + +
+ ++ 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)