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
15facf8f
Commit
15facf8f
authored
Jun 17, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed change_text to implement new type_in_codemirror function
parent
46da8976
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
cms/djangoapps/contentstore/features/course-updates.py
+2
-10
No files found.
cms/djangoapps/contentstore/features/course-updates.py
View file @
15facf8f
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
from
lettuce
import
world
,
step
from
lettuce
import
world
,
step
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.keys
import
Keys
from
common
import
type_in_codemirror
@step
(
u'I go to the course updates page'
)
@step
(
u'I go to the course updates page'
)
...
@@ -78,15 +79,6 @@ def check_handout(step, handout):
...
@@ -78,15 +79,6 @@ def check_handout(step, handout):
def
change_text
(
text
):
def
change_text
(
text
):
text_css
=
'div.CodeMirror > div > textarea'
type_in_codemirror
(
0
,
text
)
prev_css
=
'div.CodeMirror-lines > div > div:last-child > pre'
all_lines
=
world
.
css_find
(
prev_css
)
all_text
=
''
for
i
in
range
(
len
(
all_lines
)):
all_text
=
all_lines
[
i
]
.
html
text_area
=
world
.
css_find
(
text_css
)
for
i
in
range
(
len
(
all_text
)):
text_area
.
_element
.
send_keys
(
Keys
.
END
,
Keys
.
BACK_SPACE
)
text_area
.
_element
.
send_keys
(
text
)
save_css
=
'.save-button'
save_css
=
'.save-button'
world
.
css_click
(
save_css
)
world
.
css_click
(
save_css
)
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