[MM-27535] Change string to be more in-line with designs and the front end verbiage (#15320)

* Change string to be more in-line with designs and the front end verbiage

* Tweak tests to have the new string

* fix eetests
Этот коммит содержится в:
Nick Misasi
2020-08-25 14:12:22 -04:00
коммит произвёл GitHub
родитель 4f0a33eea7
Коммит 9699bf770d
3 изменённых файлов: 10 добавлений и 4 удалений

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

@@ -2737,9 +2737,9 @@ func TestInviteUsersToTeamWithUserLimit(t *testing.T) {
CheckNoError(t, resp)
require.Len(t, invitesWithErrors, 2)
require.NotNil(t, invitesWithErrors[0].Error)
assert.Equal(t, invitesWithErrors[0].Error.Message, "You've reached the user limit of your current tier")
assert.Equal(t, invitesWithErrors[0].Error.Message, "You've reached the free tier user limit")
require.NotNil(t, invitesWithErrors[1].Error)
assert.Equal(t, invitesWithErrors[1].Error.Message, "You've reached the user limit of your current tier")
assert.Equal(t, invitesWithErrors[1].Error.Message, "You've reached the free tier user limit")
})
t.Run("Regular user, invite when at limit should succeed", func(t *testing.T) {
@@ -2760,7 +2760,7 @@ func TestInviteUsersToTeamWithUserLimit(t *testing.T) {
require.Len(t, invitesWithErrors, 2)
require.Nil(t, invitesWithErrors[0].Error)
require.NotNil(t, invitesWithErrors[1].Error)
assert.Equal(t, invitesWithErrors[1].Error.Message, "You've reached the user limit of your current tier")
assert.Equal(t, invitesWithErrors[1].Error.Message, "You've reached the free tier user limit")
})