Including tests for pinned tab prompt
Duplicate function for "I wait for a prompt"
This commit is contained in:
parent
41adafdec4
commit
69c82f8563
@ -1041,3 +1041,26 @@ Feature: Tab management
|
||||
- data/numbers/3.txt (active)
|
||||
- data/numbers/1.txt
|
||||
- data/numbers/2.txt
|
||||
|
||||
Scenario: :tab-pin prompt yes
|
||||
When I open data/numbers/1.txt
|
||||
And I run :tab-pin
|
||||
And I open data/numbers/2.txt in a new tab
|
||||
And I run :tab-pin
|
||||
And I run :tab-close
|
||||
And I wait for a prompt
|
||||
And I run :prompt-accept yes
|
||||
Then the following tabs should be open:
|
||||
- data/numbers/1.txt (active)
|
||||
|
||||
Scenario: :tab-pin prompt no
|
||||
When I open data/numbers/1.txt
|
||||
And I run :tab-pin
|
||||
And I open data/numbers/2.txt in a new tab
|
||||
And I run :tab-pin
|
||||
And I run :tab-close
|
||||
And I wait for a prompt
|
||||
And I run :prompt-accept no
|
||||
Then the following tabs should be open:
|
||||
- data/numbers/1.txt
|
||||
- data/numbers/2.txt (active)
|
||||
|
@ -19,3 +19,7 @@
|
||||
|
||||
import pytest_bdd as bdd
|
||||
bdd.scenarios('tabs.feature')
|
||||
|
||||
@bdd.when("I wait for a prompt")
|
||||
def wait_for_prompt(quteproc):
|
||||
quteproc.wait_for(message='Asking question *')
|
||||
|
Loading…
Reference in New Issue
Block a user