Beispiel #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())
Beispiel #3
0
 def test_conditional_displays_content(self):
     self.install_course_fixture()
     self.courseware_page.visit()
     # Answer the problem
     problem_page = ProblemPage(self.browser)
     problem_page.fill_answer('correct string')
     problem_page.click_submit()
     # The conditional does not update on its own, so we need to reload the page.
     self.courseware_page.visit()
     # Verify that we can see the content.
     conditional_page = ConditionalPage(self.browser)
     self.assertTrue(conditional_page.is_content_visible())
 def test_conditional_displays_content(self):
     self.install_course_fixture()
     self.courseware_page.visit()
     # Answer the problem
     problem_page = ProblemPage(self.browser)
     problem_page.fill_answer('correct string')
     problem_page.click_submit()
     # The conditional does not update on its own, so we need to reload the page.
     self.courseware_page.visit()
     # Verify that we can see the content.
     conditional_page = ConditionalPage(self.browser)
     self.assertTrue(conditional_page.is_content_visible())
Beispiel #5
0
 def test_conditional_hides_content(self):
     self.install_course_fixture()
     self.courseware_page.visit()
     conditional_page = ConditionalPage(self.browser)
     self.assertFalse(conditional_page.is_content_visible())
 def test_conditional_hides_content(self):
     self.install_course_fixture()
     self.courseware_page.visit()
     conditional_page = ConditionalPage(self.browser)
     self.assertFalse(conditional_page.is_content_visible())