Wait for MathJax for tests, rather than MathJax.isReady
This commit is contained in:
@@ -133,7 +133,7 @@ def wait_for_xmodule():
|
||||
@world.absorb
|
||||
def wait_for_mathjax():
|
||||
"Wait until MathJax is loaded and set up on the page."
|
||||
world.wait_for_js_variable_truthy("MathJax.isReady")
|
||||
world.wait_for_js_variable_truthy("MathJax")
|
||||
|
||||
|
||||
class RequireJSError(Exception):
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
// Main module.
|
||||
require(
|
||||
/* End RequireJS */
|
||||
/* End RequireJS */
|
||||
/* Webpack
|
||||
define(
|
||||
/* End Webpack */
|
||||
|
||||
@@ -68,8 +68,7 @@ VIDEO_MENUS = {
|
||||
}
|
||||
|
||||
|
||||
@js_defined('window.Video', 'window.RequireJS.require', 'window.jQuery',
|
||||
'window.MathJax', 'window.MathJax.isReady')
|
||||
@js_defined('window.Video', 'window.jQuery', 'window.MathJax')
|
||||
class VideoPage(PageObject):
|
||||
"""
|
||||
Video player in the courseware.
|
||||
|
||||
@@ -91,8 +91,8 @@ FIELDS_WO_CLEAR = [
|
||||
DELAY = 0.5
|
||||
|
||||
|
||||
@js_defined('window.Video', 'window.RequireJS.require', 'window.jQuery', 'window.XModule', 'window.XBlock',
|
||||
'window.MathJax', 'window.MathJax.isReady')
|
||||
@js_defined('window.Video', 'window.jQuery', 'window.XModule', 'window.XBlock',
|
||||
'window.MathJax')
|
||||
class VideoComponentPage(VideoPage):
|
||||
"""
|
||||
CMS Video Component Page
|
||||
|
||||
Reference in New Issue
Block a user