def access_url(step, name): step.given('Given the user navigates to the "Organizations" admin page') world.browser.click_link_by_text(name) organization_id = world.browser.find_by_css( '.organization_id p').first.value world.assert_is_uuid4(organization_id) world.browser.visit(django_url('/organizations/%s' % organization_id))
def access_url(step, title): step.given('Given the user navigates to the "Stories" admin page') world.browser.click_link_by_text(title) try: # Django 1.3 story_id = world.browser.find_by_css('.story_id p').first.value except ElementDoesNotExist: # Django 1.4 story_id = world.browser.find_by_css('.field-story_id p').first.value world.assert_is_uuid4(story_id) world.browser.visit(django_url('/stories/%s' % story_id))
def access_url(step, name): step.given('Given the user navigates to the "Organizations" admin page') world.browser.click_link_by_text(name) try: # Django 1.3 organization_id = world.browser.find_by_css(".organization_id p").first.value except ElementDoesNotExist: # Django 1.4 organization_id = world.browser.find_by_css(".field-organization_id p").first.value world.assert_is_uuid4(organization_id) world.browser.visit(django_url("/organizations/%s" % organization_id))
def access_url(step, name): step.given('Given the user navigates to the "Organizations" admin page') world.browser.click_link_by_text(name) try: # Django 1.3 organization_id = world.browser.find_by_css( '.organization_id p').first.value except ElementDoesNotExist: # Django 1.4 organization_id = world.browser.find_by_css( '.field-organization_id p').first.value world.assert_is_uuid4(organization_id) world.browser.visit(django_url('/organizations/%s' % organization_id))
def access_url(step, title): step.given('Given the user navigates to the "Html assets" admin page') world.browser.click_link_by_text(title) obj_id = world.browser.find_by_css(".asset_id p").first.value world.assert_is_uuid4(obj_id) world.browser.visit(django_url("/assets/%s" % obj_id))
def access_url(step, title): step.given('Given the user navigates to the "Stories" admin page') world.browser.click_link_by_text(title) organization_id = world.browser.find_by_css('.story_id p').first.value world.assert_is_uuid4(organization_id) world.browser.visit(django_url('/stories/%s' % organization_id))
def access_url(step, title): step.given('Given the user navigates to the "Html assets" admin page') world.browser.click_link_by_text(title) obj_id = world.browser.find_by_css('.asset_id p').first.value world.assert_is_uuid4(obj_id) world.browser.visit(django_url('/assets/%s' % obj_id))