Fixed some of the ui-helpers and made the course-team test faster

This commit is contained in:
JonahStanley
2013-08-06 09:13:45 -04:00
parent 96db47e437
commit 4d6984e3e2

View File

@@ -44,8 +44,8 @@ def is_css_not_present(css_selector, wait_time=5):
@world.absorb
def css_has_text(css_selector, text):
return world.css_text(css_selector) == text
def css_has_text(css_selector, text, index=0, max_attempts=5):
return world.css_text(css_selector, index=index, max_attempts=max_attempts) == text
@world.absorb