Skip to content

Commit 18113c6

Browse files
feanilclaude
andcommitted
test: update Jest snapshots for @edx/paragon 2.6.4 → 2.7.0
The caret version pinning change updated @edx/paragon from 2.6.4 to 2.7.0, which caused Icon component IDs to change from "Icon2" to "Icon1" in snapshot tests. This is a cosmetic change with no functional impact. The Icon component generates unique IDs using a module-level counter in src/utils/newId.js: let lastId = 0; const newId = (prefix = 'id') => { lastId += 1; return `${prefix}${lastId}`; }; The ID values depend on module import order, which changed slightly between versions. The visual rendering and accessibility features (screen reader text) are unaffected. References: - Paragon Icon component: https://github.com/edx/paragon/blob/v2.7.0/src/Icon/index.jsx - Paragon newId utility: https://github.com/edx/paragon/blob/v2.7.0/src/utils/newId.js - Version comparison: openedx/paragon@v2.6.4...v2.7.0 Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent ae7a1c8 commit 18113c6

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

common/static/common/js/components/BlockBrowser/components/BlockBrowser/__snapshots__/BlockBrowser.test.jsx.snap

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
1919
<span
2020
aria-hidden={true}
2121
className="fa fa-arrow-up"
22-
id="Icon2"
22+
id="Icon1"
2323
/>
2424
<span
2525
className="sr-only"
@@ -71,7 +71,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
7171
<span
7272
aria-hidden={true}
7373
className="fa fa-arrow-right"
74-
id="Icon2"
74+
id="Icon1"
7575
/>
7676
<span
7777
className="sr-only"
@@ -104,7 +104,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
104104
<span
105105
aria-hidden={true}
106106
className="fa fa-arrow-right"
107-
id="Icon2"
107+
id="Icon1"
108108
/>
109109
<span
110110
className="sr-only"
@@ -137,7 +137,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
137137
<span
138138
aria-hidden={true}
139139
className="fa fa-arrow-right"
140-
id="Icon2"
140+
id="Icon1"
141141
/>
142142
<span
143143
className="sr-only"
@@ -170,7 +170,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
170170
<span
171171
aria-hidden={true}
172172
className="fa fa-arrow-right"
173-
id="Icon2"
173+
id="Icon1"
174174
/>
175175
<span
176176
className="sr-only"
@@ -203,7 +203,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
203203
<span
204204
aria-hidden={true}
205205
className="fa fa-arrow-right"
206-
id="Icon2"
206+
id="Icon1"
207207
/>
208208
<span
209209
className="sr-only"
@@ -236,7 +236,7 @@ exports[`BlockBrowser component render with basic parameters 1`] = `
236236
<span
237237
aria-hidden={true}
238238
className="fa fa-arrow-right"
239-
id="Icon2"
239+
id="Icon1"
240240
/>
241241
<span
242242
className="sr-only"
@@ -269,7 +269,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
269269
<span
270270
aria-hidden={true}
271271
className="fa fa-arrow-up"
272-
id="Icon2"
272+
id="Icon1"
273273
/>
274274
<span
275275
className="sr-only"
@@ -321,7 +321,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
321321
<span
322322
aria-hidden={true}
323323
className="fa fa-arrow-right"
324-
id="Icon2"
324+
id="Icon1"
325325
/>
326326
<span
327327
className="sr-only"
@@ -354,7 +354,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
354354
<span
355355
aria-hidden={true}
356356
className="fa fa-arrow-right"
357-
id="Icon2"
357+
id="Icon1"
358358
/>
359359
<span
360360
className="sr-only"
@@ -387,7 +387,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
387387
<span
388388
aria-hidden={true}
389389
className="fa fa-arrow-right"
390-
id="Icon2"
390+
id="Icon1"
391391
/>
392392
<span
393393
className="sr-only"
@@ -420,7 +420,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
420420
<span
421421
aria-hidden={true}
422422
className="fa fa-arrow-right"
423-
id="Icon2"
423+
id="Icon1"
424424
/>
425425
<span
426426
className="sr-only"
@@ -453,7 +453,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
453453
<span
454454
aria-hidden={true}
455455
className="fa fa-arrow-right"
456-
id="Icon2"
456+
id="Icon1"
457457
/>
458458
<span
459459
className="sr-only"
@@ -486,7 +486,7 @@ exports[`BlockBrowser component render with custom classname 1`] = `
486486
<span
487487
aria-hidden={true}
488488
className="fa fa-arrow-right"
489-
id="Icon2"
489+
id="Icon1"
490490
/>
491491
<span
492492
className="sr-only"
@@ -527,7 +527,7 @@ exports[`BlockList component render with basic parameters 1`] = `
527527
<span
528528
aria-hidden={true}
529529
className="fa fa-arrow-right"
530-
id="Icon2"
530+
id="Icon1"
531531
/>
532532
<span
533533
className="sr-only"
@@ -560,7 +560,7 @@ exports[`BlockList component render with basic parameters 1`] = `
560560
<span
561561
aria-hidden={true}
562562
className="fa fa-arrow-right"
563-
id="Icon2"
563+
id="Icon1"
564564
/>
565565
<span
566566
className="sr-only"
@@ -593,7 +593,7 @@ exports[`BlockList component render with basic parameters 1`] = `
593593
<span
594594
aria-hidden={true}
595595
className="fa fa-arrow-right"
596-
id="Icon2"
596+
id="Icon1"
597597
/>
598598
<span
599599
className="sr-only"
@@ -626,7 +626,7 @@ exports[`BlockList component render with basic parameters 1`] = `
626626
<span
627627
aria-hidden={true}
628628
className="fa fa-arrow-right"
629-
id="Icon2"
629+
id="Icon1"
630630
/>
631631
<span
632632
className="sr-only"
@@ -659,7 +659,7 @@ exports[`BlockList component render with basic parameters 1`] = `
659659
<span
660660
aria-hidden={true}
661661
className="fa fa-arrow-right"
662-
id="Icon2"
662+
id="Icon1"
663663
/>
664664
<span
665665
className="sr-only"
@@ -692,7 +692,7 @@ exports[`BlockList component render with basic parameters 1`] = `
692692
<span
693693
aria-hidden={true}
694694
className="fa fa-arrow-right"
695-
id="Icon2"
695+
id="Icon1"
696696
/>
697697
<span
698698
className="sr-only"

lms/djangoapps/instructor/static/instructor/ProblemBrowser/components/ReportStatus/__snapshots__/ReportStatus.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports[`ReportStatus component render in progress status 1`] = `
2727
<span
2828
aria-hidden={true}
2929
className="fa fa-refresh fa-spin fa-fw"
30-
id="Icon2"
30+
id="Icon1"
3131
/>
3232
</div>
3333
</div>
@@ -50,7 +50,7 @@ exports[`ReportStatus component render success status 1`] = `
5050
<span
5151
aria-hidden={true}
5252
className="fa fa-link"
53-
id="Icon2"
53+
id="Icon1"
5454
/>
5555
</div>
5656
View Report

0 commit comments

Comments
 (0)