From 40a7f912dd0cb1a1b847ea3145e95c3bc699b035 Mon Sep 17 00:00:00 2001 From: sepeterson <10458078+sepeterson@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:26:20 -0600 Subject: [PATCH] MOB-722 use a test taxon where the common name does not contain the scientific name --- tests/unit/components/Match/IconicSuggestion.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/components/Match/IconicSuggestion.test.js b/tests/unit/components/Match/IconicSuggestion.test.js index 7cd902997..452fd64ea 100644 --- a/tests/unit/components/Match/IconicSuggestion.test.js +++ b/tests/unit/components/Match/IconicSuggestion.test.js @@ -7,10 +7,10 @@ import { renderComponent } from "tests/helpers/render"; const mockTaxon = factory( "LocalTaxon", { id: 47170, - name: "Fungi", - preferred_common_name: "Fungi Including Lichens", - rank: "kingdom", - rank_level: 70, + name: "actinopterygii", + preferred_common_name: "Ray-finned Fishes", + rank: "class", + rank_level: 50, default_photo: { url: "https://example.com/photo.jpg" } @@ -25,8 +25,8 @@ describe( "IconicSuggestion", () => { it( "renders taxon with common name and scientific name", () => { renderComponent( ); - expect( screen.getByText( "Fungi Including Lichens" ) ).toBeTruthy(); - expect( screen.getByText( "Fungi" ) ).toBeTruthy(); + expect( screen.getByText( "Ray-finned Fishes" ) ).toBeTruthy(); + expect( screen.getByText( "actinopterygii" ) ).toBeTruthy(); } ); it( "calls handlePress when pressed", () => {