@@ -408,9 +408,10 @@ test.describe('Hotkey Editing', () => {
408408 // Initially should have just 'T'
409409 await expect ( leftCell . locator ( 'kbd' , { hasText : 'T' } ) ) . toBeVisible ( )
410410
411- // Add 'q' using the + button (adds, doesn't replace)
412- const addButton = leftCell . locator ( '.kbd-add-btn' )
413- await addButton . click ( )
411+ // Add 'q' using the inline + button on the T key (adds, doesn't replace)
412+ const tKbd = leftCell . locator ( 'kbd' , { hasText : 'T' } )
413+ await tKbd . hover ( )
414+ await tKbd . locator ( '.kbd-add-inline-btn' ) . click ( )
414415 await page . keyboard . press ( 'q' )
415416 await page . keyboard . press ( 'Enter' ) // Confirm the key (sequenceTimeout is Infinity)
416417 await page . waitForTimeout ( 300 )
@@ -419,8 +420,10 @@ test.describe('Hotkey Editing', () => {
419420 await expect ( leftCell . locator ( 'kbd' , { hasText : 'T' } ) ) . toBeVisible ( )
420421 await expect ( leftCell . locator ( 'kbd' , { hasText : 'Q' } ) ) . toBeVisible ( )
421422
422- // Add 'y' as well using the + button
423- await addButton . click ( )
423+ // Add 'y' as well using the inline + button on the Q key
424+ const qKbd = leftCell . locator ( 'kbd' , { hasText : 'Q' } )
425+ await qKbd . hover ( )
426+ await qKbd . locator ( '.kbd-add-inline-btn' ) . click ( )
424427 await page . keyboard . press ( 'y' )
425428 await page . keyboard . press ( 'Enter' ) // Confirm the key (sequenceTimeout is Infinity)
426429 await page . waitForTimeout ( 300 )
@@ -448,9 +451,10 @@ test.describe('Hotkey Editing', () => {
448451 const tempRow = page . locator ( '.kbd-table tbody tr' ) . first ( )
449452 const leftCell = tempRow . locator ( 'td:nth-child(2)' )
450453
451- // Add 'z' binding using + button (adds, doesn't replace)
452- const addButton = leftCell . locator ( '.kbd-add-btn' )
453- await addButton . click ( )
454+ // Add 'z' binding using inline + button on the T key (adds, doesn't replace)
455+ const tKbd2 = leftCell . locator ( 'kbd' , { hasText : 'T' } )
456+ await tKbd2 . hover ( )
457+ await tKbd2 . locator ( '.kbd-add-inline-btn' ) . click ( )
454458 await page . keyboard . press ( 'z' )
455459 await page . keyboard . press ( 'Enter' ) // Confirm the key (sequenceTimeout is Infinity)
456460 await page . waitForTimeout ( 300 )
0 commit comments