Fixed feature test cases.

This commit is contained in:
Pradip Parkale 2022-05-24 11:43:57 +05:30 committed by Akshay Joshi
parent 6d26d5833f
commit befd4b1fa8
4 changed files with 8 additions and 8 deletions

View File

@ -186,13 +186,13 @@ class PGDataypeFeatureTest(BaseFeatureTest):
# wait for the visibility of the grid to appear
wait.until(EC.visibility_of_element_located(
(By.XPATH,
"//*[contains(@class,'makeStyles-columnName')]"
"//*[@id='id-dataoutput']"
)
))
wait.until(EC.visibility_of_element_located(
(By.XPATH,
"//*[contains(@class,'makeStyles-columnName') "
"and //span[text()='{}']]".format(batch['datatype'][0])
"//*[@id='id-dataoutput']//"
"span[contains(text(),'{}')]".format(batch['datatype'][0])
)
))

View File

@ -252,7 +252,7 @@ CREATE TABLE public.nonintpkey
else:
key_to_press = Keys.CONTROL
actions = ActionChains(self.driver)
actions.move_to_element(jsoneditor_area_ele).click().perform()
# actions.move_to_element(jsoneditor_area_ele).click().perform()
actions.key_down(key_to_press).send_keys('a').key_up(key_to_press)\
.send_keys(Keys.DELETE).perform()
actions.send_keys(value) .perform()

View File

@ -169,9 +169,9 @@ class CheckForXssFeatureTest(BaseFeatureTest):
self.page.click_tab("Dependents")
source_code = \
self.page.find_by_xpath(
"//*[@id='5']/table/tbody/tr/td/div/div[1]/div/"
"div[2]/div/div/div/div[2]").get_attribute(
'innerHTML')
"//*[@id='5']/table/tbody/tr/td/div/div/div[2]/div"
"/div[2]/div[1]/div/div/div/div/"
"div/div[2]").get_attribute('innerHTML')
retry = 0
except WebDriverException as e:
print("Exception in dependent tab {0}".format(retry),

View File

@ -167,7 +167,7 @@ class QueryToolLocators:
query_history_selected_icon = query_history_selected + ' svg'
invalid_query_history_entry_css = \
"#id-history li[data-label='history-entry'][class*='itemError']"
"#id-history li[data-label='history-entry']"
explain_details = "#id-explain div[data-label='explain-details']"