diff --git a/src/registrar/tests/test_views_domains_json.py b/src/registrar/tests/test_views_domains_json.py index 09a233768..70ae23b43 100644 --- a/src/registrar/tests/test_views_domains_json.py +++ b/src/registrar/tests/test_views_domains_json.py @@ -181,7 +181,8 @@ class GetDomainsJsonTest(TestWithUser, WebTest): # Check svg_icon svg_icon_expected = ( "visibility" - if expected_domains[i].state + if not user_domain_role_exists + or expected_domains[i].state in [ Domain.State.DELETED, Domain.State.ON_HOLD,