'Scenario: Subsections can be locked and unlocked from the course outline page
Given I have a course with a subsection
When I click on the subsection\'s configuration icon
And I enable explicit staff locking
And I click save
Then the subsection shows a staff lock warning
And all its descendants are staff locked
And when I click on the subsection\'s configuration icon
And I disable explicit staff locking
And I click save
Then the the subsection does not show a staff lock warning'

def test_subsections_can_be_locked(self):

    self.course_outline_page.visit()
    self.course_outline_page.expand_all_subsections()
    subsection = self.course_outline_page.section_at(0).subsection_at(0)
    self._toggle_lock_on_unlocked_item(subsection)
