mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Fixed following feature tests:
1) Handled click event in query tool due to intermediate clicking issue. 2) Observed that the database is not getting created in a test case, so failed the test case there only.
This commit is contained in:
committed by
Akshay Joshi
parent
5316a28e6c
commit
ae462ed099
@@ -17,6 +17,7 @@ from regression.feature_utils.base_feature_test import BaseFeatureTest
|
|||||||
from regression.python_test_utils import test_utils
|
from regression.python_test_utils import test_utils
|
||||||
from regression.python_test_utils import test_gui_helper
|
from regression.python_test_utils import test_gui_helper
|
||||||
from regression.feature_utils.locators import NavMenuLocators
|
from regression.feature_utils.locators import NavMenuLocators
|
||||||
|
from regression.feature_utils.tree_area_locators import TreeAreaLocators
|
||||||
|
|
||||||
|
|
||||||
class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
||||||
@@ -55,7 +56,10 @@ class PGUtilitiesBackupFeatureTest(BaseFeatureTest):
|
|||||||
self.server['sslmode']
|
self.server['sslmode']
|
||||||
)
|
)
|
||||||
test_utils.drop_database(connection, self.database_name)
|
test_utils.drop_database(connection, self.database_name)
|
||||||
test_utils.create_database(self.server, self.database_name)
|
db_id = test_utils.create_database(self.server, self.database_name)
|
||||||
|
if not db_id:
|
||||||
|
self.assertTrue(False, "Database {} is not "
|
||||||
|
"created".format(self.database_name))
|
||||||
test_gui_helper.close_bgprocess_popup(self)
|
test_gui_helper.close_bgprocess_popup(self)
|
||||||
self.page.add_server(self.server)
|
self.page.add_server(self.server)
|
||||||
|
|
||||||
|
|||||||
@@ -338,9 +338,7 @@ CREATE TABLE public.nonintpkey
|
|||||||
self.assertEquals(text, messages_ele.text)
|
self.assertEquals(text, messages_ele.text)
|
||||||
|
|
||||||
def _verify_row_data(self, is_new_row, config_check_data):
|
def _verify_row_data(self, is_new_row, config_check_data):
|
||||||
self.page.find_by_css_selector(
|
self.page.click_execute_query_button()
|
||||||
QueryToolLocators.btn_execute_query_css).click()
|
|
||||||
|
|
||||||
# First row if row height = 0, second row if its 25
|
# First row if row height = 0, second row if its 25
|
||||||
row_height = 0 if is_new_row else 25
|
row_height = 0 if is_new_row else 25
|
||||||
|
|
||||||
|
|||||||
@@ -171,10 +171,7 @@ class PgadminPage:
|
|||||||
|
|
||||||
def execute_query(self, query):
|
def execute_query(self, query):
|
||||||
self.fill_codemirror_area_with(query)
|
self.fill_codemirror_area_with(query)
|
||||||
execute_button = self.find_by_css_selector(
|
self.click_execute_query_button()
|
||||||
QueryToolLocators.btn_execute_query_css)
|
|
||||||
execute_button.click()
|
|
||||||
self.wait_for_query_tool_loading_indicator_to_disappear()
|
|
||||||
|
|
||||||
def click_execute_query_button(self):
|
def click_execute_query_button(self):
|
||||||
retry = 5
|
retry = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user