From 8a01cdfaf94fb4302cab2620ed8840a8108aa600 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Fri, 7 Apr 2017 12:41:54 +0100 Subject: [PATCH] Add a 0.5 second delay to treeview node expansion in the feature tests, to try to (temporarily) allow for script loading time. Tentatively enable the feature tests in CI to see if it works. --- ci/run_python_tests.sh | 2 +- web/regression/feature_utils/pgadmin_page.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/run_python_tests.sh b/ci/run_python_tests.sh index 31f10db2e..bdfef2892 100755 --- a/ci/run_python_tests.sh +++ b/ci/run_python_tests.sh @@ -29,7 +29,7 @@ $WORKSPACE/pgadmin-venv/bin/pip install -r web/regression/requirements.txt echo "Running regression tests..." echo -$WORKSPACE/pgadmin-venv/bin/python $WORKSPACE/web/regression/runtests.py --exclude feature_tests +$WORKSPACE/pgadmin-venv/bin/python $WORKSPACE/web/regression/runtests.py echo "Cleaning up..." echo diff --git a/web/regression/feature_utils/pgadmin_page.py b/web/regression/feature_utils/pgadmin_page.py index aa31bc047..4e19a774e 100644 --- a/web/regression/feature_utils/pgadmin_page.py +++ b/web/regression/feature_utils/pgadmin_page.py @@ -65,6 +65,7 @@ class PgadminPage: self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "' and @class='aciTreeItem']").click() def toggle_open_tree_item(self, tree_item_text): + time.sleep(0.5) self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "']/../*[@class='aciTreeButton']").click() def find_by_xpath(self, xpath):