Wait for MathJax for tests, rather than MathJax.isReady

This commit is contained in:
Calen Pennington
2018-03-06 16:35:26 -05:00
parent f166ee2592
commit f557bad5a3
4 changed files with 5 additions and 6 deletions

View File

@@ -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):

View File

@@ -36,7 +36,7 @@
// Main module.
require(
/* End RequireJS */
/* End RequireJS */
/* Webpack
define(
/* End Webpack */

View File

@@ -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.

View File

@@ -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