MM-63350 Add tests for inviting guest users to teams (#30448)

* MM-63350 Add tests for inviting guest users to teams

* Fix style issue

* Fix one more issue
Этот коммит содержится в:
Harrison Healey
2025-03-19 17:27:33 -04:00
коммит произвёл GitHub
родитель 2e44a6a1ed
Коммит 3b9f9b209a
4 изменённых файлов: 106 добавлений и 9 удалений

Просмотреть файл

@@ -6344,9 +6344,7 @@ func TestPromoteGuestToUser(t *testing.T) {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.GuestAccountsSettings.Enable = true })
th.App.Srv().SetLicense(model.NewTestLicense())
user := th.BasicUser
_, appErr := th.App.UpdateUserRoles(th.Context, user.Id, model.SystemGuestRoleId, false)
require.Nil(t, appErr)
user := th.CreateGuestUser(t)
th.TestForSystemAdminAndLocal(t, func(t *testing.T, c *model.Client4) {
_, _, err := c.GetUser(context.Background(), user.Id, "")