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
9968622c
Commit
9968622c
authored
Oct 21, 2015
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use waits because MathJax rendering is asynchronous.
TNL-2419
parent
a48d3ebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
common/test/acceptance/tests/discussion/test_discussion.py
+8
-4
No files found.
common/test/acceptance/tests/discussion/test_discussion.py
View file @
9968622c
...
...
@@ -6,7 +6,6 @@ import datetime
from
pytz
import
UTC
from
uuid
import
uuid4
from
nose.plugins.attrib
import
attr
from
flaky
import
flaky
from
.helpers
import
BaseDiscussionTestCase
from
..helpers
import
UniqueCourseTest
...
...
@@ -218,7 +217,6 @@ class DiscussionTabSingleThreadTest(BaseDiscussionTestCase, DiscussionResponsePa
self
.
thread_page
=
self
.
create_single_thread_page
(
thread_id
)
# pylint: disable=attribute-defined-outside-init
self
.
thread_page
.
visit
()
@flaky
# TODO fix this, see TNL-2419
def
test_mathjax_rendering
(
self
):
thread_id
=
"test_thread_{}"
.
format
(
uuid4
()
.
hex
)
...
...
@@ -233,8 +231,14 @@ class DiscussionTabSingleThreadTest(BaseDiscussionTestCase, DiscussionResponsePa
thread_fixture
.
push
()
self
.
setup_thread_page
(
thread_id
)
self
.
assertTrue
(
self
.
thread_page
.
is_discussion_body_visible
())
self
.
assertTrue
(
self
.
thread_page
.
is_mathjax_preview_available
())
self
.
assertTrue
(
self
.
thread_page
.
is_mathjax_rendered
())
self
.
thread_page
.
wait_for
(
self
.
thread_page
.
is_mathjax_preview_available
,
description
=
"MathJax Preview is rendered"
)
self
.
thread_page
.
wait_for
(
self
.
thread_page
.
is_mathjax_rendered
,
description
=
"MathJax is rendered"
)
def
test_markdown_reference_link
(
self
):
"""
...
...
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