fix: add texts after template reset (#6237)

* fix: add texts after template reset

* fix unit tests

(cherry picked from commit d937ee3dda)
This commit is contained in:
Elio Bischof 2023-08-04 20:12:44 +02:00 committed by Livio Spring
parent 61742139e0
commit 5828dd493d
No known key found for this signature in database
GPG Key ID: 26BB1C2FA5952CF0
2 changed files with 228 additions and 222 deletions

File diff suppressed because it is too large Load Diff

View File

@ -801,6 +801,11 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
&org.NewAggregate("org1").Aggregate, domain.LoginCustomText, domain.LoginKeyRegistrationOptionExternalLoginDescription, "ExternalLoginDescription", language.English,
),
),
eventFromEventPusher(
org.NewCustomTextSetEvent(context.Background(),
&org.NewAggregate("org1").Aggregate, domain.LoginCustomText, domain.LoginKeyRegistrationOptionLoginButtonText, "LoginButtonText", language.English,
),
),
eventFromEventPusher(
org.NewCustomTextSetEvent(context.Background(),
&org.NewAggregate("org1").Aggregate, domain.LoginCustomText, domain.LoginKeyRegistrationUserTitle, "Title", language.English,
@ -1372,6 +1377,7 @@ func TestCommandSide_SetCustomOrgLoginText(t *testing.T) {
Description: "Description",
RegisterUsernamePasswordButtonText: "RegisterUsernamePasswordButtonText",
ExternalLoginDescription: "ExternalLoginDescription",
LoginButtonText: "LoginButtonText",
},
RegistrationUser: domain.RegistrationUserScreenText{
Title: "Title",