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
07c54dcb
Commit
07c54dcb
authored
Apr 02, 2014
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up edit_component so that it doesn't take an unnecessary step argument
parent
415fe8d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cms/djangoapps/contentstore/features/component.py
+2
-2
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+3
-3
cms/djangoapps/contentstore/features/html-editor.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/component.py
View file @
07c54dcb
...
...
@@ -169,11 +169,11 @@ def change_display_name(step, display_name):
world
.
edit_component_and_select_settings
()
index
=
world
.
get_setting_entry_index
(
DISPLAY_NAME
)
world
.
set_field_value
(
index
,
display_name
)
world
.
save_component
(
step
)
world
.
save_component
()
@step
(
u'I unset the display name'
)
def
unset_display_name
(
step
):
world
.
edit_component_and_select_settings
()
world
.
revert_setting_entry
(
DISPLAY_NAME
)
world
.
save_component
(
step
)
world
.
save_component
()
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
07c54dcb
...
...
@@ -133,7 +133,7 @@ def enter_xml_in_advanced_problem(step, text):
"""
world
.
edit_component
()
type_in_codemirror
(
0
,
text
)
world
.
save_component
(
step
)
world
.
save_component
()
@world.absorb
...
...
@@ -183,14 +183,14 @@ def verify_all_setting_entries(expected_entries):
@world.absorb
def
save_component
(
step
):
def
save_component
():
world
.
css_click
(
"a.action-save"
)
world
.
wait_for_ajax_complete
()
@world.absorb
def
save_component_and_reopen
(
step
):
save_component
(
step
)
save_component
()
# We have a known issue that modifications are still shown within the edit window after cancel (though)
# they are not persisted. Refresh the browser to make sure the changes WERE persisted after Save.
reload_the_page
(
step
)
...
...
cms/djangoapps/contentstore/features/html-editor.py
View file @
07c54dcb
...
...
@@ -123,7 +123,7 @@ def perform_action_in_plugin(action):
@step
(
'I save the page$'
)
def
i_click_on_save
(
step
):
world
.
save_component
(
step
)
world
.
save_component
()
@step
(
'the page text contains:'
)
...
...
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