Fixed feature test failure.

This commit is contained in:
Yogesh Mahajan 2022-03-07 15:36:10 +05:30 committed by Akshay Joshi
parent 1b7dce124b
commit 3ad0862c59
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ class CheckFileManagerFeatureTest(BaseFeatureTest):
self.page.find_by_css_selector(QueryToolLocators.btn_save_file) \
.click()
# Set the XSS value in input
WebDriverWait(self.driver, 10).until(EC.presence_of_element_located(
WebDriverWait(self.driver, 15).until(EC.presence_of_element_located(
(By.CSS_SELECTOR, ".change_file_types")))
self.page.find_by_css_selector('.change_file_types')
self.page.fill_input_by_css_selector(

View File

@ -82,7 +82,7 @@ class PGUtilitiesMaintenanceFeatureTest(BaseFeatureTest):
self.page.click_modal('OK', True)
self.page.wait_for_element_to_disappear(
lambda driver: driver.find_element(
By.XPATH, NavMenuLocators.maintenance_operation))
By.XPATH, NavMenuLocators.maintenance_operation), 10)
# Wait for the backup status alertfier
self.wait.until(EC.visibility_of_element_located(

View File

@ -78,7 +78,7 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest):
try:
wait = WebDriverWait(self.page.driver, 2)
is_error = wait.until(EC.presence_of_element_located(
(By.XPATH, "//div[@class ='MuiDialogTitle-root']"
(By.XPATH, "//div[contains(@class,'MuiDialogTitle-root')]"
"//div[text()='Debugger Error']")
))