mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-20 14:58:35 -04:00
test query updates
This commit is contained in:
@@ -116,7 +116,7 @@ describe( "Announcements", () => {
|
||||
|
||||
await waitFor( () => expect( inaturalistjs.announcements.search ).toHaveBeenCalled() );
|
||||
|
||||
const button = screen.queryByTestId( "announcements-dismiss" );
|
||||
const button = screen.queryByLabelText( "Dismiss announcement" );
|
||||
expect( button ).toBeNull();
|
||||
} );
|
||||
} );
|
||||
@@ -134,9 +134,8 @@ describe( "Announcements", () => {
|
||||
|
||||
await waitFor( () => expect( inaturalistjs.announcements.search ).toHaveBeenCalled() );
|
||||
|
||||
const button = await screen.findByTestId( "announcements-dismiss" );
|
||||
const button = await screen.findByLabelText( "Dismiss announcement" );
|
||||
expect( button ).toBeTruthy();
|
||||
expect( button.props.accessibilityLabel ).toBe( "Dismiss announcement" );
|
||||
} );
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user