bdd: Add a "I wait for a prompt" step.
This commit is contained in:
parent
9c2a38938d
commit
d0fda5467a
@ -37,5 +37,10 @@ def wait_ssl_page_finished_loading(quteproc, ssl_server):
|
||||
def click_button(quteproc):
|
||||
quteproc.send_cmd(':hint')
|
||||
quteproc.send_cmd(':follow-hint a')
|
||||
wait_for_prompt(quteproc)
|
||||
|
||||
|
||||
@bdd.when("I wait for a prompt")
|
||||
def wait_for_prompt(quteproc):
|
||||
quteproc.wait_for(message='Entering mode KeyMode.* (reason: question '
|
||||
'asked)')
|
||||
|
Loading…
Reference in New Issue
Block a user