Skip to content
Snippets Groups Projects
Commit 78941db1 authored by Leah Klearman's avatar Leah Klearman Committed by Jared Hirsch
Browse files

works for WinXP + IE8

parent 72331ddd
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,11 @@ class HomePage(Base):
def __init__(self, mozwebqa):
Base.__init__(self, mozwebqa)
WebDriverWait(self.selenium, self.timeout * 2).until(
longer_timeout = self.timeout * 2
WebDriverWait(self.selenium, longer_timeout).until(
lambda s: s.find_element(*self._sign_in_locator) and \
s.find_element(*self._sign_in_locator).is_displayed(),
"the sign in button has not appeared within %s" % self.timeout * 2)
"the sign in button has not appeared within %s" % longer_timeout)
def click_sign_up(self):
"""Clicks the Sign Up button."""
......
......@@ -14,8 +14,13 @@ from persona_server.pages.account_manager import AccountManager
class BaseTest(object):
def clear_browser(self, mozwebqa):
mozwebqa.selenium.execute_script('localStorage.clear()')
# move this to BrowserID when personatestuser.org comes online
def create_verified_user(self, mozwebqa):
'''Create a user, verify it, and return it.'''
user = MockUser()
# create the user
......@@ -33,6 +38,7 @@ class BaseTest(object):
account_manager = AccountManager(mozwebqa)
account_manager.load_page()
account_manager.sign_out()
self.clear_browser(mozwebqa)
home.load_page() # test will instantiate HomePage
return user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment