mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-08 15:13:10 -06:00
Ensure the correct child node is selected on the expansion of the collection node.
This commit is contained in:
parent
25b6a0a1cf
commit
0a7d9a69f7
@ -927,7 +927,7 @@ define('pgadmin.browser.node', [
|
||||
};
|
||||
}
|
||||
|
||||
} else {
|
||||
} else if(tree.children(item).length == 1) {
|
||||
const first_child = tree.first(item);
|
||||
tree.select(first_child);
|
||||
}
|
||||
|
@ -68,23 +68,23 @@ class CheckForXssFeatureTest(BaseFeatureTest):
|
||||
self._tables_node_expandable()
|
||||
self._check_xss_in_browser_tree()
|
||||
self._check_xss_in_sql_tab()
|
||||
|
||||
self._check_xss_in_dependents_tab()
|
||||
# sometime the tab for dependent does not show info, so refreshing
|
||||
# the page and then again collapsing until the table node
|
||||
retry = 2
|
||||
while retry > 0:
|
||||
try:
|
||||
self.page.refresh_page()
|
||||
self.page.wait_for_spinner_to_disappear()
|
||||
self._tables_node_expandable()
|
||||
self._check_xss_in_dependents_tab()
|
||||
retry = 0
|
||||
except WebDriverException as e:
|
||||
print("Exception in dependent check {0}".format(retry),
|
||||
file=sys.stderr)
|
||||
if retry == 1:
|
||||
raise e
|
||||
retry -= 1
|
||||
# retry = 2
|
||||
# while retry > 0:
|
||||
# try:
|
||||
# self.page.refresh_page()
|
||||
# self.page.wait_for_spinner_to_disappear()
|
||||
# self._tables_node_expandable()
|
||||
# self._check_xss_in_dependents_tab()
|
||||
# retry = 0
|
||||
# except WebDriverException as e:
|
||||
# print("Exception in dependent check {0}".format(retry),
|
||||
# file=sys.stderr)
|
||||
# if retry == 1:
|
||||
# raise e
|
||||
# retry -= 1
|
||||
|
||||
# Query tool
|
||||
self.page.open_query_tool()
|
||||
|
Loading…
Reference in New Issue
Block a user