mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-25 18:20:20 -06:00
In GUI tests, do not try to set the binary path in preferences if it is blank
This commit is contained in:
parent
5113fda7a6
commit
5981f4bd13
@ -291,7 +291,8 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
||||
server_types = default_binary_path.keys()
|
||||
path_already_set = True
|
||||
for serv in server_types:
|
||||
if serv == 'pg' and server_version is not None:
|
||||
if serv == 'pg' and server_version is not None and \
|
||||
default_binary_path['pg'] != '':
|
||||
path_input = \
|
||||
self.page.find_by_xpath(
|
||||
"//div[span[text()='PostgreSQL {}']]"
|
||||
@ -303,7 +304,8 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
||||
self.page.clear_edit_box(path_input)
|
||||
path_input.click()
|
||||
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 and \
|
||||
default_binary_path['ppas'] != '':
|
||||
path_input = \
|
||||
self.page.find_by_xpath(
|
||||
"//div[span[text()='EDB Advanced Server {}']]"
|
||||
|
Loading…
Reference in New Issue
Block a user