-
-
Save alexgibson/c55228c1e6445e7fe7e12b138f7e1987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__________________ test_newsletter_default_values[MissionPage-None] __________________ | |
page_class = <class 'pages.mission.MissionPage'>, url_kwargs = {} | |
base_url = 'https://www.allizom.org' | |
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="95c57162-a25a-264a-b36d-5b18f8350139")> | |
@pytest.mark.nondestructive | |
@pytest.mark.parametrize(('page_class', 'url_kwargs'), [ | |
pytest.mark.skipif(pytest.mark.smoke((HomePage, None)), | |
reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1293779'), | |
(AboutPage, None), | |
pytest.mark.smoke((ContributePage, None)), | |
(TwitterTaskPage, None), | |
(MobileTaskPage, None), | |
(EncryptionTaskPage, None), | |
(JoyOfCodingTaskPage, None), | |
(DevToolsChallengerTaskPage, None), | |
(StumblerTaskPage, None), | |
(MissionPage, None), | |
(FirefoxAllPage, None), | |
pytest.mark.smoke((DesktopPage, None)), | |
(CustomizePage, None), | |
(FirefoxDesktopBasePage, {'slug': 'fast'}), | |
(FirefoxDesktopBasePage, {'slug': 'trust'}), | |
(FirefoxSyncPage, None), | |
(PluginCheckPage, None), | |
(SmartOnLandingPage, None), | |
pytest.mark.skip_if_not_firefox((SmartOnBasePage, {'slug': 'tracking'}), | |
reason='Newsletter is only shown to Firefox browsers.'), | |
pytest.mark.skip_if_not_firefox((SmartOnBasePage, {'slug': 'security'}), | |
reason='Newsletter is only shown to Firefox browsers.'), | |
pytest.mark.skip_if_not_firefox((SmartOnBasePage, {'slug': 'surveillance'}), | |
reason='Newsletter is only shown to Firefox browsers.')]) | |
def test_newsletter_default_values(page_class, url_kwargs, base_url, selenium): | |
url_kwargs = url_kwargs or {} | |
page = page_class(selenium, base_url, **url_kwargs).open() | |
> page.newsletter.expand_form() | |
base_url = 'https://www.allizom.org' | |
page = <pages.mission.MissionPage object at 0x111f16590> | |
page_class = <class 'pages.mission.MissionPage'> | |
selenium = <selenium.webdriver.firefox.webdriver.WebDriver (session="95c57162-a25a-264a-b36d-5b18f8350139")> | |
url_kwargs = {} | |
tests/functional/newsletter/test_newsletter_embed.py:58: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
tests/pages/regions/newsletter.py:32: in expand_form | |
self._privacy_policy_checkbox_locator)) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <selenium.webdriver.support.wait.WebDriverWait (session="95c57162-a25a-264a-b36d-5b18f8350139")> | |
method = <selenium.webdriver.support.expected_conditions.visibility_of_element_located object at 0x111f16b50> | |
message = '' | |
def until(self, method, message=''): | |
"""Calls the method provided with the driver as an argument until the \ | |
return value is not False.""" | |
screen = None | |
stacktrace = None | |
end_time = time.time() + self._timeout | |
while True: | |
try: | |
value = method(self._driver) | |
if value: | |
return value | |
except self._ignored_exceptions as exc: | |
screen = getattr(exc, 'screen', None) | |
stacktrace = getattr(exc, 'stacktrace', None) | |
time.sleep(self._poll) | |
if time.time() > end_time: | |
break | |
> raise TimeoutException(message, screen, stacktrace) | |
E TimeoutException: Message: | |
end_time = 1475502539.937135 | |
message = '' | |
method = <selenium.webdriver.support.expected_conditions.visibility_of_element_located object at 0x111f16b50> | |
screen = None | |
self = <selenium.webdriver.support.wait.WebDriverWait (session="95c57162-a25a-264a-b36d-5b18f8350139")> | |
stacktrace = None | |
value = False | |
venv/lib/python2.7/site-packages/selenium/webdriver/support/wait.py:80: TimeoutException | |
---------------------------------- pytest-selenium ----------------------------------- | |
URL: https://www.allizom.org/en-US/mission/ | |
WARNING: Failed to gather log types: Message: GET /session/95c57162-a25a-264a-b36d-5b18f8350139/log/types did not match a known command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment