mattermost/server/tests/test-attachments.md

6.4 KiB

Testing Files and Attachments

This test contains instructions for the core team to manually test common attachment types. All files for testing are stored in the mm_file_testing Drive folder. Follow these instructions:

  1. Download the entire mm_file_testing folder.
  2. Drag and drop each file type into Mattermost to upload it (upload some as multiple attachments on the same post)
  3. Post the file attachment

Notes:

  • All file types should upload and post.
  • Read the expected for details on the behavior of the thumbnail and preview window.
  • The expected behavior of video and audio formats depends on the operating system, browser and plugins. View the permalinks to the Public Test Channel on Pre-Release Core to see the expected cases.
  • If the browser can play the media file, media player controls should appear. If the browser cannot play the file, it should appear as a regular attachment without the media controls.

Images

JPG
Images/JPG.jpg
Expected: Scaled thumbnail & preview window
Permalink

PNG
Images/PNG.png
Expected: Scaled thumbnail & preview window
Permalink

BMP
Images/BMP.bmp
Expected: Scaled thumbnail & preview window
Permalink

GIF
Images/GIF.gif
Expected: Scaled thumbnail & preview window. GIF should auto-play in the preview window.
Permalink

TIFF
Images/TIFF.tiff
Expected: Generic attachment thumbnail & preview window
Permalink

PSD
Images/PSD.psd
Expected: Generic attachment thumbnail & preview window
Permalink

Documents

PDF Files
Documents/PDF.pdf
Expected: Generic PDF thumbnail. File previewer shows first 5 pages of the PDF.
Permalink

Excel
Documents/Excel.xlsx
Expected: Generic Excel thumbnail & preview window.
Permalink

PPT
Documents/PPT.pptx
Expected: Generic Powerpoint thumbnail & preview window.
Permalink

Word
Documents/Word.docx
Expected: Generic Word thumbnail & preview window.
Permalink

Text
Documents/Text.txt
Expected: Generic code thumbnail & file previewer. Permalink

Videos

MP4
Videos/MP4.mp4
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

AVI
Videos/AVI.avi
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MKV
Videos/MKV.mkv
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MOV
Videos/MOV.mov
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

MPG
Videos/MPG.mpg
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

Webm
Videos/WEBM.webm
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WMV
Videos/WMV.wmv
Expected: Generic video thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

Audio

MP3
Audio/MP3.mp3
Expected: Generic audio thumbnail & playable preview window
Permalink

M4A
Audio/M4a.m4a
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

AAC
Audio/AAC.aac
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

FLAC
Audio/FLAC.flac
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

OGG
Audio/OGG.ogg
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WAV
Audio/WAV.wav
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink

WMA
Audio/WMA.wma
Expected: Generic audio thumbnail, view Permalink for preview window behavior. Expected depends on the operating system, browser and plugins.
Permalink