Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
dadcdd05
Commit
dadcdd05
authored
11 years ago
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lettuce signup feature to match Drupal site.
parent
acfcd0f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
lms/djangoapps/courseware/features/signup.feature
+2
-2
lms/djangoapps/courseware/features/signup.py
+6
-5
No files found.
lms/djangoapps/courseware/features/signup.feature
View file @
dadcdd05
...
...
@@ -5,12 +5,12 @@ Feature: Sign in
Scenario
:
Sign up from the homepage
Given
I visit the homepage
When
I click the link with the text
"
Sign Up
"
When
I click the link with the text
"
Register Now
"
And
I fill in
"email"
on the registration form with
"robot2@edx.org"
And
I fill in
"password"
on the registration form with
"test"
And
I fill in
"username"
on the registration form with
"robot2"
And
I fill in
"name"
on the registration form with
"Robot Two"
And
I check the checkbox named
"terms_of_service"
And
I check the checkbox named
"honor_code"
And
I
press the
"Create My Account"
button on
the registration form
And
I
submit
the registration form
Then
I should see
"THANKS FOR REGISTERING!"
in the dashboard banner
This diff is collapsed.
Click to expand it.
lms/djangoapps/courseware/features/signup.py
View file @
dadcdd05
...
...
@@ -3,17 +3,18 @@
from
lettuce
import
world
,
step
@step
(
'I fill in "([^"]*)" on the registration form with "([^"]*)"$'
)
def
when_i_fill_in_field_on_the_registration_form_with_value
(
step
,
field
,
value
):
register_form
=
world
.
browser
.
find_by_css
(
'form#register
_
form'
)
register_form
=
world
.
browser
.
find_by_css
(
'form#register
-
form'
)
form_field
=
register_form
.
find_by_name
(
field
)
form_field
.
fill
(
value
)
@step
(
'I
press the "([^"]*)" button on
the registration form$'
)
def
i_press_the_button_on_the_registration_form
(
step
,
button
):
register_form
=
world
.
browser
.
find_by_css
(
'form#register
_
form'
)
register_form
.
find_by_
value
(
button
)
.
click
()
@step
(
'I
submit
the registration form$'
)
def
i_press_the_button_on_the_registration_form
(
step
):
register_form
=
world
.
browser
.
find_by_css
(
'form#register
-
form'
)
register_form
.
find_by_
name
(
'submit'
)
.
click
()
@step
(
'I check the checkbox named "([^"]*)"$'
)
...
...
This diff is collapsed.
Click to expand it.
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