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
24d08893
Commit
24d08893
authored
Mar 07, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix intermittent lettuce test failure on ubuntu.
parent
1f30baab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cms/djangoapps/contentstore/features/advanced-settings.py
+6
-2
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
24d08893
...
@@ -146,12 +146,16 @@ def create_entry(key, value):
...
@@ -146,12 +146,16 @@ def create_entry(key, value):
new_key_css
=
'div#__new_advanced_key__ input'
new_key_css
=
'div#__new_advanced_key__ input'
new_key_element
=
css_find
(
new_key_css
)
.
first
new_key_element
=
css_find
(
new_key_css
)
.
first
new_key_element
.
fill
(
key
)
new_key_element
.
fill
(
key
)
# For some reason have to get the instance for each command (get error that it is no longer attached to the DOM)
# For some reason have to get the instance for each command
# Have to do all this because Selenium has a bug that fill does not remove existing text
# (get error that it is no longer attached to the DOM)
# Have to do all this because Selenium fill does not remove existing text
new_value_css
=
'div.CodeMirror textarea'
new_value_css
=
'div.CodeMirror textarea'
css_find
(
new_value_css
)
.
last
.
fill
(
""
)
css_find
(
new_value_css
)
.
last
.
fill
(
""
)
css_find
(
new_value_css
)
.
last
.
_element
.
send_keys
(
Keys
.
DELETE
,
Keys
.
DELETE
)
css_find
(
new_value_css
)
.
last
.
_element
.
send_keys
(
Keys
.
DELETE
,
Keys
.
DELETE
)
css_find
(
new_value_css
)
.
last
.
fill
(
value
)
css_find
(
new_value_css
)
.
last
.
fill
(
value
)
# Add in a TAB key press because intermittently on ubuntu the
# last character of "value" above was not getting typed in
css_find
(
new_value_css
)
.
last
.
_element
.
send_keys
(
Keys
.
TAB
)
def
delete_entry
(
index
):
def
delete_entry
(
index
):
...
...
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