diff options
Diffstat (limited to 'doc/developer/tests')
-rw-r--r-- | doc/developer/tests/test-link-preview.md | 23 | ||||
-rw-r--r-- | doc/developer/tests/test-links.md | 16 | ||||
-rw-r--r-- | doc/developer/tests/test-markdown.md | 14 | ||||
-rw-r--r-- | doc/developer/tests/test-mentions.md | 13 |
4 files changed, 66 insertions, 0 deletions
diff --git a/doc/developer/tests/test-link-preview.md b/doc/developer/tests/test-link-preview.md new file mode 100644 index 000000000..4061bda35 --- /dev/null +++ b/doc/developer/tests/test-link-preview.md @@ -0,0 +1,23 @@ +# Link Preview Tests + +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. + +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 + +Post the following links one per message in the above variations: + +Twitter Link Preview: +https://twitter.com/mattermosthq/status/664928489078820865 + +Vine: +https://vine.co/v/eDeVgbFrt9L + +Wikipedia +https://en.wikipedia.org/wiki/Princess_Bubblegum diff --git a/doc/developer/tests/test-links.md b/doc/developer/tests/test-links.md new file mode 100644 index 000000000..62b729b30 --- /dev/null +++ b/doc/developer/tests/test-links.md @@ -0,0 +1,16 @@ + +# Link Testing + +Links in Mattermosts should render as specified below. Paste the below text into Mattermost to test text processing. + +``` +These strings should auto-link: + +http://wikipedia.com +https://wikipedia.com +www.wikipedia.com + +These strings should not auto-link: + +Readme.md +``` diff --git a/doc/developer/tests/test-markdown.md b/doc/developer/tests/test-markdown.md new file mode 100644 index 000000000..8a24aad86 --- /dev/null +++ b/doc/developer/tests/test-markdown.md @@ -0,0 +1,14 @@ +# Markdown tests + +Paste the following tests into Mattermost to test markdown support. + +``` +# This should render as Heading 1 font size +## This should render as Heading 2 font size +### This should render as Heading 3 font size +#### This should render as Heading 4 font size +##### This should render as Heading 5 font size +###### This should render as Heading 6 font size +~~This should show strikethrough formatting~~ +**This should be bold** +``` diff --git a/doc/developer/tests/test-mentions.md b/doc/developer/tests/test-mentions.md new file mode 100644 index 000000000..99a47e337 --- /dev/null +++ b/doc/developer/tests/test-mentions.md @@ -0,0 +1,13 @@ +# Mentions Testing + +To test the following mention functional: + +1. Add a user 'alice' to the system +2. Paste the below text to test if mentions is properly highlighting + + +``` +To run this test, if a user named @alice doesn't yet exist, create one. + +I saw @alice--and I said "Hi @alice!" then "What's up @alice?" and then @alice, was totally @alice; she just "@alice"'d me and walked on by. That's @alice... +``` |