@@ -24,7 +24,7 @@ async function renderViewWithActions(props: React.ComponentProps<typeof View> =
2424}
2525
2626describe ( 'userEvent.accessibilityAction' , ( ) => {
27- it ( 'triggers the onAccessibilityAction handler with the given action name' , async ( ) => {
27+ test ( 'triggers the onAccessibilityAction handler with the given action name' , async ( ) => {
2828 const user = userEvent . setup ( ) ;
2929 const { events } = await renderViewWithActions ( ) ;
3030
@@ -37,7 +37,7 @@ describe('userEvent.accessibilityAction', () => {
3737 } ) ;
3838 } ) ;
3939
40- it ( 'supports the direct (setup-less) call form' , async ( ) => {
40+ test ( 'supports the direct (setup-less) call form' , async ( ) => {
4141 const { events } = await renderViewWithActions ( ) ;
4242
4343 await userEvent . accessibilityAction ( screen . getByTestId ( 'view' ) , 'activate' ) ;
@@ -46,7 +46,7 @@ describe('userEvent.accessibilityAction', () => {
4646 expect ( lastEventPayload ( events , 'accessibilityAction' ) . nativeEvent . actionName ) . toBe ( 'activate' ) ;
4747 } ) ;
4848
49- it ( 'throws when the action is not declared in accessibilityActions' , async ( ) => {
49+ test ( 'throws when the action is not declared in accessibilityActions' , async ( ) => {
5050 const user = userEvent . setup ( ) ;
5151 await renderViewWithActions ( ) ;
5252
@@ -55,7 +55,7 @@ describe('userEvent.accessibilityAction', () => {
5555 ) ;
5656 } ) ;
5757
58- it ( 'throws when the element declares no accessibility actions' , async ( ) => {
58+ test ( 'throws when the element declares no accessibility actions' , async ( ) => {
5959 const user = userEvent . setup ( ) ;
6060 await renderViewWithActions ( { accessibilityActions : undefined } ) ;
6161
@@ -64,7 +64,7 @@ describe('userEvent.accessibilityAction', () => {
6464 ) ;
6565 } ) ;
6666
67- it ( 'throws when the element is disabled' , async ( ) => {
67+ test ( 'throws when the element is disabled' , async ( ) => {
6868 const user = userEvent . setup ( ) ;
6969 await renderViewWithActions ( { 'aria-disabled' : true } ) ;
7070
@@ -73,7 +73,7 @@ describe('userEvent.accessibilityAction', () => {
7373 ) ;
7474 } ) ;
7575
76- it ( 'throws when the element is disabled via accessibilityState' , async ( ) => {
76+ test ( 'throws when the element is disabled via accessibilityState' , async ( ) => {
7777 const user = userEvent . setup ( ) ;
7878 await renderViewWithActions ( { accessibilityState : { disabled : true } } ) ;
7979
0 commit comments