Skip to content

Commit

Permalink
QA 2857 updated testPages function steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Nov 3, 2023
1 parent 167aac4 commit ea00142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Formplayer/testPages/webapps/login_as_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, driver, settings):
self.webapp_login_confirmation = (By.ID, 'js-confirmation-confirm')
self.webapp_working_as = (By.XPATH, "//div[@class='restore-as-banner module-banner']/b")
self.basic_tests_menu = (By.XPATH,"//h3[text()='Basic Form Tests']")
self.basic_tests_form = (By.XPATH, "//h3[text()= 'HIN: Basic Form Update']")
self.basic_tests_form = (By.XPATH, "//h3[contains(text(), 'Basic Form')]")
self.basic_tests_answer_input = (By.XPATH, "//label[.//span[text()= 'Enter a Name']]//following-sibling::div//textarea")
self.submit = (By.XPATH, "(//button[@class='submit btn btn-primary'])[1]")
self.submit_success = (By.XPATH, "//p[contains(text(),'successfully saved')]")
Expand Down
8 changes: 6 additions & 2 deletions Formplayer/testPages/webapps/webapps_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ def verify_ribbon(self):


def sync_forms(self):
self.wait_to_click(self.home_icon)
self.wait_to_click(self.sync)
time.sleep(2)
self.wait_for_element(self.home_icon)
self.js_click(self.home_icon)
time.sleep(2)
self.wait_for_element(self.sync)
self.js_click(self.sync)
assert self.is_present_and_displayed(self.sync_success_message), ("Sync is successful!")
time.sleep(20)
print("Sleeping for some time for the data to get updated")
Expand Down

0 comments on commit ea00142

Please sign in to comment.