예제 #1
0
 def test_conditional_handles_polls(self):
     self.install_course_fixture(block_type='poll')
     self.courseware_page.visit()
     # Fill in the conditional page poll
     conditional_page = ConditionalPage(self.browser)
     conditional_page.fill_in_poll()
     # The conditional does not update on its own, so we need to reload the page.
     self.courseware_page.visit()
     self.assertTrue(conditional_page.is_content_visible())
 def test_conditional_handles_polls(self):
     self.install_course_fixture(block_type='poll')
     self.courseware_page.visit()
     # Fill in the conditional page poll
     conditional_page = ConditionalPage(self.browser)
     conditional_page.fill_in_poll()
     # The conditional does not update on its own, so we need to reload the page.
     self.courseware_page.visit()
     self.assertTrue(conditional_page.is_content_visible())