Esempio n. 1
0
def step_impl(context):
    expected = build_url(context,
                         reverse('homepage'),
                         params={
                             'login': True,
                             'next': reverse('update_videos')
                         })
    actual = context.browser.current_url
    assert expected == actual, "Redirected to unexpected url. Expected: {exp}\nActual: {act}".format(
        exp=expected, act=actual)
Esempio n. 2
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))
Esempio n. 3
0
def step_impl(context):
    expected = build_url(context, reverse('homepage'), params={'login': True, 'next': reverse('update_videos')})
    actual = context.browser.current_url
    assert expected == actual, "Redirected to unexpected url. Expected: {exp}\nActual: {act}".format(exp=expected, act=actual)
Esempio n. 4
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.unavailable_content_path))
Esempio n. 5
0
def impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Esempio n. 6
0
def go_to_manage_page(context):
    url = reverse("zone_redirect")
    context.browser.get(build_url(context, url))
Esempio n. 7
0
def go_to_homepage(context):
    context.browser.get(build_url(context, reverse("homepage")))
Esempio n. 8
0
def impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Esempio n. 9
0
def step_impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.available_content_path))
Esempio n. 10
0
def go_to_manage_page(context):
    url = reverse("zone_redirect")
    context.browser.get(build_url(context, url))
Esempio n. 11
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))