Skip to content

Commit 7ff0466

Browse files
Fix test: restore data-test ids
1 parent 2810a2b commit 7ff0466

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/CommunityPortal/EventPersonalization/EventStats.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export default function PopularEvents() {
207207
{/* Summary */}
208208
<div className={styles['event-summary']}>
209209
<div
210+
data-testid="summary-total-events"
210211
className={`${styles['summary-item']} ${
211212
darkMode ? 'bg-yinmn-blue text-light box-shadow-dark' : 'box-shadow-light'
212213
}`}
@@ -216,6 +217,7 @@ export default function PopularEvents() {
216217
</div>
217218

218219
<div
220+
data-testid="summary-total-enrollments"
219221
className={`${styles['summary-item']} ${
220222
darkMode ? 'bg-yinmn-blue text-light box-shadow-dark' : 'box-shadow-light'
221223
}`}
@@ -229,6 +231,7 @@ export default function PopularEvents() {
229231
{filteredData.length > 0 && (
230232
<>
231233
<div
234+
data-testid="summary-most"
232235
className={`${styles['summary-item']} ${
233236
darkMode ? 'bg-yinmn-blue text-light box-shadow-dark' : 'box-shadow-light'
234237
}`}
@@ -238,6 +241,7 @@ export default function PopularEvents() {
238241
</div>
239242

240243
<div
244+
data-testid="summary-least"
241245
className={`${styles['summary-item']} ${
242246
darkMode ? 'bg-yinmn-blue text-light box-shadow-dark' : 'box-shadow-light'
243247
}`}

0 commit comments

Comments
 (0)