Skip to content

Commit

Permalink
[MM-14375] Fix flaky test on collapsed specs and separated markdown s…
Browse files Browse the repository at this point in the history
…pecs (mattermost#2527)

* fix flaky test of collapsed spec and pull out markdown into separate spec

* removed commented line
  • Loading branch information
saturninoabril authored and migbot committed Mar 22, 2019
1 parent a242f14 commit 4b3ada3
Show file tree
Hide file tree
Showing 42 changed files with 356 additions and 295 deletions.
94 changes: 0 additions & 94 deletions cypress/fixtures/longMarkdownPost.html

This file was deleted.

157 changes: 0 additions & 157 deletions cypress/fixtures/longMarkdownPost.md

This file was deleted.

1 change: 1 addition & 0 deletions cypress/fixtures/long_text_post.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack!" my brave ghost pled. Five quacking zephyrs jolt my wax bed. Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves quart jug of bad milk. A very bad quack might jinx zippy fowls. Few quips galvanized the mock jury box. Quick brown dogs jump over the lazy fox. The jay, pig, fox, zebra, and my wolves quack! Blowzy red vixens fight for a quick jump. Joaquin Phoenix was gazed by MTV for luck. A wizard’s job is to vex chumps quickly in fog. Watch "Jeopardy!", Alex Trebek's fun TV quiz game. Woven silk pyjamas exchanged for blue quartz. Brawny gods just flocked up to quiz and vex him. Adjusting quiver and bow, Zompyc[1] killed the fox. My faxed joke won a pager in the cable TV quiz show. Amazingly few discotheques provide jukeboxes. My girl wove six dozen plaid jackets before she quit. Six big devils from Japan quickly forgot how to waltz. Big July earthquakes confound zany experimental vow. Foxy parsons quiz and cajole the lovably dim wiki-girl. Have a pick: twenty six letters - no forcing a jumbled quiz! Crazy Fredericka bought many very exquisite opal jewels. Sixty zippers were quickly picked from the woven jute bag. A quick movement of the enemy will jeopardize six gunboats. All questions asked by five watch experts amazed the judge. Jack quietly moved up front and seized the big ball of wax. The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Bright vixens jump; dozy fowl quack. Quick wafting zephyrs vex bold Jim. Quick zephyrs blow, vexing daft Jim. Sex-charged fop blew my junk TV quiz. How quickly daft jumping zebras vex. Two driven jocks help fax my big quiz. Quick, Baz, get my woven flax jodhpurs! "Now fax quiz Jack!" my brave ghost pled. Five quacking zephyrs jolt my wax bed. Flummoxed by job, kvetching W. zaps Iraq. Cozy sphinx waves quart jug of bad milk. A very bad quack might jinx zippy fowls. Few quips galvanized the mock jury box. Quick brown dogs jump over the lazy fox. The jay, pig, fox, zebra, and my wolves quack! Blowzy red vixens fight for a quick jump. Joaquin Phoenix was gazed by MTV for luck. A wizard’s job is to vex chumps quickly in fog. Watch "Jeopardy!", Alex Trebek's fun TV quiz game. Woven silk pyjamas exchanged for blue quartz. Brawny gods just flocked up to quiz and vex him. Adjusting quiver and bow, Zompyc[1] killed the fox. My faxed joke won a pager in the cable TV quiz show. Amazingly few discotheques provide jukeboxes. My girl wove six dozen plaid jackets before she quit. Six big devils from Japan quickly forgot how to waltz. Big July earthquakes confound zany experimental vow. Foxy parsons quiz and cajole the lovably dim wiki-girl. Have a pick: twenty six letters - no forcing a jumbled quiz! Crazy Fredericka bought many very exquisite opal jewels. Sixty zippers were quickly picked from the woven jute bag. A quick movement of the enemy will jeopardize six gunboats. All questions asked by five watch experts amazed the judge. Jack quietly moved up front and seized the big ball of wax. The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs. Waltz, bad nymph, for quick jigs vex! Fox nymphs grab quick-jived waltz. Brick quiz whangs jumpy veldt fox. Hello this is a long post, with more than 4000 characters, plus multiple attachments.
1 change: 1 addition & 0 deletions cypress/fixtures/markdown/markdown_basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1 class="markdown__heading">Basic Markdown Testing</h1><p>Tests for text style, code blocks, in-line code and images, lines, block quotes, and headings.</p>
2 changes: 2 additions & 0 deletions cypress/fixtures/markdown/markdown_basic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Basic Markdown Testing
Tests for text style, code blocks, in-line code and images, lines, block quotes, and headings.
11 changes: 11 additions & 0 deletions cypress/fixtures/markdown/markdown_block_quotes_1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h3 class="markdown__heading">Block Quotes</h3><blockquote>
<p>This text should render in a block quote.</p>
</blockquote>
<p><strong>The following text should render in two block quotes separated by one line of text:</strong></p>
<blockquote>
<p>Block quote 1</p>
</blockquote>
<p>Text between block quotes</p>
<blockquote>
<p>Block quote 2</p>
</blockquote>
10 changes: 10 additions & 0 deletions cypress/fixtures/markdown/markdown_block_quotes_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Block Quotes

>This text should render in a block quote.
**The following text should render in two block quotes separated by one line of text:**
> Block quote 1
Text between block quotes

> Block quote 2
5 changes: 5 additions & 0 deletions cypress/fixtures/markdown/markdown_block_quotes_2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<h3 class="markdown__heading">Block Quotes</h3><p><strong>The following markdown should render within the block quote:</strong></p>
<blockquote>
<h4 class="markdown__heading">Heading 4</h4><p><em>Italics</em>, <em>Italics</em>, <strong>Bold</strong>, <strong><em>Bold-italics</em></strong>, <strong><em>Bold-italics</em></strong>, <del>Strikethrough</del>
<span data-emoticon="slightly_smiling_face"><span alt=":slightly_smiling_face:" class="emoticon" title=":slightly_smiling_face:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f642.png&quot;);"></span></span> <span data-emoticon="slightly_smiling_face"><span alt=":slightly_smiling_face:" class="emoticon" title=":slightly_smiling_face:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f642.png&quot;);"></span></span> <span data-emoticon="wink"><span alt=":wink:" class="emoticon" title=":wink:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f609.png&quot;);"></span></span> <span data-emoticon="scream"><span alt=":scream:" class="emoticon" title=":scream:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f631.png&quot;);"></span></span> <span data-emoticon="bamboo"><span alt=":bamboo:" class="emoticon" title=":bamboo:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f38d.png&quot;);"></span></span> <span data-emoticon="gift_heart"><span alt=":gift_heart:" class="emoticon" title=":gift_heart:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f49d.png&quot;);"></span></span> <span data-emoticon="dolls"><span alt=":dolls:" class="emoticon" title=":dolls:" style="background-image: url(&quot;https://localhost:8065/static/emoji/1f38e.png&quot;);"></span></span></p>
</blockquote>
6 changes: 6 additions & 0 deletions cypress/fixtures/markdown/markdown_block_quotes_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Block Quotes

**The following markdown should render within the block quote:**
> #### Heading 4
> _Italics_, *Italics*, **Bold**, ***Bold-italics***, **_Bold-italics_**, ~~Strikethrough~~
> :) :-) ;) :-O :bamboo: :gift_heart: :dolls:
4 changes: 4 additions & 0 deletions cypress/fixtures/markdown/markdown_carriage_return.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h3 class="markdown__heading">Carriage Return</h3><p>Line #1 followed by one blank line</p>
<p>Line #2 followed by one blank line</p>
<p>Line #3 followed by Line #4
Line #4</p>
8 changes: 8 additions & 0 deletions cypress/fixtures/markdown/markdown_carriage_return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### Carriage Return

Line #1 followed by one blank line

Line #2 followed by one blank line

Line #3 followed by Line #4
Line #4
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p><strong>The following should appear as a carriage return separating two lines of text:</strong></p>
<div class="post-code post-code--wrap"><code class="hljs">Line #1 followed by a blank line

Line #2 following a blank line
</code></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**The following should appear as a carriage return separating two lines of text:**
```
Line #1 followed by a blank line
Line #2 following a blank line
```
Loading

0 comments on commit 4b3ada3

Please sign in to comment.