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
3c450ac2
Commit
3c450ac2
authored
Aug 22, 2012
by
Mark L. Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting target url abstraction
parent
31fde337
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
lms/djangoapps/acceptance_testing/features/courses.py
+1
-2
lms/djangoapps/acceptance_testing/features/target_urls.py
+5
-0
lms/djangoapps/terrain.py
+5
-0
No files found.
lms/djangoapps/acceptance_testing/features/courses.py
View file @
3c450ac2
...
...
@@ -68,8 +68,7 @@ def get_courseware(course_id):
@step
(
u'I should see all courses'
)
def
i_should_see_all_courses
(
step
):
courses
=
get_courses
()
page_source
=
world
.
browser
.
page_source
course_link_texts
=
[
(
c
.
location
.
course
,
c
.
display_name
)
for
c
in
courses
]
for
c
in
course_link_texts
:
assert
world
.
browser
.
find_element_by_partial_link_text
(
c
[
0
]
+
' '
+
c
[
1
])
lms/djangoapps/acceptance_testing/features/target_urls.py
0 → 100644
View file @
3c450ac2
from
lettuce
import
*
#before, world
from
selenium
import
*
@step
(
u'I load edx_dev'
)
def
i_load_edx_dev
(
step
):
lms/djangoapps/terrain.py
View file @
3c450ac2
from
lettuce
import
before
,
after
,
world
from
selenium
import
webdriver
import
lettuce_webdriver.webdriver
from
os
import
getenv
@before.all
def
setup_browser
():
world
.
browser
=
webdriver
.
Firefox
()
world
.
dev_url
=
getenv
(
"EDX_DEV_URL"
)
world
.
sandbox_url
=
getenv
(
"EDX_SANDBOX_URL"
)
world
.
stage_url
=
getenv
(
"EDX_STAGE_URL"
)
world
.
production_url
=
getenv
(
"EDX_PRODUCTION_URL"
)
@after.all
def
teardown_browser
(
total
):
...
...
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