This commit is contained in:
Rebecca Hsieh 2025-01-09 09:19:36 -08:00
parent fbbdba001d
commit 0148b6c6bd
No known key found for this signature in database

View file

@ -606,10 +606,10 @@ class TestDomainDetailDomainRenewal(TestDomainOverview):
# Start on the Renewal page for the domain # Start on the Renewal page for the domain
renewal_page = self.app.get(reverse("domain-renewal", kwargs={"pk": self.domain_with_ip.id})) renewal_page = self.app.get(reverse("domain-renewal", kwargs={"pk": self.domain_with_ip.id}))
# Verify we see "Your Contact Information" on the renewal form # Verify we see "Your contact information" on the renewal form
self.assertContains(renewal_page, "Your Contact Information") self.assertContains(renewal_page, "Your contact information")
# Verify that the "Edit" button for Your Contact is there and links to correct URL # Verify that the "Edit" button for Your contact is there and links to correct URL
edit_button_url = reverse("user-profile") edit_button_url = reverse("user-profile")
self.assertContains(renewal_page, f'href="{edit_button_url}"') self.assertContains(renewal_page, f'href="{edit_button_url}"')
@ -2816,7 +2816,6 @@ class TestDomainRenewal(TestWithUser):
UserDomainRole.objects.filter(user=self.user, domain=self.domain_with_expiring_soon_date).delete() UserDomainRole.objects.filter(user=self.user, domain=self.domain_with_expiring_soon_date).delete()
self.client.force_login(self.user) self.client.force_login(self.user)
domains_page = self.client.get("/") domains_page = self.client.get("/")
self.assertNotContains(domains_page, "Expiring soon")
self.assertNotContains(domains_page, "will expire soon") self.assertNotContains(domains_page, "will expire soon")
@less_console_noise_decorator @less_console_noise_decorator
@ -2854,5 +2853,4 @@ class TestDomainRenewal(TestWithUser):
UserDomainRole.objects.filter(user=self.user, domain=self.domain_with_expiring_soon_date).delete() UserDomainRole.objects.filter(user=self.user, domain=self.domain_with_expiring_soon_date).delete()
self.client.force_login(self.user) self.client.force_login(self.user)
domains_page = self.client.get("/") domains_page = self.client.get("/")
self.assertNotContains(domains_page, "Expiring soon")
self.assertNotContains(domains_page, "will expire soon") self.assertNotContains(domains_page, "will expire soon")