Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
cec45450
Commit
cec45450
authored
Aug 27, 2015
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #302 from edx/renzo/fix-acceptance
Update acceptance tests to select country during LMS registration
parents
5eb38a5f
286955ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
acceptance_tests/mixins.py
+1
-1
acceptance_tests/pages.py
+5
-0
No files found.
acceptance_tests/mixins.py
View file @
cec45450
...
...
@@ -23,7 +23,7 @@ class LmsUserMixin(object):
return
LMS_USERNAME
,
LMS_PASSWORD
,
LMS_EMAIL
def
generate_user_credentials
(
self
,
username_prefix
):
username
=
username_prefix
+
uuid
.
uuid4
()
.
hex
[
0
:
2
0
]
username
=
username_prefix
+
uuid
.
uuid4
()
.
hex
[
0
:
1
0
]
password
=
self
.
password
email
=
'{}@example.com'
.
format
(
username
)
return
username
,
email
,
password
...
...
acceptance_tests/pages.py
View file @
cec45450
...
...
@@ -3,6 +3,7 @@ import urllib
from
bok_choy.page_object
import
PageObject
from
bok_choy.promise
import
EmptyPromise
from
selenium.webdriver.support.select
import
Select
from
acceptance_tests.config
import
BASIC_AUTH_USERNAME
,
BASIC_AUTH_PASSWORD
,
APP_SERVER_URL
,
LMS_URL
...
...
@@ -83,6 +84,10 @@ class LMSRegistrationPage(LMSPage):
self
.
q
(
css
=
'input#register-name'
)
.
fill
(
name
)
self
.
q
(
css
=
'input#register-email'
)
.
fill
(
email
)
self
.
q
(
css
=
'input#register-password'
)
.
fill
(
password
)
select
=
Select
(
self
.
browser
.
find_element_by_css_selector
(
'select#register-country'
))
select
.
select_by_value
(
'US'
)
self
.
q
(
css
=
'input#register-honor_code'
)
.
click
()
self
.
q
(
css
=
'button.register-button'
)
.
click
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment