def click_request_empty_pool(browser, session_vars): end_time = time.time() + 15 while True: if ApplicationPO(browser).toast_visible(): session_vars['doc_in_pool'] = ApplicationPO(browser).waiter().get_last_application_id() return True time.sleep(1.5) ApplicationPO(browser).click_request_button() if time.time() > end_time: break raise TimeoutException(f"Infinite requests of applications")
def verify_page(browser): ApplicationPO(browser).waiter().verify_application_request_container()
def check_toast(browser): page = ApplicationPO(browser).waiter() page.verify_toast()
def verify_domain_in_filters(browser, domain_name): ApplicationPO(browser).waiter().verify_chosen_domain(domain_name)
def step_impl(browser): ApplicationPO(browser).goto_app_on_hold()
def choose_domain_in_filters(browser, domain_name): page = ApplicationPO(browser).waiter() page.tap_domain_filters_btn() page.open_domain_selector() page.choose_domain(domain_name)
def step_impl(browser): ApplicationPO(browser).click_request_button()
def step_impl(browser, session_vars): ApplicationPO(browser).waiter().verify_lack_of_application(session_vars['doc_in_pool'])
def wait_btn(browser): ApplicationPO(browser).waiter()
def step_impl(browser): ApplicationPO(browser).waiter()
def click_app(browser, session_vars): ApplicationPO(browser).goto_app_form(session_vars['doc_in_pool'])
def check_formed_app(browser, session_vars): ApplicationPO(browser).verify_application(session_vars['doc_in_pool'])
def verify_empty_doc(browser, session_vars): ApplicationPO(browser).waiter().verify_empty_application(session_vars['doc_in_pool'])
def wait_active_request_btn(browser): ApplicationPO(browser).wait_active_request_button()