diff --git a/pkg/portal/org_test.go b/pkg/portal/org_test.go index 0cd8df9e..da06360d 100644 --- a/pkg/portal/org_test.go +++ b/pkg/portal/org_test.go @@ -1620,10 +1620,10 @@ func TestOrgMembersShowsEmailInvites(t *testing.T) { foundExistingUser := false foundEmailInvite := false for _, m := range renderCtx.Members { - if m.Email == existingUser.Email { + if m.Email == common.MaskEmail(existingUser.Email, '*') { foundExistingUser = true } - if m.Email == emailInvite { + if m.Email == common.MaskEmail(emailInvite, '*') { foundEmailInvite = true } }