Skip to content

Commit

Permalink
✅ [#595] Check that status sidebar is present in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Feb 14, 2025
1 parent 492e498 commit 6a3f05c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions backend/src/openarchiefbeheer/config/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from django.urls import reverse

from django_webtest import WebTest
from maykin_2fa.test import disable_admin_mfa

from openarchiefbeheer.accounts.tests.factories import UserFactory


class HealthCheckTests(WebTest):
@disable_admin_mfa()
def test_health_check(self):
user = UserFactory.create(superuser=True)
url = reverse("admin:index")

response = self.app.get(url, user=user)

self.assertEqual(response.status_code, 200)
self.assertEqual(
len(response.html.find_all(id="configuration-health-check")), 1
)

0 comments on commit 6a3f05c

Please sign in to comment.