@world.absorb
def wait_for_xmodule():
 world.wait_for_js_variable_truthy('XModule')
 world.wait_for_js_variable_truthy('XBlock')

@ world . absorb def wait_for_xmodule ( ) : world . wait_for_js_variable_truthy ( 'XModule' ) world . wait_for_js_variable_truthy ( 'XBlock' )
wait until the xmodule javascript has loaded on the page .