Пример #1
0
def step_impl(context):
    driver = tm.setup_webdriver()
    tm.load_heroku(driver)
    tm.login(driver)
    context.driver = driver
    tm.select_task(context.driver, "staff")
    pass
Пример #2
0
def step_impl(context):
    driver = tm.setup_webdriver()
    tm.load_heroku(driver)
    tm.login(driver)
    context.driver = driver
    tm.select_task(context.driver, "customer")
    tm.select_table(context.driver)
    pass
Пример #3
0
def step_impl(context):
    context.driver.quit()
    driver = tm.setup_webdriver()
    context.driver = driver
    tm.load_heroku(context.driver)
    tm.login(context.driver)
    tm.select_task(context.driver, "staff")
    assert (tm.verify_new_order(context.driver))
Пример #4
0
def step_impl(context):
    driver = tm.setup_webdriver()
    tm.load_heroku(driver)
    tm.login(driver)
    context.driver = driver
    context.task = "manager"
    tm.select_task(context.driver, context.task)
    assert True is not False
Пример #5
0
def step_impl(context):
    driver = tm.setup_webdriver()
    tm.load_heroku(driver)
    tm.login(driver)
    context.driver = driver
    context.task = "customer"
    tm.select_task(context.driver, context.task)
    tm.select_table(context.driver)
    assert (tm.select_category(context.driver))
Пример #6
0
def step_impl(context):
    tm.back_to_log_in(context.driver)
    tm.login(context.driver)
    tm.select_task(context.driver, "staff")
    assert (tm.check_help_requests(context.driver))
Пример #7
0
def step_impl(context):
    context.task = "customer"
    tm.select_task(context.driver, context.task)
    assert True is not False