Skip to content

Commit

Permalink
Speed up?
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed Nov 1, 2023
1 parent 5378f9f commit 0f7ef4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/acceptance/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ def given_book(luteclient, lang, title, c):
@given(parsers.parse('the book table loads "{title}"'))
def given_book_table_wait(luteclient, title):
"The book table is loaded via ajax, so there's a delay."
_sleep(0.25) # Hack!
_sleep(0.2) # Hack!
assert title in luteclient.browser.html

@when(parsers.parse('I set the book table filter to "{filt}"'))
def when_set_book_table_filter(luteclient, filt):
"Set the filter, wait a sec."
b = luteclient.browser
b.find_by_tag('input').fill(filt)
_sleep(0.25)
_sleep(0.2)

@then(parsers.parse('the book table contains:\n{content}'))
def check_book_table(luteclient, content):
Expand Down

0 comments on commit 0f7ef4c

Please sign in to comment.