Commit 3884ba47 by Greg Price

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

Improve robustness of bok choy discussion tests
parents 117924f7 cc0d2279
......@@ -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"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment