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
3e68bdaa
Commit
3e68bdaa
authored
Aug 08, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed world.browser.find_by_css to world.css_find
parent
bb9d0df0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+2
-2
cms/djangoapps/contentstore/features/problem-editor.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
3e68bdaa
...
...
@@ -115,7 +115,7 @@ def revert_setting_entry(label):
@world.absorb
def
get_setting_entry
(
label
):
def
get_setting
():
settings
=
world
.
browser
.
find_by_css
(
'.wrapper-comp-setting'
)
settings
=
world
.
css_find
(
'.wrapper-comp-setting'
)
for
setting
in
settings
:
if
setting
.
find_by_css
(
'.setting-label'
)[
0
]
.
value
==
label
:
return
setting
...
...
@@ -125,7 +125,7 @@ def get_setting_entry(label):
@world.absorb
def
get_setting_entry_index
(
label
):
def
get_index
():
settings
=
world
.
browser
.
find_by_css
(
'.wrapper-comp-setting'
)
settings
=
world
.
css_find
(
'.wrapper-comp-setting'
)
for
index
,
setting
in
enumerate
(
settings
):
if
setting
.
find_by_css
(
'.setting-label'
)[
0
]
.
value
==
label
:
return
index
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
3e68bdaa
...
...
@@ -135,7 +135,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 behaviour is different. eg 2.34 displays as 2.34 and is persisted as 2
#
on firefox with selenium, the behaviour is different. eg 2.34 displays as 2.34 and is persisted as 2
index
=
world
.
get_setting_entry_index
(
MAXIMUM_ATTEMPTS
)
world
.
css_fill
(
'.wrapper-comp-setting .setting-input'
,
max_attempts_set
,
index
=
index
)
if
world
.
is_firefox
():
...
...
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