Skip to content

Commit 4264373

Browse files
committed
resolve test duplicity
1 parent f240e01 commit 4264373

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/components/ExercisePreview.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('ExercisePreview', () => {
5656

5757
it.each`
5858
selected | description | overlay | showFeedback | showCorrect
59-
${true} | ${'with overlay and selected true'} | ${<button>Over</button>} | ${undefined} | ${true}
59+
${true} | ${'with overlay and selected true'} | ${<button>Over</button>} | ${undefined} | ${false}
6060
${true} | ${'with overlay and correctness'} | ${<button>Over</button>} | ${undefined} | ${true}
6161
${true} | ${'with overlay and selected false'} | ${<button>Over</button>} | ${false} | ${false}
6262
${false} | ${'without overlay'} | ${undefined} | ${true} | ${true}

src/components/__snapshots__/ExercisePreview.spec.tsx.snap

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
383383
data-task-step-id={1}
384384
>
385385
<div
386-
className="sc-bczRLJ eAXREJ exercise-step sc-breuTD dSaRVj sc-hAZoDl sc-fnykZs QCsJH dNZVdw preview-card is-selected"
386+
className="sc-bczRLJ eAXREJ exercise-step sc-breuTD dSaRVj sc-hAZoDl sc-fnykZs QCsJH kKGUqH preview-card is-selected"
387387
>
388388
<div
389389
onBlur={[Function]}
@@ -442,7 +442,7 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
442442
data-test-id="student-exercise-question"
443443
>
444444
<div
445-
className="sc-iBkjds bohpoA openstax-question step-card-body has-correct-answer"
445+
className="sc-iBkjds bohpoA openstax-question step-card-body"
446446
data-question-number={1}
447447
data-test-id="question"
448448
>
@@ -453,7 +453,7 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
453453
className="openstax-answer"
454454
>
455455
<section
456-
className="answers-answer disabled answer-correct"
456+
className="answers-answer disabled"
457457
>
458458
<input
459459
checked={false}
@@ -477,12 +477,6 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
477477
<div
478478
className="answer-answer"
479479
>
480-
<div
481-
className="sc-gKXOVf QPaPs"
482-
>
483-
Correct
484-
Answer
485-
</div>
486480
<span
487481
className="answer-content"
488482
dangerouslySetInnerHTML={

0 commit comments

Comments
 (0)