update mathjax to 2.6 (TNL-4104) and (TNL-4094)

update mathjax class names to support common html, html-css, and svg
This commit is contained in:
Adam Palay
2016-02-10 13:36:53 -05:00
committed by Adam Palay
parent da0992b4e8
commit e57487db83
10 changed files with 20 additions and 30 deletions

View File

@@ -126,7 +126,7 @@ class DiscussionThreadPage(PageObject, DiscussionPageMixin):
def verify_mathjax_rendered(self):
""" Checks that MathJax css class is present """
self.wait_for(
lambda: self._is_element_visible(".MathJax"),
lambda: self._is_element_visible(".MathJax_CHTML"),
description="MathJax Preview is rendered"
)

View File

@@ -49,7 +49,7 @@ class ProblemPage(PageObject):
"""
def mathjax_present():
""" Returns True if MathJax css is present in the problem body """
mathjax_container = self.q(css="div.problem p .MathJax .math")
mathjax_container = self.q(css="div.problem p .MathJax_CHTML")
return mathjax_container.visible and mathjax_container.present
self.wait_for(
@@ -63,7 +63,7 @@ class ProblemPage(PageObject):
"""
def mathjax_present():
""" Returns True if MathJax css is present in the problem body """
mathjax_container = self.q(css="div.problem div.problem-hint .MathJax .math")
mathjax_container = self.q(css="div.problem div.problem-hint .MathJax_CHTML")
return mathjax_container.visible and mathjax_container.present
self.wait_for(

View File

@@ -40,7 +40,7 @@ class TabNavPage(PageObject):
"""
Check that MathJax has rendered in tab content
"""
mathjax_container = self.q(css=".static_tab_wrapper .MathJax .math")
mathjax_container = self.q(css=".static_tab_wrapper .MathJax_CHTML")
EmptyPromise(
lambda: mathjax_container.present and mathjax_container.visible,
"MathJax is not visible"