[MM-11777] Add WebP preview support on web (#25784)

* Add webp to webapp image extension list

* Add test webp image and test code

* Change webp test image and move path

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
mkaraki
2024-01-15 15:30:22 +09:00
коммит произвёл GitHub
родитель f2b488932d
Коммит 23fcb7728f
3 изменённых файлов: 13 добавлений и 1 удалений

Двоичные данные
e2e-tests/cypress/tests/fixtures/mm_file_testing/Images/WEBP.webp поставляемый Обычный файл

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 21 KiB

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

@@ -103,6 +103,18 @@ describe('Upload Files - Image', () => {
testImage(properties);
});
it('MM-T2264_7 - WEBP', () => {
const properties = {
filePath: 'mm_file_testing/Images/WEBP.webp',
fileName: 'WEBP.webp',
originalWidth: 640,
originalHeight: 426,
mimeType: 'image/webp',
};
testImage(properties);
});
});
function testImage(properties) {