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
2b2d97cd
Commit
2b2d97cd
authored
Feb 13, 2014
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2578 from edx/christina/draft-bug-test
Acceptance test for STUD-1311.
parents
2539314c
16200827
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
cms/djangoapps/contentstore/features/common.py
+5
-0
cms/djangoapps/contentstore/features/problem-editor.feature
+9
-0
cms/djangoapps/contentstore/features/problem-editor.py
+5
-0
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
2b2d97cd
...
...
@@ -396,6 +396,11 @@ def i_replace_w_draft(_step):
world
.
css_click
(
"a.publish-draft"
)
@step
(
u'I click on "delete draft"$'
)
def
i_delete_draft
(
_step
):
world
.
css_click
(
"a.delete-draft"
)
@step
(
u'I publish the unit$'
)
def
publish_unit
(
_step
):
world
.
select_option
(
'visibility-select'
,
'public'
)
cms/djangoapps/contentstore/features/problem-editor.feature
View file @
2b2d97cd
...
...
@@ -95,6 +95,15 @@ Feature: CMS.Problem Editor
And
I delete
"1"
component
Then
I see no components
# This is a very specific scenario for a bug where editing a component in draft
# impacted the published version.
Scenario
:
Changes to draft problem do not impact published version
Given
I have created a Blank Common Problem
When
I publish the unit
And
I click on
"edit a draft"
And
I change the display name to
"draft"
And
I click on
"delete draft"
Then
the problem display name is
"Blank Common Problem"
# Disabled 11/13/2013 after failing in master
# The screenshot showed that the LaTeX editor had the text "hi",
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
2b2d97cd
...
...
@@ -62,6 +62,11 @@ def my_display_name_change_is_persisted_on_save(step):
verify_modified_display_name
()
@step
(
'the problem display name is "(.*)"$'
)
def
verify_problem_display_name
(
step
,
name
):
assert_equal
(
name
.
upper
(),
world
.
browser
.
find_by_css
(
'.problem-header'
)
.
text
)
@step
(
'I can specify special characters in the display name'
)
def
i_can_modify_the_display_name_with_special_chars
(
_step
):
index
=
world
.
get_setting_entry_index
(
DISPLAY_NAME
)
...
...
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