Merge pull request #2909 from edx/gprice/bok-choy-robustness

Improve robustness of bok choy discussion tests
This commit is contained in:
Greg Price
2014-03-12 11:05:59 -04:00

View File

@@ -67,10 +67,7 @@ class DiscussionSingleThreadPage(CoursePage):
))
def _is_element_visible(self, selector):
return (
self.is_css_present(selector) and
self.css_map(selector, lambda el: el.visible)[0]
)
return any(self.css_map(selector, lambda el: el.visible))
def is_response_editor_visible(self, response_id):
"""Returns true if the response editor is present, false otherwise"""