Merge pull request #11481 from edx/zoldak/remove-lettuce-homepage-test

Convert homepage acceptance test to bok-choy
This commit is contained in:
Jesse Zoldak
2016-02-10 08:45:06 -05:00
5 changed files with 25 additions and 43 deletions

View File

@@ -51,3 +51,8 @@ class IndexPage(PageObject):
Returns a browser query object representing the video modal element
"""
return self.q(css=VIDEO_MODAL_SELECTOR)
@property
def footer_links(self):
"""Return a list of the text of the links in the page footer."""
return self.q(css='.nav-colophon a').attrs('text')

View File

@@ -40,6 +40,8 @@ class LmsIndexPageTest(BaseLmsIndexTest):
Perform a general validation of the index page, renders normally, no exceptions raised, etc.
"""
self.assertTrue(self.page.banner_element.visible)
expected_links = [u'About', u'Blog', u'News', u'Help Center', u'Contact', u'Careers', u'Donate']
self.assertEqual(self.page.footer_links, expected_links)
def test_intro_video_hidden_by_default(self):
"""