mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 15:36:06 -06:00
Fixed the feature test failures for Advanced Server 14.
This commit is contained in:
parent
d93c701cf6
commit
49fe54bc16
@ -274,7 +274,7 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
|||||||
default_binary_path = self.server['default_binary_paths']
|
default_binary_path = self.server['default_binary_paths']
|
||||||
if default_binary_path is not None:
|
if default_binary_path is not None:
|
||||||
def get_server_version_string():
|
def get_server_version_string():
|
||||||
server_version = {15000: '15', 140000: '14', 130000: '13',
|
server_version = {150000: '15', 140000: '14', 130000: '13',
|
||||||
120000: '12', 110000: '11', 100000: '10'}
|
120000: '12', 110000: '11', 100000: '10'}
|
||||||
for k, v in server_version.items():
|
for k, v in server_version.items():
|
||||||
if k <= self.server_information['server_version']:
|
if k <= self.server_information['server_version']:
|
||||||
@ -290,15 +290,20 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
|||||||
"//div[span[text()='PostgreSQL {}']]"
|
"//div[span[text()='PostgreSQL {}']]"
|
||||||
"/following-sibling::div//div/input".format(
|
"/following-sibling::div//div/input".format(
|
||||||
server_version))
|
server_version))
|
||||||
exiting_path = path_input.get_property("value")
|
existing_path = path_input.get_property("value")
|
||||||
if exiting_path != default_binary_path['pg']:
|
if existing_path != default_binary_path['pg']:
|
||||||
path_already_set = False
|
path_already_set = False
|
||||||
self.page.clear_edit_box(path_input)
|
self.page.clear_edit_box(path_input)
|
||||||
path_input.click()
|
path_input.click()
|
||||||
path_input.send_keys(default_binary_path['pg'])
|
path_input.send_keys(default_binary_path['pg'])
|
||||||
elif serv == 'ppas' and server_version is not None:
|
elif serv == 'ppas' and server_version is not None:
|
||||||
|
path_input = \
|
||||||
if exiting_path != default_binary_path['pg']:
|
self.page.find_by_xpath(
|
||||||
|
"//div[span[text()='EDB Advanced Server {}']]"
|
||||||
|
"/following-sibling::div//div/input".format(
|
||||||
|
server_version))
|
||||||
|
existing_path = path_input.get_property("value")
|
||||||
|
if existing_path != default_binary_path['ppas']:
|
||||||
path_already_set = False
|
path_already_set = False
|
||||||
path_input = self.page.find_by_xpath(
|
path_input = self.page.find_by_xpath(
|
||||||
"//div[span[text()='EDB Advanced Server {}']]"
|
"//div[span[text()='EDB Advanced Server {}']]"
|
||||||
|
Loading…
Reference in New Issue
Block a user