Generate preview regardless of HasPreviewImage value (#16535)

Automatic Merge
Этот коммит содержится в:
Claudio Costa
2020-12-11 00:15:17 +01:00
коммит произвёл GitHub
родитель 1367418e3c
Коммит 6c976c3b06
4 изменённых файлов: 24 добавлений и 12 удалений

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

@@ -404,6 +404,18 @@ func TestUploadFiles(t *testing.T) {
expectedImageHasPreview: []bool{true},
expectedCreatorId: th.BasicUser.Id,
},
// animated GIF
{
title: "Happy image thumbnail/preview 12",
names: []string{"testgif.gif"},
expectedImageThumbnailNames: []string{"testgif_expected_thumbnail.jpg"},
expectedImagePreviewNames: []string{"testgif_expected_preview.jpg"},
expectImage: true,
expectedImageWidths: []int{118},
expectedImageHeights: []int{118},
expectedImageHasPreview: []bool{false},
expectedCreatorId: th.BasicUser.Id,
},
{
title: "Happy admin",
client: th.SystemAdminClient,