Skip to content

Commit

Permalink
Update ActivityItem.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Feb 5, 2025
1 parent 247db38 commit 3ce29a2
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,28 +96,4 @@ describe( "ActivityItem", () => {
fireEvent.press( agreeButton );
expect( mockopenAgreeWithIdSheet ).toHaveBeenCalledWith( mockIdentification.taxon );
} );

it( "renders withdrawn id label", async ( ) => {
const mockId = factory( "LocalIdentification", {
uuid: "123456789",
user: factory( "LocalUser" ),
taxon: factory( "LocalTaxon", {
name: "Miner's Lettuce"
} ),
current: false
} );
renderComponent(
<ActivityItem
currentUserId="000"
item={mockId}
key={mockId.uuid}
userAgreedId=""
/>
);

const idWithdrawn = await screen.findByText( "ID Withdrawn" );
await waitFor( ( ) => {
expect( idWithdrawn ).toBeTruthy( );
} );
} );
} );

0 comments on commit 3ce29a2

Please sign in to comment.