Add a test for :click-element with --target
This commit is contained in:
parent
e0af03db80
commit
4719e11e78
@ -8,5 +8,6 @@
|
|||||||
<span>Duplicate</span>
|
<span>Duplicate</span>
|
||||||
<span>Duplicate</span>
|
<span>Duplicate</span>
|
||||||
<form><input id='qute-input'></input></form>
|
<form><input id='qute-input'></input></form>
|
||||||
|
<a href="/data/hello.txt" id='link'>link</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -571,3 +571,12 @@ Feature: Various utility commands.
|
|||||||
When I open data/click_element.html
|
When I open data/click_element.html
|
||||||
And I run :click-element id qute-input
|
And I run :click-element id qute-input
|
||||||
Then "Clicked editable element!" should be logged
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user