diff --git a/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/ShortAnswer.test.tsx.snap b/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/ShortAnswer.test.tsx.snap index f70b8d5..e14211b 100644 --- a/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/ShortAnswer.test.tsx.snap +++ b/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/ShortAnswer.test.tsx.snap @@ -38,10 +38,20 @@ exports[`ShortAnswer snapshot test with image 1`] = ` ">Réponse courte</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -">Sample Stem with Image <img src="https://example.com/cat.jpg" alt=""> -</p> +" class="present-question-stem"> + Sample Stem with Image <img alt="" src="https://example.com/cat.jpg"> + + </p> + </span> + </div> + <div> <span style=" color: hsl(0, 0%, 0%); @@ -115,9 +125,19 @@ exports[`ShortAnswer snapshot test with katex 1`] = ` ">Réponse courte</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mfrac><mrow><mi>z</mi><mi>z</mi><mi>z</mi></mrow><mrow><mi>y</mi><mi>y</mi><mi>y</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">\\frac{zzz}{yyy}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.988em;vertical-align:-0.8804em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.1076em;"><span style="top:-2.314em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.03588em;">yyy</span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.677em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.04398em;">zzz</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.8804em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></span></p> +" class="present-question-stem"> + <span class="katex-display"><span class="katex"><span class="katex-mathml"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mfrac><mrow><mi>z</mi><mi>z</mi><mi>z</mi></mrow><mrow><mi>y</mi><mi>y</mi><mi>y</mi></mrow></mfrac></mrow>\\frac{zzz}{yyy}</math></span><span aria-hidden="true" class="katex-html"><span class="base"><span style="height:1.988em;vertical-align:-0.8804em;" class="strut"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span style="height:1.1076em;" class="vlist"><span style="top:-2.314em;"><span style="height:3em;" class="pstrut"></span><span class="mord"><span style="margin-right:0.03588em;" class="mord mathnormal">yyy</span></span></span><span style="top:-3.23em;"><span style="height:3em;" class="pstrut"></span><span style="border-bottom-width:0.04em;" class="frac-line"></span></span><span style="top:-3.677em;"><span style="height:3em;" class="pstrut"></span><span class="mord"><span style="margin-right:0.04398em;" class="mord mathnormal">zzz</span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span style="height:0.8804em;" class="vlist"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span></span></span></span></span> + </p> + </span> + </div> + <div> <span style=" color: hsl(0, 0%, 0%); @@ -190,9 +210,19 @@ exports[`ShortAnswer snapshot test with moodle 1`] = ` ">Réponse courte</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -">Sample Stem</p> +" class="present-question-stem"> + Sample Stem + </p> + </span> + </div> + <div> <span style=" color: hsl(0, 0%, 0%); @@ -265,9 +295,19 @@ exports[`ShortAnswer snapshot test with plain text 1`] = ` ">Réponse courte</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -">Sample Stem</p> +" class="present-question-stem"> + Sample Stem + </p> + </span> + </div> + <div> <span style=" color: hsl(0, 0%, 0%);