make only section name in headers editable

STUD-1679
This commit is contained in:
zubair-arbi
2014-05-30 21:19:50 +05:00
parent c08831b4b6
commit 56e0b86394
5 changed files with 107 additions and 4 deletions

View File

@@ -28,6 +28,13 @@ Feature: CMS.Create Section
Then the section release date is updated
And I see a "saving" notification
Scenario: Section name not clickable on editing release date
Given I have opened a new course in Studio
And I have added a new section
When I click the Edit link for the release date
And I click on section name in Section Release Date modal
Then I see no form for editing section name in modal
Scenario: Delete section
Given I have opened a new course in Studio
And I have added a new section

View File

@@ -66,6 +66,16 @@ def i_click_to_edit_section_name(_step):
world.css_click('span.section-name-span')
@step('I click on section name in Section Release Date modal$')
def i_click_on_section_name_in_modal(_step):
world.css_click('.modal-window .section-name')
@step('I see no form for editing section name in modal$')
def edit_section_name_form_not_exist(_step):
assert not world.is_css_present('.modal-window .section-name input')
@step('I see the complete section name with a quote in the editor$')
def i_see_complete_section_name_with_quote_in_editor(_step):
css = '.section-name-edit input[type=text]'