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
f1a34256
Commit
f1a34256
authored
Mar 19, 2014
by
Anton Stupak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2965 from edx/anton/update-acceptance-test
Video: update acceptance test.
parents
78e31cf3
14b1266e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+2
-2
cms/djangoapps/contentstore/features/problem-editor.py
+1
-1
cms/djangoapps/contentstore/features/video-editor.feature
+1
-0
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
f1a34256
...
...
@@ -214,7 +214,7 @@ def get_setting_entry(label):
@world.absorb
def
get_setting_entry_index
(
label
):
def
get_index
():
settings
=
world
.
css_find
(
'.wrapper-comp-setting'
)
settings
=
world
.
css_find
(
'.
metadata_edit .
wrapper-comp-setting'
)
for
index
,
setting
in
enumerate
(
settings
):
if
setting
.
find_by_css
(
'.setting-label'
)[
0
]
.
value
==
label
:
return
index
...
...
@@ -232,6 +232,6 @@ def set_field_value(index, value):
Instead we will find the element, set its value, then hit the Tab key
to get to the next field.
"""
elem
=
world
.
css_find
(
'div.wrapper-comp-setting input.setting-input'
)[
index
]
elem
=
world
.
css_find
(
'
.metadata_edit
div.wrapper-comp-setting input.setting-input'
)[
index
]
elem
.
value
=
value
elem
.
type
(
Keys
.
TAB
)
cms/djangoapps/contentstore/features/problem-editor.py
View file @
f1a34256
...
...
@@ -142,7 +142,7 @@ def set_the_weight_to_abc(step, bad_weight):
@step
(
'if I set the max attempts to "(.*)", it will persist as a valid integer$'
)
def
set_the_max_attempts
(
step
,
max_attempts_set
):
# on firefox with selenium, the behavio
u
r is different.
# on firefox with selenium, the behavior is different.
# eg 2.34 displays as 2.34 and is persisted as 2
index
=
world
.
get_setting_entry_index
(
MAXIMUM_ATTEMPTS
)
world
.
set_field_value
(
index
,
max_attempts_set
)
...
...
cms/djangoapps/contentstore/features/video-editor.feature
View file @
f1a34256
...
...
@@ -12,6 +12,7 @@ Feature: CMS Video Component Editor
Scenario
:
User can modify Video display name
Given
I have created a Video component
And
I edit the component
And
I open tab
"Advanced"
Then
I can modify the display name
And
my video display name change is persisted on save
...
...
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