Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
fbaa4e5e
Commit
fbaa4e5e
authored
Oct 19, 2015
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for MathJax to render.
parent
5a043e5a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
common/test/acceptance/tests/lms/test_lms_problems.py
+13
-4
No files found.
common/test/acceptance/tests/lms/test_lms_problems.py
View file @
fbaa4e5e
...
...
@@ -275,19 +275,28 @@ class ProblemWithMathjax(ProblemsTest):
problem_page
=
ProblemPage
(
self
.
browser
)
self
.
assertEqual
(
problem_page
.
problem_name
,
"MATHJAX TEST PROBLEM"
)
# Verify Mathjax have been rendered
self
.
assertTrue
(
problem_page
.
mathjax_rendered_in_problem
,
"MathJax did not rendered in body"
)
# Verify MathJax has been rendered
problem_page
.
wait_for
(
lambda
:
problem_page
.
mathjax_rendered_in_problem
,
description
=
"MathJax rendered in body"
)
# The hint button rotates through multiple hints
problem_page
.
click_hint
()
self
.
assertIn
(
"Hint (1 of 2): mathjax should work1"
,
problem_page
.
hint_text
)
self
.
assertTrue
(
problem_page
.
mathjax_rendered_in_hint
,
"MathJax did not rendered in problem hint"
)
problem_page
.
wait_for
(
lambda
:
problem_page
.
mathjax_rendered_in_hint
,
description
=
"MathJax rendered in hint"
)
# Rotate the hint and check the problem hint
problem_page
.
click_hint
()
self
.
assertIn
(
"Hint (2 of 2): mathjax should work2"
,
problem_page
.
hint_text
)
self
.
assertTrue
(
problem_page
.
mathjax_rendered_in_hint
,
"MathJax did not rendered in problem hint"
)
problem_page
.
wait_for
(
lambda
:
problem_page
.
mathjax_rendered_in_hint
,
description
=
"MathJax rendered in hint"
)
class
ProblemPartialCredit
(
ProblemsTest
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment