diff --git a/ansible_wisdom/main/templates/base.html b/ansible_wisdom/main/templates/base.html
index 0079437ed..a7dc6bcf4 100644
--- a/ansible_wisdom/main/templates/base.html
+++ b/ansible_wisdom/main/templates/base.html
@@ -19,17 +19,6 @@
{% endif %}
- {% if not use_tech_preview %}
-
-
- {% endif %}
{% endblock banner %}
{% if messages %}
diff --git a/ansible_wisdom/users/tests/test_views.py b/ansible_wisdom/users/tests/test_views.py
index ca8ef481c..c6b76e67a 100644
--- a/ansible_wisdom/users/tests/test_views.py
+++ b/ansible_wisdom/users/tests/test_views.py
@@ -48,7 +48,6 @@ def test_unauthorized(self):
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Please log in using the button below.", count=1)
self.assertNotContains(response, "Role:")
- self.assertContains(response, "pf-c-alert__title", count=1)
self.assertNotContains(response, "Admin Portal")
@override_settings(ANSIBLE_AI_ENABLE_TECH_PREVIEW=True)
@@ -81,7 +80,7 @@ def test_rh_admin_with_seat_and_no_secret(self):
response = self.client.get(reverse("home"))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Role: administrator, licensed user")
- self.assertContains(response, "pf-c-alert__title", count=2)
+ self.assertContains(response, "pf-c-alert__title", count=1)
self.assertContains(response, "model settings have not been configured", count=1)
self.assertContains(response, "Admin Portal", count=1)
@@ -108,14 +107,12 @@ def test_rh_admin_without_seat_and_with_no_secret_with_tech_preview(self):
def test_rh_admin_without_seat_and_with_no_secret_no_sub_without_tech_preview(self):
response = self.client.get(reverse("home"))
self.assertEqual(response.status_code, 200)
- self.assertContains(response, "pf-c-alert__title")
self.assertContains(response, "Your organization doesn't have access to Project Name.")
self.assertContains(
response,
"You do not have an Active subscription to Ansible Automation Platform "
"which is required to use Project Name.",
)
- self.assertContains(response, "The Project Name Technical Preview is no longer available")
self.assertContains(response, "Role: administrator")
self.assertContains(response, "Admin Portal")
@@ -126,7 +123,6 @@ def test_rh_admin_with_a_seat_and_with_secret(self):
response = self.client.get(reverse("home"))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Role: administrator, licensed user")
- self.assertContains(response, "pf-c-alert__title", count=1)
self.assertContains(response, "Admin Portal")
@@ -189,11 +185,9 @@ def test_rh_user_without_seat_and_no_secret_without_tech_preview(self):
response = self.client.get(reverse("home"))
self.assertEqual(response.status_code, 200)
self.assertNotContains(response, "Role:")
- self.assertContains(response, "pf-c-alert__title", count=1)
self.assertContains(response, "You do not have a licensed seat for Project Name")
self.assertNotContains(response, "You will be limited to features of the Project Name")
self.assertNotContains(response, "Admin Portal")
- self.assertContains(response, "The Project Name Technical Preview is no longer available")
@override_settings(WCA_SECRET_DUMMY_SECRETS='')
@patch.object(ansible_ai_connect.users.models.User, "rh_org_has_subscription", True)
@@ -214,7 +208,6 @@ def test_rh_user_with_a_seat_and_with_secret(self):
self.assertEqual(response.status_code, 200)
self.assertContains(response, "Role: licensed user")
self.assertContains(response, "Project Name")
- self.assertContains(response, "pf-c-alert__title", count=1)
self.assertNotContains(response, "Admin Portal")
@override_settings(ANSIBLE_AI_ENABLE_TECH_PREVIEW=True)
@@ -241,7 +234,6 @@ def test_user_without_seat_and_with_secret_without_tech_preview(self):
response, "Contact your Red Hat Organization's administrator for more information."
)
self.assertContains(response, "fa-exclamation-circle")
- self.assertContains(response, "The Project Name Technical Preview is no longer available")
@override_settings(AUTHZ_BACKEND_TYPE='dummy')
@@ -286,7 +278,6 @@ def test_docs_url_for_unseated_user_without_tech_preview(self):
)
self.client.login(username=self.user.username, password=self.password)
r = self.client.get(reverse('home'))
- self.assertContains(r, "pf-c-alert__title", count=1)
self.assertContains(r, "Your organization doesn't have access to Project Name.")
self.assertIn(settings.COMMERCIAL_DOCUMENTATION_URL, str(r.content))