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
1ac90573
Commit
1ac90573
authored
Aug 04, 2015
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ORA1 deprecated warning message when a component does not have a `display_name`
TNL-2855
parent
0e3be9de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletions
+34
-1
cms/templates/course_outline.html
+7
-1
common/test/acceptance/tests/studio/test_studio_outline.py
+27
-0
No files found.
cms/templates/course_outline.html
View file @
1ac90573
...
...
@@ -69,7 +69,13 @@ from microsite_configuration import microsite
<nav
class=
"nav-related"
aria-label=
"${_('Unsupported Components')}"
>
<ul>
% for component_parent_url, component_display_name in deprecated_blocks_info['blocks']:
<li
class=
"nav-item"
><a
href=
"${component_parent_url}"
>
${_(component_display_name)}
</a></li>
<li
class=
"nav-item"
>
% if component_display_name:
<a
href=
"${component_parent_url}"
>
${_(component_display_name)}
</a>
% else:
<a
href=
"${component_parent_url}"
>
${_("Deprecated Component")}
</a>
% endif
</li>
% endfor
</ul>
</nav>
...
...
common/test/acceptance/tests/studio/test_studio_outline.py
View file @
1ac90573
...
...
@@ -1599,6 +1599,7 @@ class DeprecationWarningMessageTest(CourseOutlineTest):
'from the course advanced settings. To do this, go to the Advanced Settings '
'page, locate the "Advanced Module List" setting, and then delete the following '
'modules from the list.'
)
DEFAULT_DISPLAYNAME
=
"Deprecated Component"
def
_add_deprecated_advance_modules
(
self
,
block_types
):
"""
...
...
@@ -1686,6 +1687,32 @@ class DeprecationWarningMessageTest(CourseOutlineTest):
deprecated_modules_list
=
[
'peergrading'
,
'combinedopenended'
]
)
def
test_deprecation_warning_with_no_displayname
(
self
):
"""
Scenario: Verify deprecation warning message if ORA1 components are present.
Given I have created 1 ORA1 deprecated component
When I go to course outline
Then I see ORA1 deprecated warning
And I see correct ORA1 deprecated warning heading text
And I see list of ORA1 components with correct message
"""
parent_vertical
=
self
.
course_fixture
.
get_nested_xblocks
(
category
=
"vertical"
)[
0
]
# Create a deprecated ORA1 component with display_name to be empty and make sure
# the deprecation warning is displayed with
self
.
course_fixture
.
create_xblock
(
parent_vertical
.
locator
,
XBlockFixtureDesc
(
category
=
'combinedopenended'
,
display_name
=
""
,
data
=
load_data_str
(
'ora_peer_problem.xml'
))
)
self
.
course_outline_page
.
visit
()
self
.
_verify_deprecation_warning_info
(
deprecated_blocks_present
=
False
,
components_present
=
True
,
components_display_name_list
=
[
self
.
DEFAULT_DISPLAYNAME
],
)
def
test_warning_with_ora1_advance_modules_only
(
self
):
"""
Scenario: Verify that deprecation warning message is shown if only
...
...
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