From 2ee99d6c7bbbe7bf5b8e59c1bbfac05ee6ad7d0e Mon Sep 17 00:00:00 2001 From: Abbey Campbell Date: Tue, 2 Dec 2025 13:29:00 -0800 Subject: [PATCH] fix tests --- tests/integration/broken/SuggestionsWithSyncedObs.test.js | 2 +- .../integration/broken/SuggestionsWithUnsyncedObs.test.js | 2 +- tests/integration/navigation/broken/Suggestions.test.js | 2 +- .../unit/components/ObsEdit/IdentificationSection.test.js | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/broken/SuggestionsWithSyncedObs.test.js b/tests/integration/broken/SuggestionsWithSyncedObs.test.js index e85bd41e8..3e8b7e29b 100644 --- a/tests/integration/broken/SuggestionsWithSyncedObs.test.js +++ b/tests/integration/broken/SuggestionsWithSyncedObs.test.js @@ -244,7 +244,7 @@ describe( "Suggestions", ( ) => { await actor.press( observationGridItem ); const editButton = await screen.findByLabelText( "Edit" ); await act( async ( ) => actor.press( editButton ) ); - const addIdButton = await screen.findByText( "ID WITH AI" ); + const addIdButton = await screen.findByText( "IDENTIFY" ); await actor.press( addIdButton ); }; diff --git a/tests/integration/broken/SuggestionsWithUnsyncedObs.test.js b/tests/integration/broken/SuggestionsWithUnsyncedObs.test.js index e3855eb71..98cb0e38d 100644 --- a/tests/integration/broken/SuggestionsWithUnsyncedObs.test.js +++ b/tests/integration/broken/SuggestionsWithUnsyncedObs.test.js @@ -189,7 +189,7 @@ const navigateToSuggestionsForObservationViaObsEdit = async observation => { `MyObservations.obsGridItem.${observation.uuid}` ); await actor.press( observationGridItem ); - const addIdButton = await screen.findByText( "ID WITH AI" ); + const addIdButton = await screen.findByText( "IDENTIFY" ); await actor.press( addIdButton ); }; diff --git a/tests/integration/navigation/broken/Suggestions.test.js b/tests/integration/navigation/broken/Suggestions.test.js index e9b302b66..45dee807e 100644 --- a/tests/integration/navigation/broken/Suggestions.test.js +++ b/tests/integration/navigation/broken/Suggestions.test.js @@ -134,7 +134,7 @@ describe( "Suggestions", ( ) => { } else { const addIdButton = observation.taxon ? await screen.findByLabelText( "Edit identification" ) - : await screen.findByText( "ID WITH AI" ); + : await screen.findByText( "IDENTIFY" ); await actor.press( addIdButton ); } } diff --git a/tests/unit/components/ObsEdit/IdentificationSection.test.js b/tests/unit/components/ObsEdit/IdentificationSection.test.js index 5a28a1666..bd7015fab 100644 --- a/tests/unit/components/ObsEdit/IdentificationSection.test.js +++ b/tests/unit/components/ObsEdit/IdentificationSection.test.js @@ -40,14 +40,14 @@ const renderIdentificationSection = ( obs, index = 0, resetState = false ) => re ); describe( "IdentificationSection", () => { - it( "should show ID WITH AI button when observation has photos", ( ) => { + it( "should show IDENTIFY button when observation has photos", ( ) => { renderIdentificationSection( [observationWithPhotos] ); - expect( screen.getByText( "ID WITH AI" ) ).toBeTruthy(); + expect( screen.getByText( "IDENTIFY" ) ).toBeTruthy(); } ); - it( "should not show ID WITH AI button when observation has no photos", ( ) => { + it( "should not show IDENTIFY button when observation has no photos", ( ) => { renderIdentificationSection( [observationWithoutPhotos] ); - expect( screen.queryByText( "ID WITH AI" ) ).toBeNull(); + expect( screen.queryByText( "IDENTIFY" ) ).toBeNull(); } ); it( "should show correct iconic taxon selection when navigating multiple observations", ( ) => {