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.

This commit is contained in:
Dave Page 2017-04-07 12:41:54 +01:00
parent de80545400
commit 8a01cdfaf9
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ $WORKSPACE/pgadmin-venv/bin/pip install -r web/regression/requirements.txt
echo "Running regression tests..." echo "Running regression tests..."
echo 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 "Cleaning up..."
echo echo

View File

@ -65,6 +65,7 @@ class PgadminPage:
self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "' and @class='aciTreeItem']").click() self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "' and @class='aciTreeItem']").click()
def toggle_open_tree_item(self, tree_item_text): 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() self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "']/../*[@class='aciTreeButton']").click()
def find_by_xpath(self, xpath): def find_by_xpath(self, xpath):