2017-02-22 06:41:28 -06:00
|
|
|
import config as app_config
|
|
|
|
from pgadmin.utils.route import BaseTestGenerator
|
|
|
|
from regression.feature_utils.pgadmin_page import PgadminPage
|
|
|
|
|
|
|
|
|
|
|
|
class BaseFeatureTest(BaseTestGenerator):
|
|
|
|
def setUp(self):
|
|
|
|
if app_config.SERVER_MODE:
|
|
|
|
self.skipTest("Currently, config is set to start pgadmin in server mode. "
|
|
|
|
"This test doesn't know username and password so doesn't work in server mode")
|
|
|
|
|
2017-03-01 07:20:06 -06:00
|
|
|
self.page = PgadminPage(self.driver, app_config)
|
2017-02-22 06:41:28 -06:00
|
|
|
self.page.wait_for_app()
|
2017-03-01 07:20:06 -06:00
|
|
|
self.page.wait_for_spinner_to_disappear()
|
|
|
|
self.page.reset_layout()
|
|
|
|
self.page.wait_for_spinner_to_disappear()
|
2017-02-22 06:41:28 -06:00
|
|
|
|
|
|
|
def failureException(self, *args, **kwargs):
|
|
|
|
self.page.driver.save_screenshot('/tmp/feature_test_failure.png')
|
|
|
|
return AssertionError(*args, **kwargs)
|
|
|
|
|
|
|
|
def runTest(self):
|
|
|
|
pass
|