hints: add another iframe test
This commit is contained in:
parent
164df521c1
commit
e121bd764f
14
tests/integration/data/hints/iframe_target.html
Normal file
14
tests/integration/data/hints/iframe_target.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Opening links in a specific iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="my-iframe"></iframe>
|
||||
<p>
|
||||
A <a href="/data/hello.txt" target="my-iframe">link</a> to be opened in the iframe above.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user