bdd: Add a "I wait for a prompt" step.

This commit is contained in:
Florian Bruhin 2016-01-13 21:45:34 +01:00
parent 9c2a38938d
commit d0fda5467a

View File

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