@@ -442,43 +442,44 @@ describe('<Preferences />', () => {
442442 ) ;
443443 } ) ;
444444 } ) ;
445- describe ( 'start wordwrap at false' , ( ) => {
446- it ( 'wordwrap toggle, starting at false' , ( ) => {
447- // render the component with wordwrap prop set to false
448- subject ( { wordwrap : false } ) ;
449-
450- // get ahold of the radio buttons for toggling wordwrap
451- const wordwrapRadioFalse = screen . getByRole ( 'radio' , {
445+ // TODO: Consolidate "linewrap" (reference from backend/User model) and "word wrap" (currently used in UI) into consistent naming.
446+ describe ( 'start linewrap at false' , ( ) => {
447+ it ( 'linewrap toggle, starting at false' , ( ) => {
448+ // render the component with linewrap prop set to false
449+ subject ( { linewrap : false } ) ;
450+
451+ // get ahold of the radio buttons for toggling linewrap
452+ const linewrapRadioFalse = screen . getByRole ( 'radio' , {
452453 name : / w o r d w r a p o f f / i
453454 } ) ;
454- const wordwrapRadioTrue = screen . getByRole ( 'radio' , {
455+ const linewrapRadioTrue = screen . getByRole ( 'radio' , {
455456 name : / w o r d w r a p o n / i
456457 } ) ;
457458
458459 testToggle (
459- wordwrapRadioFalse ,
460- wordwrapRadioTrue ,
460+ linewrapRadioFalse ,
461+ linewrapRadioTrue ,
461462 props . setLinewrap ,
462463 true
463464 ) ;
464465 } ) ;
465466 } ) ;
466- describe ( 'start wordwrap at true' , ( ) => {
467- it ( 'wordwrap toggle, starting at true' , ( ) => {
468- // render the component with wordwrap prop set to true
469- subject ( { wordwrap : true } ) ;
467+ describe ( 'start linewrap at true' , ( ) => {
468+ it ( 'linewrap toggle, starting at true' , ( ) => {
469+ // render the component with linewrap prop set to true
470+ subject ( { linewrap : true } ) ;
470471
471- // get ahold of the radio buttons for toggling wordwrap
472- const wordwrapRadioFalse = screen . getByRole ( 'radio' , {
472+ // get ahold of the radio buttons for toggling linewrap
473+ const linewrapRadioFalse = screen . getByRole ( 'radio' , {
473474 name : / w o r d w r a p o f f / i
474475 } ) ;
475- const wordwrapRadioTrue = screen . getByRole ( 'radio' , {
476+ const linewrapRadioTrue = screen . getByRole ( 'radio' , {
476477 name : / w o r d w r a p o n / i
477478 } ) ;
478479
479480 testToggle (
480- wordwrapRadioTrue ,
481- wordwrapRadioFalse ,
481+ linewrapRadioTrue ,
482+ linewrapRadioFalse ,
482483 props . setLinewrap ,
483484 false
484485 ) ;
0 commit comments