Skip to content
Snippets Groups Projects
Commit ae34c3fe authored by Calen Pennington's avatar Calen Pennington
Browse files

Mark xblock initialization status using css class (in part to make testing easier)

parent 35fbc15e
No related merge requests found
......@@ -22,6 +22,7 @@
$element.trigger("xblock-initialized")
$element.data("initialized", true)
$element.addClass("xblock-initialized")
block
initializeBlocks: (element) ->
......
......@@ -25,10 +25,7 @@ class AcidView(PageObject):
self.context_selector = context_selector
def is_browser_on_page(self):
return (
self.is_css_present('{} .acid-block'.format(self.context_selector)) and
self.browser.evaluate_script("$({!r}).data('initialized')".format(self.context_selector))
)
return self.is_css_present('{}.xblock-initialized .acid-block'.format(self.context_selector))
def test_passed(self, test_selector):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment