File tree Expand file tree Collapse file tree
packages/app/src/modules/admin/declarations/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ vi.mock("next/navigation", async () => {
2020import { SearchForm } from "../SearchForm" ;
2121
2222describe ( "SearchForm" , ( ) => {
23- it ( "renders all search fields" , ( ) => {
23+ it ( "renders all search fields and omits the removed Index / Valeur pair " , ( ) => {
2424 render ( < SearchForm /> ) ;
2525
2626 expect ( screen . getByLabelText ( "SIREN / Nom entreprise" ) ) . toBeInTheDocument ( ) ;
@@ -29,10 +29,8 @@ describe("SearchForm", () => {
2929 expect ( screen . getByLabelText ( "Date de dépôt (du)" ) ) . toBeInTheDocument ( ) ;
3030 expect ( screen . getByLabelText ( "Date de dépôt (au)" ) ) . toBeInTheDocument ( ) ;
3131 expect ( screen . getByLabelText ( "Statut" ) ) . toBeInTheDocument ( ) ;
32- } ) ;
33-
34- it ( "does not render removed Index / Valeur filters" , ( ) => {
35- render ( < SearchForm /> ) ;
32+ // Regression guard for #3274 — keep these negative assertions next to
33+ // their positive counterparts so a future reintroduction is caught here.
3634 expect ( screen . queryByLabelText ( "Index" ) ) . not . toBeInTheDocument ( ) ;
3735 expect ( screen . queryByLabelText ( "Valeur" ) ) . not . toBeInTheDocument ( ) ;
3836 } ) ;
You can’t perform that action at this time.
0 commit comments