Merge pull request #11138 from fghaas/no-video-if-unset

lms: Only show welcome video if show_homepage_promo_video is set
This commit is contained in:
Matt Drayer
2016-02-03 13:08:31 -05:00
3 changed files with 14 additions and 12 deletions

View File

@@ -48,9 +48,8 @@ class LmsIndexPageTest(BaseLmsIndexTest):
# Ensure the introduction video element is not shown
self.assertFalse(self.page.intro_video_element.visible)
# @fghaas: The below presence check can now be modified along with your changeset
# Still need to figure out how to swap platform settings in the context of a bok choy test
# but we can at least prevent accidental exposure with these validations going forward
# Note: 'present' is a DOM check, whereas 'visible' is an actual browser/screen check
self.assertTrue(self.page.video_modal_element.present)
self.assertFalse(self.page.video_modal_element.present)
self.assertFalse(self.page.video_modal_element.visible)