Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
78941db1
Commit
78941db1
authored
12 years ago
by
Leah Klearman
Committed by
Jared Hirsch
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
works for WinXP + IE8
parent
72331ddd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
automation-tests/persona_server/pages/home.py
+3
-3
3 additions, 3 deletions
automation-tests/persona_server/pages/home.py
automation-tests/persona_server/tests/base.py
+6
-0
6 additions, 0 deletions
automation-tests/persona_server/tests/base.py
with
9 additions
and
3 deletions
automation-tests/persona_server/pages/home.py
+
3
−
3
View file @
78941db1
...
...
@@ -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.
"""
...
...
This diff is collapsed.
Click to expand it.
automation-tests/persona_server/tests/base.py
+
6
−
0
View file @
78941db1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment