Kaydet (Commit) 08c9ab5a authored tarafından Kevin Christopher Henry's avatar Kevin Christopher Henry Kaydeden (comit) Tim Graham

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.
üst 43569647
......@@ -32,6 +32,7 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
@classmethod
def _tearDownClassInternal(cls):
if hasattr(cls, 'selenium'):
cls.selenium.refresh() # see ticket #21227
cls.selenium.quit()
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
......
......@@ -189,6 +189,7 @@ class JavascriptI18nTests(LiveServerTestCase):
@classmethod
def tearDownClass(cls):
cls.selenium.refresh() # see ticket #21227
cls.selenium.quit()
super(JavascriptI18nTests, cls).tearDownClass()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment