From f1375d8e10e1774ec11e5dd533cffa3f79d2ac0c Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Sun, 26 Jan 2025 12:45:10 -0500 Subject: [PATCH] multiple choice snapshots updated --- .../MultipleChoice.test.tsx.snap | 106 +++++++++++++++--- 1 file changed, 88 insertions(+), 18 deletions(-) diff --git a/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/MultipleChoice.test.tsx.snap b/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/MultipleChoice.test.tsx.snap index 923d220..59753e5 100644 --- a/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/MultipleChoice.test.tsx.snap +++ b/client/src/__tests__/components/GiftTemplate/templates/__snapshots__/MultipleChoice.test.tsx.snap @@ -38,9 +38,19 @@ exports[`MultipleChoice snapshot test 1`] = ` ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem">Sample Stem</p><span style=" +" class="present-question-stem"> + Sample Stem + </p> + </span> + </div> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -167,9 +177,19 @@ exports[`MultipleChoice snapshot test with 2 images using markdown text format 1 ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem"><img src="https://via.placeholder.com/150" alt = "Sample Image"/></p><span style=" +" class="present-question-stem"> + <img alt="Sample Image" src="https://via.placeholder.com/150"> + </p> + </span> + </div> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -265,7 +285,7 @@ exports[`MultipleChoice snapshot test with 2 images using markdown text format 1 color: hsl(0, 0%, 0%); " for="idmocked-id"> - <img src="https://via.placeholder.com/150" alt="Sample Image" /> + <img alt="Sample Image" src="https://via.placeholder.com/150"> </label> <svg style=" vertical-align: text-bottom; @@ -335,9 +355,19 @@ exports[`MultipleChoice snapshot test with Moodle text format 1`] = ` ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem">Sample Stem</p><span style=" +" class="present-question-stem"> + Sample Stem + </p> + </span> + </div> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -464,9 +494,19 @@ exports[`MultipleChoice snapshot test with image 1`] = ` ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem">Sample Stem with Image</p><span style=" +" class="present-question-stem"> + Sample Stem with Image + </p> + </span> + </div> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -560,7 +600,7 @@ exports[`MultipleChoice snapshot test with image 1`] = ` color: hsl(0, 0%, 0%); " for="idmocked-id"> - <img src="https://via.placeholder.com/150" alt="Sample Image" /> + <img alt="Sample Image" src="https://via.placeholder.com/150"> </label> <svg style=" vertical-align: text-bottom; @@ -629,10 +669,20 @@ exports[`MultipleChoice snapshot test with image using markdown text format 1`] ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem">Sample Stem with Image -</p><span style=" +" class="present-question-stem"> + Sample Stem with Image + + </p> + </span> + </div> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -728,7 +778,7 @@ exports[`MultipleChoice snapshot test with image using markdown text format 1`] color: hsl(0, 0%, 0%); " for="idmocked-id"> - <img src="https://via.placeholder.com/150" alt="Sample Image" /> + <img alt="Sample Image" src="https://via.placeholder.com/150"> </label> <svg style=" vertical-align: text-bottom; @@ -798,9 +848,19 @@ exports[`MultipleChoice snapshot test with katex 1`] = ` ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem"><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><span style=" +" 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> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'> @@ -927,9 +987,19 @@ exports[`MultipleChoice snapshot test with katex, using html text format 1`] = ` ">Choix multiple</span> </span> </div> -<p style=" + + <div style=" + display: flex; +"> + <span> + <p style=" color: hsl(0, 0%, 0%); -" class="present-question-stem"><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><span style=" +" 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> +<span style=" color: hsl(0, 0%, 0%); ">Choisir une réponse:</span> <div class='multiple-choice-answers-container'>