Skip to content

Commit 8498641

Browse files
committed
[fix] Fixed selenium tests
1 parent 212c450 commit 8498641

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/testapp/tests/test_selenium.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ def setUp(self):
2525
username=self.admin_username, password=self.admin_password
2626
)
2727

28+
def tearDown(self):
29+
# SeleniumTestMixin shares one browser (cls.web_driver) across every
30+
# test method in the class; without clearing cookies here, a session
31+
# left logged in by this test leaks into the next one and breaks its
32+
# login()/logout() flow.
33+
self.web_driver.delete_all_cookies()
34+
2835
def _test_multitenant_autocomplete_org_field(
2936
self, username, password, path, visible, hidden
3037
):

0 commit comments

Comments
 (0)