finalized updates

This commit is contained in:
asaki222 2024-09-13 14:28:52 -04:00
parent ff27eabfe0
commit d4475f074e
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
3 changed files with 2 additions and 42 deletions

View file

@ -15,12 +15,12 @@
</svg> </svg>
{% endif %} {% endif %}
{% endif %} {% endif %}
<a href="{% namespaced_url 'domain-request' this_step %}"" <a href="{% namespaced_url 'domain-request' this_step %}"
{% if this_step == steps.current %} {% if this_step == steps.current %}
class="usa-current" class="usa-current"
{% else %} {% else %}
class="link_usa-checked" class="link_usa-checked"
{% endif%} > {% endif%}>
{{ form_titles|get_item:this_step }} {{ form_titles|get_item:this_step }}
</a> </a>
</span> </span>

View file

@ -256,14 +256,6 @@ class TestDomainRequest(TestCase):
email_allowed.delete() email_allowed.delete()
@less_console_noise_decorator
def test_submit_from_started_sends_email(self):
msg = "Create a domain request and submit it and see if email was sent."
domain_request = completed_domain_request(user=self.dummy_user_2)
self.check_email_sent(
domain_request, msg, "submit", 1, expected_content="Lava", expected_email=self.dummy_user_2.email
)
@override_flag("profile_feature", active=True) @override_flag("profile_feature", active=True)
@less_console_noise_decorator @less_console_noise_decorator
def test_submit_from_started_sends_email_to_creator(self): def test_submit_from_started_sends_email_to_creator(self):

View file

@ -957,13 +957,6 @@ class UserProfileTests(TestWithUser, WebTest):
self.assertContains(response, "Your profile") self.assertContains(response, "Your profile")
self.assertNotContains(response, "Your contact information") self.assertNotContains(response, "Your contact information")
@less_console_noise_decorator
def test_domain_your_contact_information_when_profile_feature_off(self):
"""test that Your contact information is accessible when profile_feature is off"""
with override_flag("profile_feature", active=False):
response = self.client.get(f"/domain/{self.domain.id}/your-contact-information", follow=True)
self.assertContains(response, "Your contact information")
@less_console_noise_decorator @less_console_noise_decorator
def test_domain_your_contact_information_when_profile_feature_on(self): def test_domain_your_contact_information_when_profile_feature_on(self):
"""test that Your contact information is not accessible when profile feature is on""" """test that Your contact information is not accessible when profile feature is on"""
@ -992,31 +985,6 @@ class UserProfileTests(TestWithUser, WebTest):
response = self.client.get(f"/domain-request/{domain_request.id}/withdraw", follow=True) response = self.client.get(f"/domain-request/{domain_request.id}/withdraw", follow=True)
self.assertContains(response, "Your profile") self.assertContains(response, "Your profile")
@less_console_noise_decorator
def test_request_when_profile_feature_off(self):
"""test that Your profile is not in request page when profile feature is off"""
contact_user, _ = Contact.objects.get_or_create(
first_name="Hank",
last_name="McFakerson",
)
site = DraftDomain.objects.create(name="igorville.gov")
domain_request = DomainRequest.objects.create(
creator=self.user,
requested_domain=site,
status=DomainRequest.DomainRequestStatus.SUBMITTED,
senior_official=contact_user,
submitter=contact_user,
)
with override_flag("profile_feature", active=False):
response = self.client.get(f"/domain-request/{domain_request.id}", follow=True)
self.assertNotContains(response, "Your profile")
response = self.client.get(f"/domain-request/{domain_request.id}/withdraw", follow=True)
self.assertNotContains(response, "Your profile")
# cleanup
domain_request.delete()
site.delete()
@less_console_noise_decorator @less_console_noise_decorator
def test_user_profile_form_submission(self): def test_user_profile_form_submission(self):
"""test user profile form submission""" """test user profile form submission"""