Add a test for :click-element with --target

This commit is contained in:
Florian Bruhin 2016-08-18 15:45:29 +02:00
parent e0af03db80
commit 4719e11e78
2 changed files with 10 additions and 0 deletions

View File

@ -8,5 +8,6 @@
<span>Duplicate</span>
<span>Duplicate</span>
<form><input id='qute-input'></input></form>
<a href="/data/hello.txt" id='link'>link</a>
</body>
</html>

View File

@ -571,3 +571,12 @@ Feature: Various utility commands.
When I open data/click_element.html
And I run :click-element id qute-input
Then "Clicked editable element!" should be logged
Scenario: Clicking an element with tab target
When I open data/click_element.html
And I run :tab-only
And I run :click-element id link --target=tab
Then data/hello.txt should be loaded
And the following tabs should be open:
- data/click_element.html
- data/hello.txt (active)