created new FT file at functional_tests.test_my_lists, where the first test model focuses on the integrity of cookie sessions; much of FT login/logout logic offloaded to helper functions in .base;logout django templating added to base.html

This commit is contained in:
Disco DeDisco
2026-02-01 20:06:01 -05:00
parent 36f4182a4f
commit cf33f0ccd4
5 changed files with 51 additions and 10 deletions

View File

@@ -34,8 +34,8 @@ class LoginTest(FunctionalTest):
self.browser.get(url)
self.wait_for(
lambda: self.browser.find_element(By.CSS_SELECTOR, "#id_logout"),
)
navbar = self.browser.find_element(By.CSS_SELECTOR, ".navbar")
self.assertIn(TEST_EMAIL, navbar.text)
self.wait_to_be_logged_in(email=TEST_EMAIL)
self.browser.find_element(By.CSS_SELECTOR, "#id_logout").click()
self.wait_to_be_logged_out(email=TEST_EMAIL)