Merge pull request #13312 from edx/muddasser/TNL-5315

lms/navigation.feature to bokchoy
This commit is contained in:
Muddasser
2016-09-19 11:17:39 +05:00
committed by GitHub
3 changed files with 5 additions and 208 deletions

View File

@@ -732,6 +732,7 @@ class HighLevelTabTest(UniqueCourseTest):
}
actual_sections = self.course_nav.sections
for section, subsections in EXPECTED_SECTIONS.iteritems():
self.assertIn(section, actual_sections)
self.assertEqual(actual_sections[section], EXPECTED_SECTIONS[section])
@@ -747,6 +748,10 @@ class HighLevelTabTest(UniqueCourseTest):
for expected in EXPECTED_ITEMS:
self.assertIn(expected, actual_items)
# Navigate to a particular section other than the default landing section.
self.course_nav.go_to_section('Test Section 2', 'Test Subsection 3')
self.assertTrue(self.course_nav.is_on_section('Test Section 2', 'Test Subsection 3'))
@attr(shard=1)
class PDFTextBooksTabTest(UniqueCourseTest):