@@ -345,7 +345,7 @@ describe('Agent button (SparkleIcon)', () => {
345345 renderWithProviders ( < Header /> )
346346
347347 await waitFor ( ( ) => {
348- const agentButton = screen . getByLabelText ( 'Agent' )
348+ const agentButton = screen . getByLabelText ( 'Ask Shopping Agent' )
349349 expect ( agentButton ) . toBeInTheDocument ( )
350350 } )
351351 } )
@@ -358,7 +358,7 @@ describe('Agent button (SparkleIcon)', () => {
358358 renderWithProviders ( < Header /> )
359359
360360 await waitFor ( ( ) => {
361- const agentButton = screen . queryByLabelText ( 'Agent' )
361+ const agentButton = screen . queryByLabelText ( 'Ask Shopping Agent' )
362362 expect ( agentButton ) . not . toBeInTheDocument ( )
363363 } )
364364 } )
@@ -371,7 +371,7 @@ describe('Agent button (SparkleIcon)', () => {
371371 renderWithProviders ( < Header /> )
372372
373373 await waitFor ( ( ) => {
374- const agentButton = screen . queryByLabelText ( 'Agent' )
374+ const agentButton = screen . queryByLabelText ( 'Ask Shopping Agent' )
375375 expect ( agentButton ) . not . toBeInTheDocument ( )
376376 } )
377377 } )
@@ -384,7 +384,7 @@ describe('Agent button (SparkleIcon)', () => {
384384 renderWithProviders ( < Header /> )
385385
386386 await waitFor ( ( ) => {
387- const agentButton = screen . queryByLabelText ( 'Agent' )
387+ const agentButton = screen . queryByLabelText ( 'Ask Shopping Agent' )
388388 expect ( agentButton ) . not . toBeInTheDocument ( )
389389 } )
390390 } )
@@ -398,11 +398,11 @@ describe('Agent button (SparkleIcon)', () => {
398398 renderWithProviders ( < Header onAgentClick = { onAgentClick } /> )
399399
400400 await waitFor ( ( ) => {
401- const agentButton = screen . getByLabelText ( 'Agent' )
401+ const agentButton = screen . getByLabelText ( 'Ask Shopping Agent' )
402402 expect ( agentButton ) . toBeInTheDocument ( )
403403 } )
404404
405- const agentButton = screen . getByLabelText ( 'Agent' )
405+ const agentButton = screen . getByLabelText ( 'Ask Shopping Agent' )
406406 fireEvent . click ( agentButton )
407407
408408 expect ( onAgentClick ) . toHaveBeenCalledTimes ( 1 )
@@ -416,9 +416,9 @@ describe('Agent button (SparkleIcon)', () => {
416416 renderWithProviders ( < Header /> )
417417
418418 await waitFor ( ( ) => {
419- const agentButton = screen . getByLabelText ( 'Agent' )
419+ const agentButton = screen . getByLabelText ( 'Ask Shopping Agent' )
420420 expect ( agentButton ) . toBeInTheDocument ( )
421- expect ( agentButton ) . toHaveAttribute ( 'aria-label' , 'Agent' )
421+ expect ( agentButton ) . toHaveAttribute ( 'aria-label' , 'Ask Shopping Agent' )
422422 } )
423423 } )
424424
0 commit comments