Commit 3c450ac2 by Mark L. Chang

starting target url abstraction

parent 31fde337
......@@ -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])
from lettuce import * #before, world
from selenium import *
@step(u'I load edx_dev')
def i_load_edx_dev(step):
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment