Add integration tests for current target hints
This commit is contained in:
parent
a432102be0
commit
f4f926cdca
10
tests/integration/data/hints/link_blank.html
Normal file
10
tests/integration/data/hints/link_blank.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>A link to use hints on</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/data/hello.txt" target="_blank">Follow me!</a>
|
||||
</body>
|
||||
</html>
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user