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
14fdc836
Commit
14fdc836
authored
Jul 08, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for TE-745
parent
45f487ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
common/test/acceptance/pages/studio/library.py
+3
-0
common/test/acceptance/tests/studio/test_studio_library_container.py
+1
-2
No files found.
common/test/acceptance/pages/studio/library.py
View file @
14fdc836
...
@@ -256,6 +256,9 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
...
@@ -256,6 +256,9 @@ class StudioLibraryContainerXBlockWrapper(XBlockWrapper):
self
.
q
(
css
=
btn_selector
)
.
first
.
click
()
self
.
q
(
css
=
btn_selector
)
.
first
.
click
()
# 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)
# Check that the ajax request that caused the reload is done.
self
.
wait_for_ajax
()
# Then check that we are still on the right page.
self
.
wait_for
(
lambda
:
self
.
is_browser_on_page
(),
'StudioLibraryContainerXBlockWrapper has reloaded.'
)
self
.
wait_for
(
lambda
:
self
.
is_browser_on_page
(),
'StudioLibraryContainerXBlockWrapper has reloaded.'
)
# Wait longer than the default 60 seconds, because this was intermittently failing on jenkins
# Wait longer than the default 60 seconds, because this was intermittently failing on jenkins
# with the screenshot showing that the Loading indicator was still visible. See TE-745.
# with the screenshot showing that the Loading indicator was still visible. See TE-745.
...
...
common/test/acceptance/tests/studio/test_studio_library_container.py
View file @
14fdc836
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
Acceptance tests for Library Content in LMS
Acceptance tests for Library Content in LMS
"""
"""
import
ddt
import
ddt
from
flaky
import
flaky
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
import
textwrap
import
textwrap
...
@@ -138,7 +137,6 @@ class StudioLibraryContainerTest(StudioLibraryTest, UniqueCourseTest, TestWithSe
...
@@ -138,7 +137,6 @@ class StudioLibraryContainerTest(StudioLibraryTest, UniqueCourseTest, TestWithSe
self
.
assertIn
(
expected_text
,
library_container
.
validation_not_configured_warning_text
)
self
.
assertIn
(
expected_text
,
library_container
.
validation_not_configured_warning_text
)
self
.
assertIn
(
expected_action
,
library_container
.
validation_not_configured_warning_text
)
self
.
assertIn
(
expected_action
,
library_container
.
validation_not_configured_warning_text
)
@flaky
# TODO fix this, see TE-745
def
test_out_of_date_message
(
self
):
def
test_out_of_date_message
(
self
):
"""
"""
Scenario: Given I have a library, a course and library content xblock in a course
Scenario: Given I have a library, a course and library content xblock in a course
...
@@ -149,6 +147,7 @@ class StudioLibraryContainerTest(StudioLibraryTest, UniqueCourseTest, TestWithSe
...
@@ -149,6 +147,7 @@ class StudioLibraryContainerTest(StudioLibraryTest, UniqueCourseTest, TestWithSe
When I click on the update link
When I click on the update link
Then I can see that the content no longer needs to be updated
Then I can see that the content no longer needs to be updated
"""
"""
# Formerly flaky: see TE-745
expected_text
=
"This component is out of date. The library has new content."
expected_text
=
"This component is out of date. The library has new content."
library_block
=
self
.
_get_library_xblock_wrapper
(
self
.
unit_page
.
xblocks
[
1
])
library_block
=
self
.
_get_library_xblock_wrapper
(
self
.
unit_page
.
xblocks
[
1
])
...
...
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