Skip to content

Commit 7914f4b

Browse files
committed
test(admin): inline Index/Valeur regression guards into SearchForm test
1 parent b40f25d commit 7914f4b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/app/src/modules/admin/declarations/__tests__/SearchForm.test.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ vi.mock("next/navigation", async () => {
2020
import { SearchForm } from "../SearchForm";
2121

2222
describe("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
});

0 commit comments

Comments
 (0)