Replace portal title with entity name
Store a short entity name instead of the full home heading so orgs can brand portals for sub-entities. Restore hero i18n composition and keep the English document title composed from the entity name. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -83,20 +83,20 @@ func TestCompliancePortal_VisitorConnectViaCIMD(t *testing.T) {
|
||||
const query = `
|
||||
query {
|
||||
currentCompliancePortal {
|
||||
title
|
||||
entityName
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
var result struct {
|
||||
CurrentCompliancePortal struct {
|
||||
Title string `json:"title"`
|
||||
EntityName string `json:"entityName"`
|
||||
} `json:"currentCompliancePortal"`
|
||||
}
|
||||
|
||||
err := visitor.ExecuteTrust(trustHost, query, nil, &result)
|
||||
require.NoError(t, err, "visitor session must authenticate trust GraphQL after CIMD connect")
|
||||
assert.NotEmpty(t, result.CurrentCompliancePortal.Title)
|
||||
assert.NotEmpty(t, result.CurrentCompliancePortal.EntityName)
|
||||
}
|
||||
|
||||
func TestCompliancePortal_UnknownCIMDClientRejected(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user