@@ -100,12 +100,12 @@ class Preferences extends React.Component {
100
100
< TabList >
101
101
< div className = "tabs__titles" >
102
102
< Tab >
103
- < h4 className = "tabs__title" >
103
+ < h4 className = "tabs__title" data-testid = "general-settings-tab" >
104
104
{ this . props . t ( 'Preferences.GeneralSettings' ) }
105
105
</ h4 >
106
106
</ Tab >
107
107
< Tab >
108
- < h4 className = "tabs__title" >
108
+ < h4 className = "tabs__title" data-testid = "accessibility-tab" >
109
109
{ this . props . t ( 'Preferences.Accessibility' ) }
110
110
</ h4 >
111
111
</ Tab >
@@ -126,6 +126,7 @@ class Preferences extends React.Component {
126
126
className = "preference__radio-button"
127
127
value = "light"
128
128
checked = { this . props . theme === 'light' }
129
+ data-testid = "theme-light-radio"
129
130
/>
130
131
< label htmlFor = "light-theme-on" className = "preference__option" >
131
132
{ this . props . t ( 'Preferences.LightTheme' ) }
@@ -139,6 +140,7 @@ class Preferences extends React.Component {
139
140
className = "preference__radio-button"
140
141
value = "dark"
141
142
checked = { this . props . theme === 'dark' }
143
+ data-testid = "theme-dark-radio"
142
144
/>
143
145
< label htmlFor = "dark-theme-on" className = "preference__option" >
144
146
{ this . props . t ( 'Preferences.DarkTheme' ) }
@@ -152,6 +154,7 @@ class Preferences extends React.Component {
152
154
className = "preference__radio-button"
153
155
value = "contrast"
154
156
checked = { this . props . theme === 'contrast' }
157
+ data-testid = "theme-contrast-radio"
155
158
/>
156
159
< label
157
160
htmlFor = "high-contrast-theme-on"
@@ -304,6 +307,7 @@ class Preferences extends React.Component {
304
307
className = "preference__radio-button"
305
308
value = "On"
306
309
checked = { this . props . linewrap }
310
+ data-testid = "linewrap-true-radio"
307
311
/>
308
312
< label htmlFor = "linewrap-on" className = "preference__option" >
309
313
{ this . props . t ( 'Preferences.On' ) }
@@ -317,6 +321,7 @@ class Preferences extends React.Component {
317
321
className = "preference__radio-button"
318
322
value = "Off"
319
323
checked = { ! this . props . linewrap }
324
+ data-testid = "linewrap-false-radio"
320
325
/>
321
326
< label htmlFor = "linewrap-off" className = "preference__option" >
322
327
{ this . props . t ( 'Preferences.Off' ) }
@@ -339,6 +344,7 @@ class Preferences extends React.Component {
339
344
className = "preference__radio-button"
340
345
value = "On"
341
346
checked = { this . props . lineNumbers }
347
+ data-testid = "lineNumbers-true-radio"
342
348
/>
343
349
< label htmlFor = "line-numbers-on" className = "preference__option" >
344
350
{ this . props . t ( 'Preferences.On' ) }
@@ -352,6 +358,7 @@ class Preferences extends React.Component {
352
358
className = "preference__radio-button"
353
359
value = "Off"
354
360
checked = { ! this . props . lineNumbers }
361
+ data-testid = "lineNumbers-false-radio"
355
362
/>
356
363
< label
357
364
htmlFor = "line-numbers-off"
@@ -375,6 +382,7 @@ class Preferences extends React.Component {
375
382
className = "preference__radio-button"
376
383
value = "On"
377
384
checked = { this . props . lintWarning }
385
+ data-testid = "lintWarning-true-radio"
378
386
/>
379
387
< label htmlFor = "lint-warning-on" className = "preference__option" >
380
388
{ this . props . t ( 'Preferences.On' ) }
@@ -388,6 +396,7 @@ class Preferences extends React.Component {
388
396
className = "preference__radio-button"
389
397
value = "Off"
390
398
checked = { ! this . props . lintWarning }
399
+ data-testid = "lintWarning-false-radio"
391
400
/>
392
401
< label
393
402
htmlFor = "lint-warning-off"
@@ -423,6 +432,7 @@ class Preferences extends React.Component {
423
432
id = "text-output-on"
424
433
value = "On"
425
434
checked = { this . props . textOutput }
435
+ data-testid = "text-output-checkbox"
426
436
/>
427
437
< label
428
438
htmlFor = "text-output-on"
@@ -440,6 +450,7 @@ class Preferences extends React.Component {
440
450
id = "table-output-on"
441
451
value = "On"
442
452
checked = { this . props . gridOutput }
453
+ data-testid = "grid-output-checkbox"
443
454
/>
444
455
< label
445
456
htmlFor = "table-output-on"
@@ -457,6 +468,7 @@ class Preferences extends React.Component {
457
468
id = "sound-output-on"
458
469
value = "On"
459
470
checked = { this . props . soundOutput }
471
+ data-testid = "sound-output-checkbox"
460
472
/>
461
473
< label
462
474
htmlFor = "sound-output-on"
0 commit comments