Fixed #21227 -- Added workaround for selenium test failures

Added a refresh() before quit() in the selenium tests, since this
solves the problem of spurious test failures in some environments.
This commit is contained in:
Kevin Christopher Henry 2013-10-24 15:01:25 -04:00 committed by Tim Graham
parent 43569647ab
commit 08c9ab5a0f
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
@classmethod @classmethod
def _tearDownClassInternal(cls): def _tearDownClassInternal(cls):
if hasattr(cls, 'selenium'): if hasattr(cls, 'selenium'):
cls.selenium.refresh() # see ticket #21227
cls.selenium.quit() cls.selenium.quit()
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal() super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()

View File

@ -189,6 +189,7 @@ class JavascriptI18nTests(LiveServerTestCase):
@classmethod @classmethod
def tearDownClass(cls): def tearDownClass(cls):
cls.selenium.refresh() # see ticket #21227
cls.selenium.quit() cls.selenium.quit()
super(JavascriptI18nTests, cls).tearDownClass() super(JavascriptI18nTests, cls).tearDownClass()