Commit 2b2d97cd by Christina Roberts

Merge pull request #2578 from edx/christina/draft-bug-test

Acceptance test for STUD-1311.
parents 2539314c 16200827
......@@ -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')
......@@ -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",
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment