mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fixed feature test cases.
This commit is contained in:
parent
6d26d5833f
commit
befd4b1fa8
@ -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])
|
||||
)
|
||||
))
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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),
|
||||
|
@ -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']"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user