github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/tests/test-link-preview.md (about)

     1  # Link Preview Tests
     2  
     3  Link previews should embed previews of the contents of a hyperlink from a message or comment in the center channel directly below the message or comment.
     4  
     5  Post location variation: 
     6  
     7  1. Post message in center channel with RHS closed (Expected: preview of first link renders under message) 
     8  2. Post message in center channel with RHS open (Expected: preview of first link renders under message) 
     9  3. Post comment in RHS (Expected: link preview does not render) 
    10  4. View comment in center channel with RHS closed (Expected: preview of first link renders under message) 
    11  5. View comment in center channel with RHS open (Expected: preview of first link renders under message) 
    12  6. Search for post in RHS with link (Expected: no previews render in search results) 
    13  
    14  Test the above variations with the below sample messages (e.g. 1-A, 2-B, 3-C, 4-D, etc.) 
    15  
    16  ```
    17  #### A) No link preview
    18  
    19  Link 1 example: https://en.wikipedia.org/wiki/Olympus_Mons
    20  
    21  Link 2 example: http://www.techmeme.com/
    22  
    23  Link 3 example: https://about.gitlab.com/
    24  ```
    25  
    26  ```
    27  #### B) Link preview without an image
    28  
    29  Link 1 example: https://coveralls.io/builds/9818822/source?filename=app%2Faudit.go
    30  ```
    31  
    32  ```
    33  #### C) Link preview with image in top right corner
    34  
    35  Link 1 example: http://www.theglobeandmail.com/news/national/three-canadians-shortlisted-for-global-teacher-prize/article33429901/
    36  
    37  Link 2 example: https://twitter.com/ArchieComics/status/813007703861841920
    38  
    39  Link 3 example: https://github.com/mattermost
    40  
    41  Link 4 example: http://stackoverflow.com/questions/36650437/using-mattermost-api-via-gitlab-oauth-as-an-end-user-with-username-and-password
    42  ```
    43  
    44  ```
    45  #### D) Link preview with image at the bottom
    46  
    47  If "Account Settings > Display > Default appearance of image link previews" is set to "Collapsed", you must click the expand arrows to display the image.
    48  
    49  Link 1 example: https://www.yahoo.com/news/panasonic-unveils-solar-roof-may-212400917.html
    50  
    51  Link 2 example: https://about.mattermost.com
    52  
    53  ```