Commit 5c4bc98b by Bessie Steinberg

fix tests

parent e009cffe
......@@ -11,6 +11,8 @@ from .course_page import CoursePage
from .courseware import CoursewarePage
from .staff_view import StaffPreviewPage
import logging
log = logging.getLogger(__name__)
class CourseHomePage(CoursePage):
"""
......@@ -166,6 +168,7 @@ class CourseOutlinePage(PageObject):
go_to_section("Week 1", "Lesson 1")
"""
section_index = self._section_title_to_index(section_title)
log.info(">>> section_index: '{0}'".format(section_index))
if section_index is None:
raise ValueError("Could not find section '{0}'".format(section_title))
......
......@@ -42,6 +42,9 @@ from common.test.acceptance.tests.helpers import (
select_option_by_text,
)
import logging
log = logging.getLogger(__name__)
@attr(shard=8)
class ForgotPasswordPageTest(UniqueCourseTest):
......@@ -866,6 +869,8 @@ class VisibleToStaffOnlyTest(UniqueCourseTest):
self.course_home_page.visit()
self.assertEqual(3, len(self.course_home_page.outline.sections['Test Section']))
log.info(">>> Test Sections: %s", self.course_home_page.outline.sections['Test Section'])
self.course_home_page.outline.go_to_section("Test Section", "Subsection With Locked Unit")
self.courseware_page.wait_for_page()
self.assertEqual([u'Locked Unit', u'Unlocked Unit'], self.courseware_page.nav.sequence_items)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment