fixed a test for view icon

This commit is contained in:
David Kennedy 2024-08-01 18:54:41 -04:00
parent e614a0e6be
commit e0392920b8
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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,