def create_statement(self):
     data = utils.get_common_data(self.config)["test_data"]["fee_data"]
     StatementSearchPage(self.config) \
         .click_clear() \
         .fill_in_amount(data["fee_amount"]) \
         .open_provider_search_dialog() \
         .select(data["plan_fee_provider"]) \
         .click_ok()
     StatementSearchPage(self.config) \
         .click_create() \
         .wait_until_please_wait_spinner_present()
     return self
 def search_for_live_statement(self):
     data = utils.get_common_data(self.config)["test_data"]["provider_statement_data"]
     StatementSearchPage(self.config) \
         .select_statement_search_type(data["provider_statement_advanced_search"]) \
         .click_clear() \
         .fill_in_low_state_amount(data["live_statement_amount"]) \
         .click_search()
     return self
 def search_statement(self):
     data = utils.get_common_data(self.config)["test_data"]
     StatementSearchPage(self.config) \
         .select_statement_search_type(data["provider_statement_data"]["provider_statement_advanced_search"]) \
         .click_clear() \
         .fill_in_high_state_amount(data["fee_data"]["fee_amount"])\
         .select_matched(data["provider_statement_data"]["not_matched"])\
         .click_search()
     return self
 def delete_live_statements(self):
     self.navigate_to_statement_search() \
         .search_for_live_statement()
     StatementSearchPage(self.config) \
         .select_first_statement() \
         .click_delete()
     utils.switch_and_accept_alert(self.config)
     ElectronicImportsPage(self.config).wait_until_please_wait_spinner_present()
     return self
 def add_provider_to_statement(self):
     data = utils.get_common_data(self.config)["test_data"]["fee_data"]
     ElectronicImportsPage(self.config) \
         .click_edit_button()
     StatementSearchPage(self.config) \
         .open_provider_search_dialog() \
         .select(data["plan_fee_provider"]) \
         .click_ok()
     ElectronicImportsPage(self.config).click_update_button() \
         .wait_until_please_wait_spinner_present()
     return self
 def allocate_statement(self):
     data =utils.get_common_data(self.config)["test_data"]["provider_statement_data"]
     client = utils.get_temp_data(self.config, "client")
     StatementSearchPage(self.config) \
         .click_open() \
         .select_fee_type(data["int_fee"]) \
         .fill_in_client_name(client["name"]) \
         .fill_in_fee_amount(data["amount"]) \
         .click_create()\
         .wait_until_please_wait_spinner_present()\
         .click_save()\
         .click_allocate()\
         .click_clear()\
         .fill_in_first_name(client["person"]["firstName"]) \
         .click_search() \
         .select_first_line_item() \
         .click_allocate() \
         .select_first_link_to_fee() \
         .click_allocate_to_fee() \
         .wait_until_please_wait_spinner_present()
     StatementSearchPage(self.config).click_close()
     return self
Ejemplo n.º 7
0
def ui_delete_statements_on_first_page(config):
    ProviderStatement(config).navigate_to_statement_search().search_statement()
    if StatementSearchPage(config).get_statement_count_on_first_page():
        StatementSearchPage(config).select_result_per_page("250")
        statement_count = StatementSearchPage(config).get_statement_count_on_first_page()
        while statement_count > 0:
            ProviderStatement(config).delete_statements()
            StatementSearchPage(config).click_search()
            statement_count -= 1
    yield
    ProviderStatement(config).navigate_to_statement_search().search_statement()
    if StatementSearchPage(config).get_statement_count_on_first_page():
        StatementSearchPage(config).select_result_per_page("250")
        statement_count = StatementSearchPage(config).get_statement_count_on_first_page()
        while statement_count > 0:
            ProviderStatement(config).delete_statements()
            StatementSearchPage(config).click_search()
            statement_count -= 1
 def delete_statements(self):
     StatementSearchPage(self.config).click_search().select_first_statement()\
         .click_delete()
     utils.switch_and_accept_alert(self.config)
     return self