Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Remove checks for promo box, which has been replaced with the games p…
Browse files Browse the repository at this point in the history
…romotion
  • Loading branch information
davehunt committed Aug 17, 2015
1 parent bf8d183 commit f824830
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions pages/desktop/consumer_pages/home.py
Expand Up @@ -24,8 +24,6 @@ class Home(Base):
_new_tab_menu_locator = (By.CSS_SELECTOR, '.mkt-header-nav--link[href*=new]')
_popular_tab_menu_locator = (By.CSS_SELECTOR, '.mkt-header-nav--link[href*=popular]')
_feed_title_locator = (By.CSS_SELECTOR, '.subheader > h1')
_promo_box_locator = (By.CSS_SELECTOR, '.desktop-promo')
_promo_box_items_locator = (By.CSS_SELECTOR, '.desktop-promo-item')

def go_to_homepage(self):
self.set_window_size()
Expand All @@ -34,14 +32,6 @@ def go_to_homepage(self):
lambda s: self.selenium.execute_script('return jQuery.isReady == true'))
self.wait_for_element_visible(*self._site_navigation_menu_locator)

@property
def is_promo_box_visible(self):
return self.is_element_visible(*self._promo_box_locator)

@property
def promo_box_items_number(self):
return len(self.find_elements(*self._promo_box_items_locator))

@property
def category_menu_text(self):
return self.selenium.find_element(*self._category_menu_locator).text
Expand Down
11 changes: 0 additions & 11 deletions tests/desktop/consumer_pages/test_home_page.py
@@ -1,5 +1,3 @@
#!/usr/bin/env python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Expand All @@ -15,15 +13,6 @@

class TestConsumerPage(BaseTest):

@pytest.mark.nondestructive
def test_that_promo_module_is_visible(self, mozwebqa):

home_page = Home(mozwebqa)
home_page.go_to_homepage()

Assert.true(home_page.is_promo_box_visible)
Assert.greater(home_page.promo_box_items_number, 0)

@pytest.mark.sanity
@pytest.mark.action_chains
@pytest.mark.nondestructive
Expand Down

0 comments on commit f824830

Please sign in to comment.