Skip to content

Commit

Permalink
QA-7048 CaseSearch fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Aug 29, 2024
1 parent 6f8bd44 commit 5b312dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def test_case_27_checkbox_selection_sticky_search(driver, settings):
def test_case_28_checkbox_single_selection_dependent_dropdown(driver, settings):
webapps = WebApps(driver, settings)
casesearch = CaseSearchWorkflows(driver)
webapps.login_as(CaseSearchUserInput.user_1)
webapps.login_as(CaseSearchUserInput.user_2)
webapps.open_app(CaseSearchUserInput.case_search_app_name)
webapps.open_menu(CaseSearchUserInput.checkbox_selection_menu)
webapps.clear_selections_on_case_search_page()
Expand Down
6 changes: 5 additions & 1 deletion Features/CaseSearch/test_cases/test_03_casesearch_misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import random
import time

import pytest

from Features.CaseSearch.constants import *
from Features.CaseSearch.test_pages.casesearch_page import CaseSearchWorkflows
from Features.CaseSearch.user_inputs.casesearch_user_inputs import CaseSearchUserInput
Expand Down Expand Up @@ -152,7 +154,7 @@ def test_case_05_shadow_menu(driver, settings):

# case_name = webapps.omni_search(CaseSearchUserInput.song_automation_song)
shadow_form_names = webapps.select_case_and_continue(case_name)
assert shadow_form_names == search_first_form_names
assert shadow_form_names == search_first_form_names, "Values mismatched "+shadow_form_names+ " and "+ search_first_form_names


def test_case_06_performance_check(driver, settings):
Expand Down Expand Up @@ -285,6 +287,8 @@ def test_case_10_claim_condition(driver, settings):


def test_case_11_do_not_search_cases(driver, settings):
if "staging" in settings["url"]:
pytest.xfail("This test is failing on Staging")
webapps = WebApps(driver, settings)
casesearch = CaseSearchWorkflows(driver)
"""Check don't search cases owned by the following ids"""
Expand Down
2 changes: 2 additions & 0 deletions common_utilities/selenium/webapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def clear_and_search_all_cases_on_case_search_page(self):
def omni_search(self, case_name, displayed=YES):
if self.is_displayed(self.omni_search_input):
self.wait_to_clear_and_send_keys(self.omni_search_input, case_name)
self.wait_for_element(self.omni_search_button)
self.js_click(self.omni_search_button)
self.wait_for_ajax(100)
else:
Expand All @@ -176,6 +177,7 @@ 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.wait_for_element(self.case)
self.js_click(self.case)

def select_first_case_on_list(self):
Expand Down

0 comments on commit 5b312dc

Please sign in to comment.