@@ -1292,22 +1292,22 @@ describe("UI components", () => {
12921292 expect ( frame ) . not . toContain ( "Update available:" ) ;
12931293 } ) ;
12941294
1295- test ( "HelpDialog renders every keyboard shortcut row without overlap" , async ( ) => {
1295+ test ( "HelpDialog renders every documented control row without overlap" , async ( ) => {
12961296 const theme = resolveTheme ( "midnight" , null ) ;
12971297 const frame = await captureFrame (
12981298 < HelpDialog
12991299 canRefresh = { true }
1300- terminalHeight = { 31 }
1300+ terminalHeight = { 36 }
13011301 terminalWidth = { 76 }
13021302 theme = { theme }
13031303 onClose = { ( ) => { } }
13041304 /> ,
13051305 76 ,
1306- 31 ,
1306+ 36 ,
13071307 ) ;
13081308
13091309 const expectedRows = [
1310- "Keyboard help" ,
1310+ "Controls help" ,
13111311 "[Esc]" ,
13121312 "Navigation" ,
13131313 "↑ / ↓ move line-by-line" ,
@@ -1317,8 +1317,11 @@ describe("UI components", () => {
13171317 "d / u half page down / up" ,
13181318 "[ / ] previous / next hunk" ,
13191319 "{ / } previous / next comment" ,
1320- "← / → scroll code (Shift = faster)" ,
1320+ "← / → scroll code left / right (Shift = faster)" ,
13211321 "Home / End jump to top / bottom" ,
1322+ "Mouse" ,
1323+ "Wheel scroll vertically" ,
1324+ "Shift+Wheel scroll code horizontally" ,
13221325 "View" ,
13231326 "1 / 2 / 0 split / stack / auto" ,
13241327 "s / t sidebar / theme" ,
@@ -1337,9 +1340,11 @@ describe("UI components", () => {
13371340
13381341 const lines = frame . split ( "\n" ) ;
13391342 const blankModalRow = / │ \s + │ / ;
1343+ const mouseHeaderIndex = lines . findIndex ( ( line ) => line . includes ( "│ Mouse" ) ) ;
13401344 const viewHeaderIndex = lines . findIndex ( ( line ) => line . includes ( "│ View" ) ) ;
13411345 const reviewHeaderIndex = lines . findIndex ( ( line ) => line . includes ( "│ Review" ) ) ;
13421346
1347+ expect ( lines [ mouseHeaderIndex - 1 ] ) . toMatch ( blankModalRow ) ;
13431348 expect ( lines [ viewHeaderIndex - 1 ] ) . toMatch ( blankModalRow ) ;
13441349 expect ( lines [ reviewHeaderIndex - 1 ] ) . toMatch ( blankModalRow ) ;
13451350 expect ( frame ) . not . toContain ( "linese/Awrapt/smetadata" ) ;
0 commit comments