Skip to content

Commit 0c9c485

Browse files
committed
feat(notifications): add comment ent in tests for enterprise feature
1 parent d492d09 commit 0c9c485

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

coderd/notifications/notifications_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,14 @@ func TestNotificationTemplates_Golden(t *testing.T) {
10081008
db := api.Database
10091009
firstUser := coderdtest.CreateFirstUser(t, adminClient)
10101010

1011+
if tc.appName != "" || tc.logoURL != "" {
1012+
err = adminClient.UpdateAppearance(context.Background(), codersdk.UpdateAppearanceConfig{
1013+
ApplicationName: tc.appName,
1014+
LogoURL: tc.logoURL,
1015+
})
1016+
require.NoError(t, err)
1017+
}
1018+
10111019
_, user := coderdtest.CreateAnotherUserMutators(
10121020
t,
10131021
adminClient,
@@ -1098,6 +1106,9 @@ func TestNotificationTemplates_Golden(t *testing.T) {
10981106
)
10991107
require.NoError(t, err)
11001108

1109+
// we apply ApplicationName and LogoURL changes directly in the db
1110+
// as appearance changes are enterprise features and we do not want to mix those
1111+
// can't use the api
11011112
if tc.appName != "" {
11021113
err = (*db).UpsertApplicationName(ctx, "Custom Application")
11031114
require.NoError(t, err)

0 commit comments

Comments
 (0)