Skip to content

QA-7204 fix for testcase 29 and 42 in prod #374

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
2 changes: 2 additions & 0 deletions HQSmokeTests/testPages/data/import_cases_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def replace_property_and_upload(self):
time.sleep(5)
self.edit_spreadsheet(self.to_be_edited_file, self.village_name_cell, self.renamed_file, self.sheet_name)
self.wait_for_element(self.choose_file)
print(str(self.renamed_file))
self.send_keys(self.choose_file, self.renamed_file)
time.sleep(2)
self.wait_for_element(self.next_step)
self.click(self.next_step)
self.is_visible_and_displayed(self.case_type)
Expand Down
10 changes: 7 additions & 3 deletions HQSmokeTests/testPages/messaging/messaging_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, driver):
self.dashboard_elements = (By.XPATH, "//div[@id='messaging_dashboard']")
# Compose SMS
self.compose_sms_menu = (By.LINK_TEXT, "Compose SMS Message")
self.recipients_textarea = (By.XPATH, "//textarea[@name='recipients']")
self.recipients_select = (By.XPATH, "//select[@name='recipients']")
self.select_recipient = (By.XPATH, "(//ul[@role='listbox']/li)[1]")
self.message_textarea = (By.XPATH, "//textarea[@name='message']")
self.send_message = (By.XPATH, "(//button[@class='btn btn-primary' and @type='submit'])[1]")
Expand Down Expand Up @@ -163,7 +163,9 @@ def open_dashboard_page(self):

def compose_sms(self):
self.click(self.compose_sms_menu)
self.send_keys(self.recipients_textarea, "[send to all]")
self.wait_for_element(self.recipients_select)
self.select_by_value(self.recipients_select, "[send to all]")
time.sleep(2)
self.send_keys(self.message_textarea, "sms_" + fetch_random_string())
time.sleep(2)
self.scroll_to_element(self.send_message)
Expand All @@ -172,7 +174,9 @@ def compose_sms(self):
assert self.is_present_and_displayed(self.message_sent_success_msg), "Message not sent successfully"
except TimeoutException:
self.click(self.compose_sms_menu)
self.send_keys(self.recipients_textarea, "[send to all]")
self.wait_for_element(self.recipients_select)
self.select_by_value(self.recipients_select, "[send to all]")
time.sleep(2)
self.send_keys(self.message_textarea, "sms_" + fetch_random_string())
time.sleep(2)
self.scroll_to_element(self.send_message)
Expand Down
Loading