def step_impl(context):
    # Save the references of actions and page actions object in context.scenario
    # So that We can use the same object references in other steps
    context.scenario.login_action = LoginAction(context)
    context.scenario.home_page = context.scenario.login_action.login(
        context.username, context.password)

    Assert.assert_true(
        context.scenario.home_page.is_user_logged_in(context.username),
        "User '" + context.username + "' is not logged in!")
def step_impl(context):
    Assert.assert_true(
        context.scenario.bookings_page.is_payment_section_displayed(),
        "Payment section is not displayed!")
def step_impl(context):
    Assert.assert_true(context.scenario.dashboard_page.is_user_logged_in(context.username),
                       "User is not logged in!")