mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 06:55:54 -06:00
Fixed feature test cases for maintenance dialog.
This commit is contained in:
parent
9f836f5433
commit
e7e4d5cf0a
@ -79,7 +79,7 @@ class PGUtilitiesMaintenanceFeatureTest(BaseFeatureTest):
|
||||
|
||||
def runTest(self):
|
||||
self._open_maintenance_dialogue()
|
||||
self.page.click_modal('OK')
|
||||
self.page.click_modal('OK', True)
|
||||
self.page.wait_for_element_to_disappear(
|
||||
lambda driver: driver.find_element(
|
||||
By.XPATH, NavMenuLocators.maintenance_operation))
|
||||
|
@ -99,6 +99,10 @@ define([
|
||||
setExtraParameters(treeInfo) {
|
||||
var extraData = {};
|
||||
extraData['database'] = treeInfo.database._label;
|
||||
if(treeInfo?.schema) {
|
||||
extraData['schema'] = treeInfo?.schema._label;
|
||||
extraData['table'] = treeInfo?.table._label;
|
||||
}
|
||||
extraData['save_btn_icon'] = 'done';
|
||||
return extraData;
|
||||
},
|
||||
|
@ -88,7 +88,7 @@ class PgadminPage:
|
||||
# In case of react dialog we use different xpath
|
||||
if react_dialog:
|
||||
modal_button = self.find_by_xpath(
|
||||
"//div[@class ='MuiDialogContent-root']"
|
||||
"//button[contains(@class,'MuiButtonBase-root')]"
|
||||
"//span[text()='%s']" % button_text)
|
||||
else:
|
||||
modal_button = self.find_by_xpath(
|
||||
|
Loading…
Reference in New Issue
Block a user