updated to main

This commit is contained in:
asaki222 2024-09-11 16:36:58 -04:00
parent e7936cef5f
commit 91532adc30
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
3 changed files with 9 additions and 9 deletions

View file

@ -16,7 +16,7 @@
{% endif %}
{% endif %}
<a href="{% namespaced_url 'domain-request' this_step %}"
{% if this_step == steps.current %}
{% if this_step = steps.current %}
class="usa-current"
{% else %}
class="link_usa-checked"

View file

@ -110,8 +110,9 @@
{% endif %}
{% if DomainRequest.creator %}
{% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
{% include "includes/summary_item.html" with title='Your contact information' value=DomainRequest.creator contact='true' heading_level=heading_level %}
{% endif %}
{% if DomainRequest.other_contacts.all %}
{% include "includes/summary_item.html" with title='Other employees from your organization' value=DomainRequest.other_contacts.all contact='true' list='true' heading_level=heading_level %}
{% else %}

View file

@ -510,8 +510,6 @@ class HomeTests(TestWithUser):
)
self.client.force_login(restricted_user)
response = self.client.get("/request/", follow=True)
print('response')
print(response)
self.assertEqual(response.status_code, 403)
restricted_user.delete()
@ -772,6 +770,7 @@ class FinishUserProfileTests(TestWithUser, WebTest):
self.assertContains(completed_setup_page, "Youre about to start your .gov domain request")
incomplete_regular_user.delete()
class FinishUserProfileForOtherUsersTests(TestWithUser, WebTest):
"""A series of tests that target the user profile page intercept for incomplete IAL1 user profiles."""
@ -952,7 +951,7 @@ class UserProfileTests(TestWithUser, WebTest):
with override_flag("profile_feature", active=True):
response = self.client.get("/user-profile", follow=True)
self.assertContains(response, "Your profile")
@less_console_noise_decorator
def test_user_profile_back_button_when_coming_from_domain_request(self):
"""tests user profile when profile_feature is on,
@ -972,7 +971,7 @@ class UserProfileTests(TestWithUser, WebTest):
@less_console_noise_decorator
def test_domain_your_contact_information(self):
"""test that Your contact information is not accessible """
"""test that Your contact information is not accessible"""
response = self.client.get(f"/domain/{self.domain.id}/your-contact-information", follow=True)
self.assertEqual(response.status_code, 404)
@ -992,7 +991,7 @@ class UserProfileTests(TestWithUser, WebTest):
senior_official=contact_user,
submitter=contact_user,
)
response = self.client.get(f"/domain-request/{domain_request.id}", follow=True)
self.assertContains(response, "Your profile")
response = self.client.get(f"/domain-request/{domain_request.id}/withdraw", follow=True)
@ -1072,4 +1071,4 @@ class PortfoliosTests(TestWithUser, WebTest):
self.assertNotContains(home_page, self.portfolio.organization_name)
self.assertContains(home_page, 'id="domain-requests-header"')
self.assertContains(home_page, 'id="domain-requests-header"')