Skip to content

QA-6520 BS app URL update and CS alert locators update #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_case_02_access_to_non_dr_caselist(driver):
webapps.search_button_on_case_search_page()
webapps.omni_search(case_name, displayed=NO)


@pytest.mark.skip
def test_case_03_load_external_case_into_caselist_skip_default(driver):
webapps = WebApps(driver)
casesearch = CaseSearchWorkflows(driver)
Expand All @@ -74,7 +74,7 @@ def test_case_03_load_external_case_into_caselist_skip_default(driver):
assert "casesearch" in domain_url
webapps.submit_the_form()


@pytest.mark.skip
def test_case_04_load_external_linked_domain_case_into_caselist_search_first(driver):
webapps = WebApps(driver)
casesearch = CaseSearchWorkflows(driver)
Expand Down
2 changes: 1 addition & 1 deletion Features/CaseSearch/test_pages/casesearch_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, driver):
self.combox_select = "//label[contains(text(), '{}')]//following::select[contains(@class, 'query-field')][1]"
self.search_for_address = "//*[contains(text(),'{}')]//following::input[contains(@aria-label,'Search')][1]"
self.include_blanks = self.search_property_name_combobox + "//following::input[contains(@class,'search-for-blank')][1]"
self.required_validation_on_top = "//div[@class='alert alert-danger']//following::li[contains(text(),'{}')]"
self.required_validation_on_top = "//div[contains(@class,'alert-danger')]//following::li[contains(text(),'{}')]"
self.required_validation_per_property_text = self.search_against_text_property_format + "//following::div[contains (text(),'{}')][1]"
self.required_validation_per_property_combox = self.search_property_name_combobox + "//following::div[contains (text(),'{}')][1]"
self.city_value_home = "//span[@class='caption webapp-markdown-output'][contains(text(), '{}')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_case_02_access_to_non_dr_caselist(driver):
webapps.search_button_on_case_search_page()
webapps.omni_search(case_name, displayed=NO)


@pytest.mark.skip
def test_case_03_load_external_case_into_caselist_skip_default(driver):
webapps = WebApps(driver)
casesearch = CaseSearchWorkflows(driver)
Expand Down
2 changes: 1 addition & 1 deletion HQSmokeTests/testPages/android/android_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, settings):
"appium:automationName": "UIAutomator2",

# Set URL of the application under test
"appium:app": "bs://542f4a65a16311081a3249de1408a0557dba5b6b",
"appium:app": "bs://a74dab021f48d54177c7cd44afcd94c730a04489",

"appium:autoGrantPermissions": "true",
"appium:newCommandTimeout": 3600,
Expand Down
2 changes: 1 addition & 1 deletion HQSmokeTests/testPages/users/group_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, driver):
self.edit_settings = (By.LINK_TEXT, "Edit Settings")
self.group_name_input = (By.ID, "group-name-input")
self.save_button = (By.XPATH, "//button[@type='submit' and text()='Save']")
self.success_alert = (By.ID, "save-alert")
self.success_alert = (By.XPATH, "//div[contains(@class,'alert-success')]")
self.remove_user = (By.XPATH, "//button[@title='Remove item']")
self.delete_group = (By.XPATH, "//a[@class='btn btn-danger pull-right']")
self.confirm_delete = (By.XPATH, "//button[@class='btn btn-danger disable-on-submit']")
Expand Down
14 changes: 9 additions & 5 deletions HQSmokeTests/testPages/users/org_structure_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,15 @@ def cleanup_location(self):
# Delete User Field
self.wait_to_click(self.org_menu_link_text)
self.wait_to_click(self.edit_loc_field_btn_xpath)
self.scroll_to_element(self.delete_loc_field)
self.js_click(self.delete_loc_field)
self.wait_to_click(self.delete_org_level)
self.scroll_to_element(self.save_btn_id)
self.wait_to_click(self.save_btn_id)
time.sleep(5)
if not self.is_present(self.delete_loc_field):
print("No location field present")
else:
self.scroll_to_element(self.delete_loc_field)
self.js_click(self.delete_loc_field)
self.wait_to_click(self.delete_org_level)
self.scroll_to_element(self.save_btn_id)
self.wait_to_click(self.save_btn_id)
print("Location field deleted successfully")
self.delete_test_location()
self.delete_test_org_level()
Expand Down
Loading