Skip to content

Commit

Permalink
Merge pull request #1600 from atlassian/jsm10/fix-add-comment-action
Browse files Browse the repository at this point in the history
jsm10/fix-add-comment-action
  • Loading branch information
ometelytsia authored Oct 28, 2024
2 parents 9f7b161 + 95b41f9 commit a128d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/selenium_ui/jsm/pages/agent_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def check_comment_text_is_displayed(self, text, rte_status=None):

def add_request_comment(self, rte_status):
comment_text = f"Add comment from selenium - {self.generate_random_string(30)}"
self.wait_until_visible(ViewCustomerRequestLocators.customers_sidebar_selector)
self.wait_until_visible(ViewCustomerRequestLocators.comment_area)
textarea = self.get_element(ViewCustomerRequestLocators.comment_collapsed_textarea)
self.driver.execute_script("arguments[0].scrollIntoView(true);", textarea)
textarea.click()
Expand Down
1 change: 1 addition & 0 deletions app/selenium_ui/jsm/pages/agent_selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class BrowseCustomersLocators:
class ViewCustomerRequestLocators:
bread_crumbs = (By.CSS_SELECTOR, ".aui-nav.aui-nav-breadcrumbs")

comment_area = (By.CLASS_NAME, 'sd-comment-collapse')
comment_collapsed_textarea = (By.ID, "sd-comment-collapsed-textarea")
comment_text_field_RTE = (By.XPATH, "//div[textarea[@id='comment']]//iframe")
comment_text_field = (By.XPATH, "//textarea[@id='comment']")
Expand Down

0 comments on commit a128d5f

Please sign in to comment.