1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
+ exports [` ExercisePreview using step data matches snapshot with overlay and correctness 1` ] = `
4
+ <div
5
+ className = " sc-ksZaOG gLzA-Dq"
6
+ >
7
+ <div
8
+ className = " sc-gsnTZi dxdISE"
9
+ data-task-step-id = { 1 }
10
+ >
11
+ <div
12
+ className = " sc-bczRLJ eAXREJ exercise-step sc-breuTD dSaRVj sc-hAZoDl hfZzAb preview-card is-selected"
13
+ >
14
+ <div
15
+ onBlur = { [Function ]}
16
+ onMouseLeave = { [Function ]}
17
+ onMouseOver = { [Function ]}
18
+ tabIndex = { 0 }
19
+ >
20
+ <div
21
+ id = " step-card"
22
+ >
23
+ <div
24
+ className = " sc-dkzDqf eYRLRg step-card-header"
25
+ >
26
+ <div >
27
+ <h2
28
+ className = " question-info"
29
+ >
30
+ <span >
31
+ Question 1
32
+ </span >
33
+ <span
34
+ className = " separator"
35
+ >
36
+ |
37
+ </span >
38
+ <span
39
+ className = " question-id"
40
+ >
41
+ ID:
42
+ 1@1
43
+ </span >
44
+ </h2 >
45
+ </div >
46
+ </div >
47
+ <div
48
+ className = " sc-hKMtZM bwRTaS"
49
+ >
50
+ <div >
51
+ <div
52
+ className = " step-card-body exercise-context"
53
+ dangerouslySetInnerHTML = {
54
+ Object {
55
+ " __html" : " Context" ,
56
+ }
57
+ }
58
+ />
59
+ <div
60
+ className = " step-card-body exercise-stimulus"
61
+ dangerouslySetInnerHTML = {
62
+ Object {
63
+ " __html" : " <b>Stimulus HTML</b>" ,
64
+ }
65
+ }
66
+ />
67
+ <div
68
+ data-test-id = " student-exercise-question"
69
+ >
70
+ <div
71
+ className = " sc-iBkjds lXypw openstax-question step-card-body has-correct-answer"
72
+ data-question-number = { 1 }
73
+ data-test-id = " question"
74
+ >
75
+ <div
76
+ className = " answers-table"
77
+ >
78
+ <div
79
+ className = " openstax-answer"
80
+ >
81
+ <section
82
+ className = " answers-answer disabled answer-selected answer-correct"
83
+ >
84
+ <input
85
+ checked = { true }
86
+ className = " answer-input-box"
87
+ disabled = { true }
88
+ id = " 1234@5-option-0"
89
+ name = " 1234@5-options"
90
+ onChange = { [Function ]}
91
+ type = " radio"
92
+ />
93
+ <label
94
+ className = " answer-label"
95
+ htmlFor = " 1234@5-option-0"
96
+ >
97
+ <span
98
+ aria-label = " Selected Choice A:"
99
+ className = " answer-letter-wrapper"
100
+ data-answer-choice = " A"
101
+ data-test-id = " answer-choice-A"
102
+ />
103
+ <div
104
+ className = " answer-answer"
105
+ >
106
+ <div
107
+ className = " sc-gKXOVf QPaPs"
108
+ >
109
+ Correct
110
+ Answer
111
+ </div >
112
+ <span
113
+ className = " answer-content"
114
+ dangerouslySetInnerHTML = {
115
+ Object {
116
+ " __html" : " True" ,
117
+ }
118
+ }
119
+ />
120
+ </div >
121
+ </label >
122
+ </section >
123
+ </div >
124
+ <div
125
+ className = " openstax-answer"
126
+ >
127
+ <section
128
+ className = " answers-answer disabled"
129
+ >
130
+ <input
131
+ checked = { false }
132
+ className = " answer-input-box"
133
+ disabled = { true }
134
+ id = " 1234@5-option-1"
135
+ name = " 1234@5-options"
136
+ onChange = { [Function ]}
137
+ type = " radio"
138
+ />
139
+ <label
140
+ className = " answer-label"
141
+ htmlFor = " 1234@5-option-1"
142
+ >
143
+ <span
144
+ aria-label = " Choice B:"
145
+ className = " answer-letter-wrapper"
146
+ data-answer-choice = " B"
147
+ data-test-id = " answer-choice-B"
148
+ />
149
+ <div
150
+ className = " answer-answer"
151
+ >
152
+ <span
153
+ className = " answer-content"
154
+ dangerouslySetInnerHTML = {
155
+ Object {
156
+ " __html" : " False" ,
157
+ }
158
+ }
159
+ />
160
+ </div >
161
+ </label >
162
+ </section >
163
+ </div >
164
+ </div >
165
+ </div >
166
+ <div
167
+ className = " sc-ftvSup fUvOut step-card-footer"
168
+ >
169
+ <div
170
+ className = " step-card-footer-inner"
171
+ >
172
+ <div
173
+ className = " points"
174
+ role = " status"
175
+ >
176
+ <span
177
+ className = " attempts-left"
178
+ />
179
+ </div >
180
+ <div
181
+ className = " controls"
182
+ >
183
+ <button
184
+ className = " sc-jSMfEi hsxEPT"
185
+ data-test-id = " submit-answer-btn"
186
+ disabled = { true }
187
+ onClick = { [Function ]}
188
+ >
189
+ Submit & continue
190
+ </button >
191
+ </div >
192
+ </div >
193
+ </div >
194
+ </div >
195
+ </div >
196
+ </div >
197
+ </div >
198
+ </div >
199
+ </div >
200
+ </div >
201
+ </div >
202
+ ` ;
203
+
3
204
exports [` ExercisePreview using step data matches snapshot with overlay and selected false 1` ] = `
4
205
<div
5
206
className = " sc-ksZaOG gLzA-Dq"
@@ -263,7 +464,7 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
263
464
data-test-id = " student-exercise-question"
264
465
>
265
466
<div
266
- className = " sc-iBkjds lXypw openstax-question step-card-body"
467
+ className = " sc-iBkjds lXypw openstax-question step-card-body has-correct-answer "
267
468
data-question-number = { 1 }
268
469
data-test-id = " question"
269
470
>
@@ -274,10 +475,10 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
274
475
className = " openstax-answer"
275
476
>
276
477
<section
277
- className = " answers-answer disabled"
478
+ className = " answers-answer disabled answer-selected answer-correct "
278
479
>
279
480
<input
280
- checked = { false }
481
+ checked = { true }
281
482
className = " answer-input-box"
282
483
disabled = { true }
283
484
id = " 1234@5-option-0"
@@ -290,14 +491,20 @@ exports[`ExercisePreview using step data matches snapshot with overlay and selec
290
491
htmlFor = " 1234@5-option-0"
291
492
>
292
493
<span
293
- aria-label = " Choice A:"
494
+ aria-label = " Selected Choice A:"
294
495
className = " answer-letter-wrapper"
295
496
data-answer-choice = " A"
296
497
data-test-id = " answer-choice-A"
297
498
/>
298
499
<div
299
500
className = " answer-answer"
300
501
>
502
+ <div
503
+ className = " sc-gKXOVf QPaPs"
504
+ >
505
+ Correct
506
+ Answer
507
+ </div >
301
508
<span
302
509
className = " answer-content"
303
510
dangerouslySetInnerHTML = {
0 commit comments