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
df024b0b
Commit
df024b0b
authored
Aug 07, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix VideoAlpha acceptance test.
parent
ead87d1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+6
-1
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
df024b0b
...
@@ -68,7 +68,12 @@ def edit_component():
...
@@ -68,7 +68,12 @@ def edit_component():
@world.absorb
@world.absorb
def
verify_setting_entry
(
setting
,
display_name
,
value
,
explicitly_set
):
def
verify_setting_entry
(
setting
,
display_name
,
value
,
explicitly_set
):
assert_equal
(
display_name
,
setting
.
find_by_css
(
'.setting-label'
)[
0
]
.
value
)
assert_equal
(
display_name
,
setting
.
find_by_css
(
'.setting-label'
)[
0
]
.
value
)
assert_equal
(
value
,
setting
.
find_by_css
(
'.setting-input'
)[
0
]
.
value
)
# Check specifically for the list type; it has a different structure
if
setting
.
has_class
(
'metadata-list-enum'
):
list_value
=
', '
.
join
(
ele
.
value
for
ele
in
setting
.
find_by_css
(
'.list-settings-item'
))
assert_equal
(
value
,
list_value
)
else
:
assert_equal
(
value
,
setting
.
find_by_css
(
'.setting-input'
)[
0
]
.
value
)
settingClearButton
=
setting
.
find_by_css
(
'.setting-clear'
)[
0
]
settingClearButton
=
setting
.
find_by_css
(
'.setting-clear'
)[
0
]
assert_equal
(
explicitly_set
,
settingClearButton
.
has_class
(
'active'
))
assert_equal
(
explicitly_set
,
settingClearButton
.
has_class
(
'active'
))
assert_equal
(
not
explicitly_set
,
settingClearButton
.
has_class
(
'inactive'
))
assert_equal
(
not
explicitly_set
,
settingClearButton
.
has_class
(
'inactive'
))
...
...
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