From 6a7dbbab950c02ef42c59eaae4b10f4ede35d3ea Mon Sep 17 00:00:00 2001 From: Seamus Johnston Date: Tue, 24 Jan 2023 10:20:44 -0600 Subject: [PATCH] Fix rebase errors --- src/registrar/tests/test_views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/registrar/tests/test_views.py b/src/registrar/tests/test_views.py index 1bcdcd7c1..165f26a49 100644 --- a/src/registrar/tests/test_views.py +++ b/src/registrar/tests/test_views.py @@ -743,6 +743,12 @@ class DomainApplicationTests(TestWithUser, WebTest): def test_application_ao_dynamic_text(self): type_page = self.app.get(reverse("application:")).follow() + # django-webtest does not handle cookie-based sessions well because it keeps + # resetting the session key on each new request, thus destroying the concept + # of a "session". We are going to do it manually, saving the session ID here + # and then setting the cookie on each request. + session_id = self.app.cookies[settings.SESSION_COOKIE_NAME] + # ---- TYPE PAGE ---- type_form = type_page.form type_form["organization_type-organization_type"] = "federal"