diff --git a/hypha/apply/users/tests/test_utils.py b/hypha/apply/users/tests/test_utils.py
index 6c85337205a586362b50499d4ed59c7cdf1a05c3..f84a4db155def32398b41de2a177170e82d735c5 100644
--- a/hypha/apply/users/tests/test_utils.py
+++ b/hypha/apply/users/tests/test_utils.py
@@ -1,6 +1,6 @@
 from django.core import mail
+from test.support import EnvironmentVarGuard
 from django.test import TestCase, override_settings
-from django.conf import settings
 
 from hypha.apply.users.tests.factories import UserFactory
 
@@ -9,7 +9,12 @@ from ..utils import send_activation_email
 
 @override_settings(ROOT_URLCONF='hypha.apply.urls')
 class TestActivationEmail(TestCase):
+    def setUp(self) -> None:
+        self.env = EnvironmentVarGuard()
+        self.env.set('PRIMARY_HOST', 'primary-domain.org')
+
     def test_activation_email_includes_link(self):
-        send_activation_email(UserFactory())
-        self.assertEqual(len(mail.outbox), 1)
-        self.assertContains(mail.outbox[0], settings.WAGTAILADMIN_BASE_URL)
+        with self.env:
+            send_activation_email(UserFactory())
+            assert len(mail.outbox) == 1
+            assert "password reset form at https://primary-domain.org" in mail.outbox[0]
diff --git a/requirements.txt b/requirements.txt
index 0231604ad8f329a9faf005a7a725b91397d60e6b..2482a2d28a9541d7a7ada02c662ad7d23cbab953 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -48,6 +48,6 @@ social_auth_app_django==5.0.0
 tomd==0.1.3
 wagtail-cache==1.0.2
 wagtail-purge==0.1
-wagtail==3.0.0
+wagtail==3.0.1
 whitenoise==5.3.0
 xmltodict==0.12.0