From d101291417fd5bb4e876b5f709cade405252449d Mon Sep 17 00:00:00 2001 From: Michael Youngstrom Date: Fri, 23 Mar 2018 11:12:04 -0400 Subject: [PATCH] Remove test_locked_subsections_do_not_appear_in_lms --- .../tests/studio/test_studio_outline.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/common/test/acceptance/tests/studio/test_studio_outline.py b/common/test/acceptance/tests/studio/test_studio_outline.py index ef1d8ce3a2..ba2cb674c6 100644 --- a/common/test/acceptance/tests/studio/test_studio_outline.py +++ b/common/test/acceptance/tests/studio/test_studio_outline.py @@ -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