From 5b18e2b3cba2fa8daf0f9ebdb423d2b06555616a Mon Sep 17 00:00:00 2001 From: Simen Fivelstad Smaaberg <66635118+simensma-fresh@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:39:58 +0000 Subject: [PATCH] Fixed tests --- .../src/components/mine/Permit/PermitConditionCategory.tsx | 2 +- .../mine/Permit/PermitConditionCategorySelector.spec.tsx | 2 +- .../src/components/mine/Permit/PermitConditions.spec.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core-web/src/components/mine/Permit/PermitConditionCategory.tsx b/services/core-web/src/components/mine/Permit/PermitConditionCategory.tsx index ee46736135..5f2dec7f0e 100644 --- a/services/core-web/src/components/mine/Permit/PermitConditionCategory.tsx +++ b/services/core-web/src/components/mine/Permit/PermitConditionCategory.tsx @@ -76,7 +76,7 @@ export const EditPermitConditionCategoryInline = (props: IPermitConditionCategor icon={} /> - }} /> + }} /> 0} diff --git a/services/core-web/src/components/mine/Permit/PermitConditionCategorySelector.spec.tsx b/services/core-web/src/components/mine/Permit/PermitConditionCategorySelector.spec.tsx index 91a4ede5cd..c902627103 100644 --- a/services/core-web/src/components/mine/Permit/PermitConditionCategorySelector.spec.tsx +++ b/services/core-web/src/components/mine/Permit/PermitConditionCategorySelector.spec.tsx @@ -38,7 +38,7 @@ describe("PermitConditionCategorySelector", () => { ); - const input = screen.getByRole("combobox", { name: "Category Name" }) + const input = screen.getByRole("combobox", { name: "description" }) expect(input).toBeInTheDocument(); }); diff --git a/services/core-web/src/components/mine/Permit/PermitConditions.spec.tsx b/services/core-web/src/components/mine/Permit/PermitConditions.spec.tsx index 494a84947e..c0161b4738 100644 --- a/services/core-web/src/components/mine/Permit/PermitConditions.spec.tsx +++ b/services/core-web/src/components/mine/Permit/PermitConditions.spec.tsx @@ -76,7 +76,7 @@ describe("PermitConditions", () => { let descriptionInput; await waitFor(() => { - descriptionInput = screen.getByRole("combobox", { "name": "Category Name" }); + descriptionInput = screen.getByRole("combobox", { "name": "description" }); expect(descriptionInput).toBeInTheDocument(); })