Remove test_locked_subsections_do_not_appear_in_lms

This commit is contained in:
Michael Youngstrom
2018-03-23 11:12:04 -04:00
parent fa90d6e651
commit d101291417

View File

@@ -872,27 +872,6 @@ class StaffLockTest(CourseOutlineTest):
subsection.unit_at(0).set_staff_lock(True)
self.assertFalse(subsection.has_staff_lock_warning)
def test_locked_subsections_do_not_appear_in_lms(self):
"""
Scenario: A locked subsection is not visible to students in the LMS
Given I have a course with two subsections
When I enable explicit staff lock on one subsection
And I click the View Live button to switch to staff view
And I visit the course home with the outline
Then I see two subsections in the outline
And when I switch the view mode to student view
Then I see one subsection in the outline
"""
self.course_outline_page.visit()
self.course_outline_page.section_at(0).subsection_at(1).set_staff_lock(True)
self.course_outline_page.view_live()
course_home_page = CourseHomePage(self.browser, self.course_id)
course_home_page.visit()
self.assertEqual(course_home_page.outline.num_subsections, 2)
course_home_page.preview.set_staff_view_mode('Learner')
self.assertEqual(course_home_page.outline.num_subsections, 1)
def test_toggling_staff_lock_on_section_does_not_publish_draft_units(self):
"""
Scenario: Locking and unlocking a section will not publish its draft units