From 048205ead5c74c8e9c3994b9f3f91d76bdf32dc4 Mon Sep 17 00:00:00 2001 From: Harshal Dhumal Date: Wed, 30 Aug 2017 11:12:27 +0100 Subject: [PATCH] Rename the debugger XSS test function to 'a_test_function' to ensure it appears near the top of the tree and not off-screen. This should not be a permanent fix (the test should be able to scroll the treeview), but works for now to stop tests failing. --- .../feature_tests/xss_checks_pgadmin_debugger_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/pgadmin/feature_tests/xss_checks_pgadmin_debugger_test.py b/web/pgadmin/feature_tests/xss_checks_pgadmin_debugger_test.py index c927cfedf..4b35f886a 100644 --- a/web/pgadmin/feature_tests/xss_checks_pgadmin_debugger_test.py +++ b/web/pgadmin/feature_tests/xss_checks_pgadmin_debugger_test.py @@ -30,7 +30,7 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest): # Some test function is needed for debugger test_utils.create_debug_function(self.server, "postgres", - "test_function") + "a_test_function") def runTest(self): self.page.wait_for_spinner_to_disappear() @@ -40,7 +40,7 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest): def after(self): test_utils.drop_debug_function(self.server, "postgres", - "test_function") + "a_test_function") self.page.remove_server(self.server) def _function_node_expandable(self): @@ -50,7 +50,7 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest): self.page.toggle_open_tree_item('Schemas') self.page.toggle_open_tree_item('public') self.page.toggle_open_tree_item('Functions') - self.page.select_tree_item("test_function()") + self.page.select_tree_item("a_test_function()") def _debug_function(self): self.page.driver.find_element_by_link_text("Object").click()