Rework SeleniumTestCase.ensure_registered to get test dumps.

Looks like a lot of problems are happening before we even enter the test case - so our retry handling for instance will not work and we don't get pretty test outputs.
This commit is contained in:
John Chilton
2019-09-23 12:52:10 -04:00
parent f924cd1f13
commit 69bb18a0e5
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -223,6 +223,8 @@ class SeleniumTestCase(FunctionalTestCase, NavigatesGalaxy, UsesApiTestCaseMixin
Overriding this instead of setUp will ensure debug data such as screenshots and stack traces
are dumped if there are problems with the setup and it will be re-ran on test retries.
"""
if self.ensure_registered:
self.login()
def tearDown(self):
exception = None
@@ -298,9 +300,6 @@ class SeleniumTestCase(FunctionalTestCase, NavigatesGalaxy, UsesApiTestCaseMixin
self._setup_galaxy_logging()
if self.ensure_registered:
self.login()
def _setup_galaxy_logging(self):
self.home()
self.driver.execute_script(SETUP_LOGGING_JS)
@@ -10,6 +10,7 @@ class LibraryLandingTestCase(SeleniumTestCase):
requires_admin = True
def setup_with_driver(self):
super(LibraryLandingTestCase, self).setup_with_driver()
self.admin_login()
self.libraries_open()