'Scenario: View Live version from course outline
Given that I am on the course outline
When I click the "View Live" button
Then a new tab will open to the course on the LMS'

def test_view_live(self):

    self.course_outline_page.visit()
    self.course_outline_page.view_live()
    courseware = CoursewarePage(self.browser, self.course_id)
    courseware.wait_for_page()
    self.assertEqual(courseware.num_xblock_components, 3)
    self.assertEqual(courseware.xblock_component_type(0), 'problem')
    self.assertEqual(courseware.xblock_component_type(1), 'html')
    self.assertEqual(courseware.xblock_component_type(2), 'discussion')
