missing wait_time=timeout in 'I should not see "text" within {timeout} seconds'
moreandres opened this issue · comments
It seems to me that there is a missing wait_time=timeout argument to the code below.
@step(u'I should not see "{text}" within {timeout:d} seconds')
def should_not_see_within_timeout(context, text, timeout):
assert context.browser.is_text_not_present(text), u'Text was found'
The positive tests seems to be using it OK.
@step(u'I should see "{text}" within {timeout:d} seconds')
def should_see_within_timeout(context, text, timeout):
assert context.browser.is_text_present(text, wait_time=timeout), u'Text not found'
I've checked here that the wait_time can be used with the negative text present method.
You are right of course, would you like to make a PR to take the credit?