Skip to content

Commit

Permalink
QA-6520 fixes for BHA testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Jun 7, 2024
1 parent 8770530 commit 8f55723
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions USH_Apps/CO_BHA/test_cases/test_01_admit_client_and_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ def test_case_04_lock_in_1_2(driver, settings):
casesearch.check_values_on_caselist(row_num=BhaUserInput.five,
expected_value=BhaUserInput.pending_status)


@pytest.mark.xfail("Setup yet to be done for the new domain.")
def test_case_05_admit_case_7(driver, settings):
if value["first_name"] == None and value["last_name"] == None:
pytest.skip("Skipping as name is null")
"""use case: match on inactive client"""
webapps = WebApps(driver, settings)
casesearch = CaseSearchWorkflows(driver)
Expand Down
2 changes: 2 additions & 0 deletions USH_Apps/CO_BHA/test_pages/bha_app_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def check_client_info_on_form(self, search_property, search_value):
assert search_value in value_on_form

def select_clinic(self, clinic_name):
time.sleep(4)
if self.is_displayed(self.combobox_select_clinic):
self.scroll_to_element(self.combobox_select_clinic)
self.select_by_text(self.combobox_select_clinic, clinic_name)
time.sleep(4)

Expand Down
1 change: 1 addition & 0 deletions common_utilities/selenium/webapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def omni_search(self, case_name, displayed=YES):
return case_name

def select_case(self, case_name):
time.sleep(5)
self.case = self.get_element(self.case_name_format, case_name)
self.scroll_to_element(self.case)
self.js_click(self.case)
Expand Down

0 comments on commit 8f55723

Please sign in to comment.