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 for the visibility of the grid to appear
wait.until(EC.visibility_of_element_located( wait.until(EC.visibility_of_element_located(
(By.XPATH, (By.XPATH,
"//*[contains(@class,'makeStyles-columnName')]" "//*[@id='id-dataoutput']"
) )
)) ))
wait.until(EC.visibility_of_element_located( wait.until(EC.visibility_of_element_located(
(By.XPATH, (By.XPATH,
"//*[contains(@class,'makeStyles-columnName') " "//*[@id='id-dataoutput']//"
"and //span[text()='{}']]".format(batch['datatype'][0]) "span[contains(text(),'{}')]".format(batch['datatype'][0])
) )
)) ))

View File

@ -252,7 +252,7 @@ CREATE TABLE public.nonintpkey
else: else:
key_to_press = Keys.CONTROL key_to_press = Keys.CONTROL
actions = ActionChains(self.driver) 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)\ actions.key_down(key_to_press).send_keys('a').key_up(key_to_press)\
.send_keys(Keys.DELETE).perform() .send_keys(Keys.DELETE).perform()
actions.send_keys(value) .perform() actions.send_keys(value) .perform()

View File

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

View File

@ -167,7 +167,7 @@ class QueryToolLocators:
query_history_selected_icon = query_history_selected + ' svg' query_history_selected_icon = query_history_selected + ' svg'
invalid_query_history_entry_css = \ 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']" explain_details = "#id-explain div[data-label='explain-details']"