Including tests for pinned tab prompt

Duplicate function for "I wait for a prompt"
This commit is contained in:
thuck 2016-11-18 07:42:48 +01:00
parent 41adafdec4
commit 69c82f8563
2 changed files with 27 additions and 0 deletions

View File

@ -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)

View File

@ -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 *')