Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Remove test_that_add_to_collection_flyout_for_anonymous_users
Browse files Browse the repository at this point in the history
  • Loading branch information
krupa authored and davehunt committed Apr 18, 2016
1 parent 67de692 commit 3687434
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
16 changes: 0 additions & 16 deletions pages/desktop/details.py
Expand Up @@ -68,11 +68,6 @@ class Details(Base):
_reviews_section_header_locator = (By.CSS_SELECTOR, '#reviews > h2')
_reviews_locator = (By.CSS_SELECTOR, "section#reviews div")
_add_review_link_locator = (By.ID, "add-review")

_add_to_collection_locator = (By.CSS_SELECTOR, ".collection-add.widget.collection")
_add_to_collection_widget_button_locator = (By.CSS_SELECTOR, ".collection-add-login .register-button .button")
_add_to_collection_widget_login_link_locator = (By.CSS_SELECTOR, "div.collection-add-login p:nth-child(3) > a")

_development_channel_locator = (By.CSS_SELECTOR, "#beta-channel")
_development_channel_toggle = (By.CSS_SELECTOR, '#beta-channel a.toggle')
_development_channel_install_button_locator = (By.CSS_SELECTOR, '#beta-channel p.install-button a.button.caution')
Expand Down Expand Up @@ -363,17 +358,6 @@ def other_addons(self):
def previewer(self):
return self.ImagePreviewer(self.base_url, self.selenium)

def click_add_to_collection_widget(self):
self.selenium.find_element(*self._add_to_collection_locator).click()

@property
def collection_widget_button(self):
return self.selenium.find_element(*self._add_to_collection_widget_button_locator).text

@property
def collection_widget_login_link(self):
return self.selenium.find_element(*self._add_to_collection_widget_login_link_locator).text

class ImagePreviewer(Page):

# navigation
Expand Down
8 changes: 0 additions & 8 deletions tests/desktop/test_details_page.py
Expand Up @@ -214,14 +214,6 @@ def test_the_developers_comments_section(self, base_url, selenium):
assert details_page.is_devs_comments_section_expanded
assert re.match('(\w+\s*){3,}', details_page.devs_comments_message) is not None

@pytest.mark.smoke
@pytest.mark.nondestructive
def test_that_add_to_collection_flyout_for_anonymous_users(self, base_url, selenium):
details_page = Details(base_url, selenium, 'Firebug')
details_page.click_add_to_collection_widget()
assert 'Create an Add-ons Account' == details_page.collection_widget_button
assert 'log in to your current account' == details_page.collection_widget_login_link

@pytest.mark.nondestructive
def test_that_the_development_channel_expands(self, base_url, selenium):
details_page = Details(base_url, selenium, 'Firebug')
Expand Down

0 comments on commit 3687434

Please sign in to comment.