Skip to content

Commit

Permalink
QA-7156 updated locator for export update data button
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Oct 16, 2024
1 parent f01c552 commit 188df57
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions HQSmokeTests/testPages/data/export_data_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self, driver):

# Excel Dashboard Integrations, form, case
self.export_excel_dash_int = (By.LINK_TEXT, 'Excel Dashboard Integration')
self.update_data = (By.XPATH, "//button[@data-toggle='modal'][1]")
self.update_data = (By.XPATH, "//button[@data-toggle='modal' or @data-bs-toggle='modal'][1]")
self.update_data_conf = (By.XPATH, "//button[@data-bind='click: emailedExport.updateData']")

self.update_data_form = (By.XPATH,
Expand Down Expand Up @@ -382,7 +382,10 @@ def excel_dashboard_integration_form(self):
print("Dashboard Feed added!!")
self.wait_for_element(self.export_name, 200)
self.wait_to_clear_and_send_keys(self.export_name, UserData.dashboard_feed_form)
self.click(self.export_settings_create)
time.sleep(5)
# saving export
self.scroll_to_bottom()
self.js_click(self.export_settings_create)
print("Dashboard Form Feed created!!")
self.wait_and_sleep_to_click(self.update_data)
self.wait_till_progress_completes("integration")
Expand All @@ -408,7 +411,10 @@ def excel_dashboard_integration_case(self):
print("Dashboard Feed added!!")
self.wait_for_element(self.export_name, 200)
self.wait_to_clear_and_send_keys(self.export_name, UserData.dashboard_feed_case)
self.click(self.export_settings_create)
time.sleep(5)
# saving export
self.scroll_to_bottom()
self.js_click(self.export_settings_create)
print("Dashboard Form Feed created!!")
self.wait_and_sleep_to_click(self.update_data)
self.wait_till_progress_completes("integration")
Expand Down Expand Up @@ -455,8 +461,12 @@ def power_bi_tableau_integration_form(self, username, password):
print("Odata form Feed added!!")
self.wait_for_element(self.export_name, 200)
self.wait_to_clear_and_send_keys(self.export_name, UserData.odata_feed_form)
self.click(self.export_settings_create)
time.sleep(5)
# saving export
self.scroll_to_bottom()
self.js_click(self.export_settings_create)
print("Odata Form Feed created!!")
time.sleep(20)
self.driver.refresh()
self.wait_and_sleep_to_click(self.copy_odata_link_btn_form)
self.get_url_paste_browser(username, password, "forms")
Expand Down

0 comments on commit 188df57

Please sign in to comment.