@@ -131,12 +131,13 @@ describe('TabStrip interactions', () => {
131131 mount ( renderStrip ( items , vi . fn ( ) , onClose ) )
132132
133133 const slot = stripItem ( 'two' ) . querySelector ( '[data-row-actions]' )
134- expect ( slot ?. querySelector ( '[aria-label="Background activity"]' ) ) . not . toBeNull ( )
134+ expect ( slot ?. querySelector ( '[data-row-action-indicator]' ) ) . not . toBeNull ( )
135+ expect ( tabButton ( 'two' ) . getAttribute ( 'aria-label' ) ) . toBe ( 'Two, Background activity' )
135136 const close = slot ?. querySelector < HTMLButtonElement > ( '[aria-label="Close Two"]' )
136137 expect ( close ) . not . toBeNull ( )
137- expect ( tabButton ( 'two' ) . querySelector ( '[aria-label="Background activity" ]' ) ) . toBeNull ( )
138- expect ( stripItem ( 'one' ) . querySelector ( '[ aria-label="Background activity"] ') ) . toBeNull ( )
139- expect ( tabButton ( 'pinned' ) . querySelector ( '[ aria-label="Background activity"] ') ) . not . toBeNull ( )
138+ expect ( tabButton ( 'two' ) . querySelector ( '[data-row-actions ]' ) ) . toBeNull ( )
139+ expect ( tabButton ( 'one' ) . hasAttribute ( ' aria-label') ) . toBe ( false )
140+ expect ( tabButton ( 'pinned' ) . getAttribute ( ' aria-label') ) . toBe ( 'Pinned, Background activity' )
140141 act ( ( ) => close ?. click ( ) )
141142 expect ( onClose ) . toHaveBeenCalledWith ( 'two' )
142143 } )
@@ -474,9 +475,10 @@ describe('TabStrip interactions', () => {
474475 it ( 'shows background activity without marking that tab selected' , ( ) => {
475476 mount ( renderStrip ( tabs . map ( ( tab ) => ( { ...tab , attention : tab . id === 'two' } ) ) ) )
476477
477- expect ( stripItem ( 'two' ) . querySelector ( '[aria-label="Background activity"]' ) ) . not . toBeNull ( )
478+ expect ( stripItem ( 'two' ) . querySelector ( '[data-row-action-indicator]' ) ) . not . toBeNull ( )
479+ expect ( tabButton ( 'two' ) . getAttribute ( 'aria-label' ) ) . toBe ( 'Two, Background activity' )
478480 expect ( tabButton ( 'two' ) . getAttribute ( 'aria-selected' ) ) . toBe ( 'false' )
479- expect ( tabButton ( 'one' ) . querySelector ( '[ aria-label="Background activity"] ') ) . toBeNull ( )
481+ expect ( tabButton ( 'one' ) . hasAttribute ( ' aria-label') ) . toBe ( false )
480482 } )
481483
482484 it ( 'does not reserve phantom space after a pointer close' , ( ) => {
0 commit comments