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
405c92f4
Commit
405c92f4
authored
Feb 11, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky library container test TE-745
parent
3b319b3d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
common/test/acceptance/pages/studio/library.py
+7
-0
common/test/acceptance/tests/studio/test_studio_library_container.py
+1
-1
No files found.
common/test/acceptance/pages/studio/library.py
View file @
405c92f4
...
@@ -265,6 +265,12 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
...
@@ -265,6 +265,12 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
"""
"""
return
self
.
q
(
css
=
'article.content-primary'
)
.
visible
return
self
.
q
(
css
=
'article.content-primary'
)
.
visible
def
is_finished_loading
(
self
):
"""
Returns true iff the Loading indicator is not visible
"""
return
not
self
.
q
(
css
=
'div.ui-loading'
)
.
visible
@classmethod
@classmethod
def
from_xblock_wrapper
(
cls
,
xblock_wrapper
):
def
from_xblock_wrapper
(
cls
,
xblock_wrapper
):
"""
"""
...
@@ -289,6 +295,7 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
...
@@ -289,6 +295,7 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
# This causes a reload (see cms/static/xmodule_js/public/js/library_content_edit.js)
# This causes a reload (see cms/static/xmodule_js/public/js/library_content_edit.js)
self
.
wait_for
(
lambda
:
self
.
is_browser_on_page
(),
'StudioLibraryContainerXBlockWrapper has reloaded.'
)
self
.
wait_for
(
lambda
:
self
.
is_browser_on_page
(),
'StudioLibraryContainerXBlockWrapper has reloaded.'
)
self
.
wait_for
(
lambda
:
self
.
is_finished_loading
(),
'Loading indicator is not visible.'
)
# And wait to make sure the ajax post has finished.
# And wait to make sure the ajax post has finished.
self
.
wait_for_ajax
()
self
.
wait_for_ajax
()
...
...
common/test/acceptance/tests/studio/test_studio_library_container.py
View file @
405c92f4
"""
"""
Acceptance tests for Library Content in LMS
Acceptance tests for Library Content in LMS
"""
"""
import
textwrap
import
ddt
import
ddt
import
textwrap
from
.base_studio_test
import
StudioLibraryTest
from
.base_studio_test
import
StudioLibraryTest
from
...fixtures.course
import
CourseFixture
from
...fixtures.course
import
CourseFixture
...
...
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