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
7495bd0a
Commit
7495bd0a
authored
Feb 19, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move terrain module from lms to common.
parent
6981ba4e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
4 deletions
+2
-4
common/djangoapps/terrain/__init__.py
+0
-0
common/djangoapps/terrain/browser.py
+0
-0
common/djangoapps/terrain/factories.py
+0
-0
common/djangoapps/terrain/steps.py
+0
-0
lms/djangoapps/portal/features/registration.py
+2
-4
No files found.
lms
/djangoapps/terrain/__init__.py
→
common
/djangoapps/terrain/__init__.py
View file @
7495bd0a
File moved
lms
/djangoapps/terrain/browser.py
→
common
/djangoapps/terrain/browser.py
View file @
7495bd0a
File moved
lms
/djangoapps/terrain/factories.py
→
common
/djangoapps/terrain/factories.py
View file @
7495bd0a
File moved
lms
/djangoapps/terrain/steps.py
→
common
/djangoapps/terrain/steps.py
View file @
7495bd0a
File moved
lms/djangoapps/portal/features/registration.py
View file @
7495bd0a
from
lettuce
import
world
,
step
@step
(
'I register for the course numbered "([^"]*)"$'
)
def
i_register_for_the_course
(
step
,
course
):
courses_section
=
world
.
browser
.
find_by_css
(
'section.courses'
)
course_link_css
=
'article[id*="
%
s"]
a
'
%
course
course_link_css
=
'article[id*="
%
s"]
> div
'
%
course
course_link
=
courses_section
.
find_by_css
(
course_link_css
)
.
first
course_link
.
click
()
...
...
@@ -14,14 +13,13 @@ def i_register_for_the_course(step, course):
assert
world
.
browser
.
is_element_present_by_css
(
'section.container.dashboard'
)
@step
(
u'I should see the course numbered "([^"]*)" in my dashboard$'
)
def
i_should_see_that_course_in_my_dashboard
(
step
,
course
):
course_link_css
=
'section.my-courses a[href*="
%
s"]'
%
course
assert
world
.
browser
.
is_element_present_by_css
(
course_link_css
)
@step
(
u'I press the "([^"]*)" button in the Unenroll dialog'
)
def
i_press_the_button_in_the_unenroll_dialog
(
step
,
value
):
button_css
=
'section#unenroll-modal input[value="
%
s"]'
%
value
world
.
browser
.
find_by_css
(
button_css
)
.
click
()
assert
world
.
browser
.
is_element_present_by_css
(
'section.container.dashboard'
)
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