Skip to content

Commit

Permalink
QA-5989 updated steps for casesearch testcase test_case_01_multiple_s…
Browse files Browse the repository at this point in the history
…elected_cases_accessible_on_form
  • Loading branch information
kbo001 committed Jan 3, 2024
1 parent c7e301a commit ea76dba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Features/CaseSearch/test_pages/casesearch_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,16 @@ def check_todays_case_claim_present_on_report(self):

def select_all_cases_and_check_selected_cases_present_on_form(self):
self.wait_to_click(self.select_all_checkbox)
time.sleep(3)
song_names = self.find_elements_texts(self.case_names)
song_names_on_case_list = list(filter(None, song_names))
print("Selected cases: ", song_names_on_case_list)
self.js_click(self.multi_select_continue)
time.sleep(5)
song_names_on_form = self.find_elements_texts(self.selected_case_names_on_forms)
stripped = list(filter(None, [s.replace("song: by", "") for s in song_names_on_form]))
stripped_final = list([s.lstrip() for s in stripped])
print("Present cases: ", stripped_final)
assert stripped_final == song_names_on_case_list, \
f"No, form songs {stripped_final} doesn't match case list songs{song_names_on_case_list}"

Expand Down

0 comments on commit ea76dba

Please sign in to comment.