@@ -130,13 +130,13 @@ export function testPieSectorFocus(Component, props, { only }: { only?: boolean
130130 . and ( 'have.attr' , 'role' , 'img' )
131131 . and ( 'have.attr' , 'aria-label' ) ;
132132
133- cy . realPress ( 'ArrowRight' ) ;
134- cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '1' ) ;
135133 cy . realPress ( 'ArrowLeft' ) ;
134+ cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '1' ) ;
135+ cy . realPress ( 'ArrowRight' ) ;
136136 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '0' ) ;
137137
138138 // Wraps from first to last
139- cy . realPress ( 'ArrowLeft ' ) ;
139+ cy . realPress ( 'ArrowRight ' ) ;
140140 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , String ( props . dataset . length - 1 ) ) ;
141141
142142 cy . realPress ( 'Enter' ) ;
@@ -180,7 +180,7 @@ export function testPieSectorFocus(Component, props, { only }: { only?: boolean
180180 cy . realPress ( 'Tab' ) ;
181181 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '3' ) ;
182182
183- cy . realPress ( 'ArrowRight ' ) ;
183+ cy . realPress ( 'ArrowLeft ' ) ;
184184 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '4' ) ;
185185 cy . realPress ( 'Enter' ) ;
186186 cy . get ( '@onDataPointClick' ) . should (
@@ -194,12 +194,12 @@ export function testPieSectorFocus(Component, props, { only }: { only?: boolean
194194 cy . get ( '.recharts-active-shape' ) . should ( 'exist' ) ;
195195 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '4' ) ;
196196
197- cy . realPress ( 'ArrowRight ' ) ;
197+ cy . realPress ( 'ArrowLeft ' ) ;
198198 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '5' ) ;
199199
200200 // Space activates on keyup — hold Space, arrow to next sector, then release
201201 cy . focused ( ) . then ( ( $el ) => $el [ 0 ] . dispatchEvent ( new KeyboardEvent ( 'keydown' , { key : ' ' , bubbles : true } ) ) ) ;
202- cy . realPress ( 'ArrowRight ' ) ;
202+ cy . realPress ( 'ArrowLeft ' ) ;
203203 cy . focused ( ) . should ( 'have.attr' , 'data-sector-index' , '6' ) ;
204204 cy . focused ( ) . then ( ( $el ) => $el [ 0 ] . dispatchEvent ( new KeyboardEvent ( 'keyup' , { key : ' ' , bubbles : true } ) ) ) ;
205205 cy . get ( '@onDataPointClick' ) . should (
0 commit comments