summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorit33 <it33@users.noreply.github.com>2017-01-03 09:40:17 -0500
committerenahum <nahumhbl@gmail.com>2017-01-03 11:40:17 -0300
commit4ccfbbdcf15d020e0a269ba172226c5285a9e7eb (patch)
treef872c48dc7f430944eb57c850791f767b5738068 /tests
parent8bd50724a687d6d58f3373ac009d654666f15860 (diff)
downloadchat-4ccfbbdcf15d020e0a269ba172226c5285a9e7eb.tar.gz
chat-4ccfbbdcf15d020e0a269ba172226c5285a9e7eb.tar.bz2
chat-4ccfbbdcf15d020e0a269ba172226c5285a9e7eb.zip
Adding more link preview test cases (#4899)
* Adding more link preview test cases * More link examples * Enumerating examples * Updates based on ES feedback
Diffstat (limited to 'tests')
-rw-r--r--tests/test-link-preview.md80
1 files changed, 67 insertions, 13 deletions
diff --git a/tests/test-link-preview.md b/tests/test-link-preview.md
index 4061bda35..c827f1667 100644
--- a/tests/test-link-preview.md
+++ b/tests/test-link-preview.md
@@ -4,20 +4,74 @@ Link previews should embed previews of the contents of a hyperlink from a messag
Post location variation:
-1. Post as message in center channel with RHS closed (link preview should render under message)
-2. Post as message in center channel with RHS open (link preview should render under message)
-3. Post as comment in RHS (link preview should not render)
-4. View comment in center channel with RHS closed (link preview should render under message)
-5. View comment in center channel with RHS open (link preview should render under message)
-6. Search for post in RHS with link
+1. Post message in center channel with RHS closed (Expected: preview of first link renders under message)
+2. Post message in center channel with RHS open (Expected: preview of first link renders under message)
+3. Post comment in RHS (Expected: link preview does not render)
+4. View comment in center channel with RHS closed (Expected: preview of first link renders under message)
+5. View comment in center channel with RHS open (Expected: preview of first link renders under message)
+6. Search for post in RHS with link (Expected: no previews render in search results)
-Post the following links one per message in the above variations:
+Test the above variations with the below sample messages (e.g. 1-A, 2-B, 3-C, 4-D, etc.)
-Twitter Link Preview:
-https://twitter.com/mattermosthq/status/664928489078820865
+```
+#### A) News: The Globe and Mail
-Vine:
-https://vine.co/v/eDeVgbFrt9L
+Link 1 example: http://www.theglobeandmail.com/news/national/three-canadians-shortlisted-for-global-teacher-prize/article33429901/
-Wikipedia
-https://en.wikipedia.org/wiki/Princess_Bubblegum
+Link 2 example: http://www.theglobeandmail.com/news/toronto/a-last-minute-guide-for-made-in-toronto-gifts/article33426221/
+
+Link 3 example: http://www.theglobeandmail.com/opinion/as-2016-crashed-in-flames-libraries-were-the-last-good-place/article33427957/
+```
+
+```
+#### B) Twitter
+
+Link 1 example: https://twitter.com/mattermosthq/status/784382907896987648
+
+Link 2 example: https://twitter.com/ArchieComics/status/813007703861841920
+
+Link 3 example: https://twitter.com/ValiantComics/status/813066492187201536
+
+```
+
+
+```
+#### C) Wikipedia
+
+Link 1 example: https://en.wikipedia.org/wiki/Olympus_Mons
+
+Link 2 example: https://en.wikipedia.org/wiki/Climate_of_Mars#Effect_of_dust_storms
+
+Link 3 example: https://en.wikipedia.org/wiki/Mars_Exploration_Rover
+
+```
+
+```
+#### D) YouTube
+
+Link 1 example: https://www.youtube.com/watch?v=fDu1S-MMClw
+
+Link 2 example: https://www.youtube.com/watch?v=GaCjjda5v1o
+
+Link 3 example: https://www.youtube.com/watch?v=1Ui44_-N9y0
+
+```
+
+
+```
+#### E) GitHub
+
+Link 1 example: https://github.com/mattermost
+```
+
+```
+#### F) Webpage: Techmeme
+
+Link 1 example: http://www.techmeme.com/
+```
+
+```
+#### G) StackOverflow
+
+Link 1 example: http://stackoverflow.com/questions/36650437/using-mattermost-api-via-gitlab-oauth-as-an-end-user-with-username-and-password
+```